Skip to content

Commit 619f9fc

Browse files
committed
fullPage scroll feature for HomePafe
1 parent 88edfdf commit 619f9fc

File tree

7 files changed

+37
-16
lines changed

7 files changed

+37
-16
lines changed

frontend/src/components/Gallery.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default {
9898
image: competitions,
9999
title: "Competitions",
100100
description:
101-
"Online competetions on ML, data science, programming, and CTFs are a great way for enthusiasts to show off some skills or learn something new in a competetive environment."
101+
"Online competitions on ML, data science, programming, and CTFs are a great way for enthusiasts to show off some skills or learn something new in a competitive environment."
102102
}
103103
],
104104
queue: 1,

frontend/src/components/SisterGroups.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Sister groups are different smaller groups within the umbrella of
1414
Software Development Section, along with SDSLabs. The members of
1515
these groups focus on specific areas of technological innovation
16-
like data science, competetive programming, and information
16+
like data science, competitive programming, and information
1717
security.
1818
</div>
1919
<div

frontend/src/components/about/GalleryMobile.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default {
6363
image: competitions,
6464
title: "Competitions",
6565
description:
66-
"Online competetions on ML, data science, programming, and CTFs are a great way for enthusiasts to show off some skills or learn something new in a competetive environment."
66+
"Online competitions on ML, data science, programming, and CTFs are a great way for enthusiasts to show off some skills or learn something new in a competitive environment."
6767
}
6868
]
6969
};

frontend/src/components/about/SisterGallery.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
image: pag,
5252
title: "PROGRAMMING & ALGORITHMS GROUP",
5353
description:
54-
"A bunch of competetive programming enthusiasts, PAG, frequently organizes coding lectures and contests for IITR people."
54+
"A bunch of competitive programming enthusiasts, PAG, frequently organizes coding lectures and contests for IITR people."
5555
},
5656
{
5757
image: infosec,

frontend/src/main.js

+19
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,31 @@ import Vue from "vue";
22
import App from "./App.vue";
33
import router from "./router";
44
import store from "./store";
5+
import VueFullPage from "vue-fullpage.js";
56

67
import "@/assets/css/tailwind.css";
78

89
Vue.config.productionTip = false;
10+
Vue.use(VueFullPage);
911

1012
new Vue({
13+
el: "#app",
14+
name: "app",
15+
data: function(){
16+
return {
17+
options: {
18+
afterLoad: this.afterLoad,
19+
navigation: true,
20+
anchors: ['page1', 'page2', 'page3'],
21+
},
22+
}
23+
},
24+
methods: {
25+
afterLoad: function(origin, destination, direction){
26+
console.log("After load....");
27+
console.log(destination);
28+
}
29+
},
1130
router,
1231
store,
1332
render: h => h(App)

frontend/src/views/Home.vue

+13-11
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@
1111
class="px-16 sm:px-88 pb-28 sm:pb-0 flex flex-col justify-center items-center"
1212
id="projects"
1313
>
14-
<Project
15-
class="fullpage section"
16-
v-for="(project, permalink, index) in projects"
17-
v-bind:key="index"
18-
v-bind:title="project.title"
19-
v-bind:desc="project.description"
20-
v-bind:url="project.url"
21-
v-bind:image_url="project.image"
22-
v-bind:permalink="project.permalink"
23-
v-bind:color="project.color"
24-
/>
14+
<full-page :options="options" id="fullpage" ref="fullpage">
15+
<Project
16+
class="fullpage section"
17+
v-for="(project, permalink, index) in projects"
18+
v-bind:key="index"
19+
v-bind:title="project.title"
20+
v-bind:desc="project.description"
21+
v-bind:url="project.url"
22+
v-bind:image_url="project.image"
23+
v-bind:permalink="project.permalink"
24+
v-bind:color="project.color"
25+
/>
26+
</full-page>
2527
</div>
2628
</div>
2729
</template>

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': 'db',
14+
'HOST': 'localhost',
1515
'PORT': '5432',
1616
}
1717
}

0 commit comments

Comments
 (0)