Skip to content

Commit aed94eb

Browse files
committed
fullPage scroll feature for HomePage
1 parent 619f9fc commit aed94eb

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

frontend/package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"masonry-layout": "^4.2.2",
1313
"vue": "^2.5.17",
1414
"vue-carousel": "^0.18.0",
15+
"vue-fullpage.js": "^0.1.5",
1516
"vue-masonry": "^0.11.8",
1617
"vue-router": "^3.0.1",
1718
"vuex": "^3.0.1"

frontend/src/main.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ Vue.config.productionTip = false;
1010
Vue.use(VueFullPage);
1111

1212
new Vue({
13-
el: "#app",
13+
el: "#fullpage-home",
1414
name: "app",
1515
data: function(){
1616
return {
1717
options: {
1818
afterLoad: this.afterLoad,
1919
navigation: true,
20+
scrollBar: false,
21+
controlArrows: true,
2022
anchors: ['page1', 'page2', 'page3'],
2123
},
2224
}
@@ -26,7 +28,10 @@ new Vue({
2628
console.log("After load....");
2729
console.log(destination);
2830
}
29-
},
31+
}
32+
});
33+
34+
new Vue({
3035
router,
3136
store,
3237
render: h => h(App)

frontend/src/views/Home.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class="px-16 sm:px-88 pb-28 sm:pb-0 flex flex-col justify-center items-center"
1212
id="projects"
1313
>
14-
<full-page :options="options" id="fullpage" ref="fullpage">
14+
<full-page ref="fullpage" :options="options" id="fullpage-home">
1515
<Project
1616
class="fullpage section"
1717
v-for="(project, permalink, index) in projects"

settings/dev/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'NAME': 'portfolio',
1212
'USER': 'portfolio',
1313
'PASSWORD': 'portfolio',
14-
'HOST': 'localhost',
14+
'HOST': 'db',
1515
'PORT': '5432',
1616
}
1717
}

0 commit comments

Comments
 (0)