Skip to content

Commit ce111bb

Browse files
committed
Updates for Antonio
1 parent 14d2c95 commit ce111bb

File tree

3 files changed

+41
-52
lines changed

3 files changed

+41
-52
lines changed

src/components/AboutMeComponents/FullPage.vue

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable */
2-
31
<template>
42
<div class="fullpage-container" @wheel="handleScroll">
53
<div class="section" v-for="(section, index) in sections" :key="section.id" :ref="`section-${index}`"
@@ -13,9 +11,9 @@
1311
<p class="content">{{ section.content }}</p>
1412
</div>
1513
<div class="scroll-indicator" v-if="showIndicator">
16-
<div class="button-container" v-for="(section, index) in sections" :key="index" @click="scrollToSection(index)">
14+
<div class="button-container" v-for="(section, index) in sections" :key="index" @click="scrollToSection(index);activeSection=index">
15+
<div><div :style="activeSection===0 ? { color: 'white'} : {}" class="pageButtons">{{ section.title }} </div></div>
1716
<div class="box"></div>
18-
{{ section.title }}
1917
</div>
2018
</div>
2119
</div>
@@ -93,7 +91,7 @@ export default {
9391
setTimeout(() => {
9492
// This will trigger the actual removal
9593
el.style.opacity = 0;
96-
}, 500); // Delay in milliseconds (500ms in this example)
94+
}, 500);
9795
}
9896
},
9997
mounted() {
@@ -106,16 +104,20 @@ export default {
106104
</script>
107105

108106
<style scoped>
109-
.box{
107+
.box {
110108
border: solid black 5px;
111109
padding: 5px;
112-
background-color:white;
110+
background-color: white;
111+
margin: 5 px;
113112
}
114113
115-
.fade-enter-active, .fade-leave-active {
114+
.fade-enter-active,
115+
.fade-leave-active {
116116
transition: opacity 0.5s ease;
117117
}
118-
.fade-enter, .fade-leave-to {
118+
119+
.fade-enter,
120+
.fade-leave-to {
119121
opacity: 0;
120122
}
121123
@@ -131,7 +133,7 @@ export default {
131133
align-items: center;
132134
justify-content: center;
133135
flex-wrap: wrap;
134-
flex-direction:column;
136+
flex-direction: column;
135137
}
136138
137139
.section:nth-child(1) .content {
@@ -142,33 +144,42 @@ export default {
142144
z-index: 2;
143145
}
144146
147+
.sidescroll-container {
148+
background-color: green;
149+
color: white;
150+
align-items: center;
151+
justify-content: center;
152+
display: flex;
153+
flex-wrap: nowrap;
154+
width: 80%;
155+
margin-right: 5px;
156+
}
157+
145158
.scroll-indicator {
146159
position: fixed;
147160
right: 10px;
148161
top: 50%;
149162
transform: translateY(-50%);
150-
display:inline-block;
151163
flex-direction: column;
152-
margin: 0px;
153164
}
154165
155-
.scroll-indicator button {
156-
margin-bottom: 10px;
166+
.button-container {
167+
flex-direction: row;
168+
padding-top: 10px;
169+
justify-content: right;
170+
padding-right: 5px;
157171
}
158172
159-
.button-container{
160-
display: flex;
161-
flex-direction:row;
162-
background:red;
173+
.pageButtons {
174+
white-space: nowrap;
175+
position: absolute;
176+
transition: transform 0.5s ease 0.05s,opacity 0.5s ease 0.05s;
177+
opacity: 0;
178+
padding-right: 100%;
163179
}
164180
165-
.sidescroll-container {
166-
background-color:green;
167-
color:white;
168-
align-items: center;
169-
justify-content: center;
170-
display:flex;
171-
flex-wrap: nowrap;
172-
width: 80%;
181+
.pageButtons:hover {
182+
transform: translateX(-20%);
183+
opacity: 1.0;
173184
}
174185
</style>
Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="scroll-container">
3-
3+
44
<div id="scroll-text">This is scrolling text.</div>
55
</div>
66

@@ -25,38 +25,16 @@ export default {
2525
}
2626
2727
#scroll-text {
28-
/* animation properties */
29-
-moz-transform: translateX(100%);
30-
-webkit-transform: translateX(100%);
3128
transform: translateX(100%);
32-
33-
-moz-animation: my-animation 15s linear infinite;
34-
-webkit-animation: my-animation 15s linear infinite;
35-
animation: my-animation 15s linear infinite;
36-
}
37-
38-
/* for Firefox */
39-
@-moz-keyframes my-animation {
40-
from { -moz-transform: translateX(100%); }
41-
to { -moz-transform: translateX(-100%); }
42-
}
43-
44-
/* for Chrome */
45-
@-webkit-keyframes my-animation {
46-
from { -webkit-transform: translateX(100%); }
47-
to { -webkit-transform: translateX(-100%); }
29+
animation: my-animation 2s linear infinite;
4830
}
4931
5032
@keyframes my-animation {
5133
from {
52-
-moz-transform: translateX(100%);
53-
-webkit-transform: translateX(100%);
5434
transform: translateX(100%);
5535
}
5636
to {
57-
-moz-transform: translateX(-100%);
58-
-webkit-transform: translateX(-100%);
59-
transform: translateX(-100%);
37+
transform: translateX(0%);
6038
}
6139
}
6240
</style>

src/views/AboutMe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
data() {
1818
return {
1919
sections: [
20-
{ id: 1, title: 'Hi, I\'m Phillip Ring', content: 'I crave efficiency and finding new ways to improve. I\'m an honors senior year computer science student attending UT Tyler.' },
20+
{ id: 1, title: 'About', content: 'I crave efficiency and finding new ways to improve. I\'m an honors senior year computer science student attending UT Tyler.' },
2121
{ id: 2, title: 'Skills', content: 'Technologies: Javascript, HTML/CSS, MySQL, Vue.js, Node, Express.js, BASH. Familiarity with other systems such as Git, Vscode, Wireshark. Knowledgeable in version control systems like Git.' },
2222
{ id: 3, title: 'Projects', content: 'Details about projects.' },
2323
{ id: 4, title: 'Contact', content: 'Feel free to reach out to me via email at [email protected] or connect with me on <a href="https://www.linkedin.com/in/ring-phillip">LinkedIn</a>. I\'m always open to new connections and collaboration.' }

0 commit comments

Comments
 (0)