-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPortfolio Website.js
More file actions
191 lines (165 loc) · 4.69 KB
/
Copy pathPortfolio Website.js
File metadata and controls
191 lines (165 loc) · 4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Toyosi D. | Senior Business Analyst & Developer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="Navbar">
<a href="#Home" class="active">HOME</a>
<a href="#About">ABOUT</a>
<a href="#GitHub">PROJECTS</a>
<a href="#Contact">CONTACT</a>
</nav>
<header id="Home">
<div class="Overlay"></div>
<video autoplay muted loop playsinline id="Typing_Video">
<source src="images/video/Typing.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<div class="Video_Text">
<h1 class="white-text">Toyosi Damilola</h1>
<p>Senior Business Analyst | Project Manager | Developer</p>
</div>
</header>
<main>
<section class="Row" id="About">
<div class="Column_2">
<img src="images/toyosi_profile.png" alt="Toyosi Profile" class="Profile_Photo">
</div>
<div class="Column_1">
<h1>Professional Profile</h1>
<p>With 9 years of experience, I bridge the gap between business needs and technical execution.</p>
</div>
</section>
<section class="Row" id="GitHub">
<div class="Column_1">
<h1>Technical Portfolio</h1>
<p>Explore my repositories for code samples in JavaScript, C#, and SQL.</p>
<a href="https://github.com/Toyosi1992" target="_blank" class="btn">VIEW GITHUB</a>
</div>
<div class="Column_2">
<img src="images/GitHub.png" alt="GitHub Logo" class="hover-zoom">
</div>
</section>
<section class="Row" id="Contact">
<div class="Column_1">
<h1>Get In Touch</h1>
<form action="https://formspree.io/f/your-id" method="POST">
<label>Name</label>
<input type="text" name="name" required>
<label>Email</label>
<input type="email" name="email" required>
<label>Message</label>
<textarea name="message" rows="5"></textarea>
<input type="submit" value="SEND">
</form>
</div>
</section>
</main>
<footer>
<p>© 2026 Toyosi Damilola | Built with HTML, CSS, & JS</p>
</footer>
<script src="portfolio.js"></script>
</body>
</html>
/* General Styles */
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
/* Navbar */
.Navbar {
position: fixed;
width: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 100;
text-align: center;
transition: 0.5s;
}
.Navbar a {
display: inline-block;
color: white;
padding: 20px;
text-decoration: none;
font-weight: bold;
}
.Navbar a.active {
color: #007bff;
}
/* Header & Video */
#Home {
height: 100vh;
position: relative;
overflow: hidden;
}
#Typing_Video {
width: 100%;
height: 100%;
object-fit: cover;
}
.Overlay {
position: absolute;
top: 0;
background: rgba(0, 0, 0, 0.5);
width: 100%;
height: 100%;
}
.Video_Text {
position: absolute;
top: 50%;
width: 100%;
text-align: center;
color: white;
transform: translateY(-50%);
}
/* Layout */
.Row {
display: flex;
flex-wrap: wrap;
padding: 50px 10%;
align-items: center;
}
.Column_1, .Column_2 {
flex: 1;
min-width: 300px;
}
.Profile_Photo {
width: 80%;
border-radius: 10px;
}
.btn {
display: inline-block;
padding: 10px 20px;
background: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
}
.hover-zoom:hover {
transform: scale(1.1);
transition: 0.3s;
}
// Change Navbar background on scroll
window.onscroll = function() {
const navbar = document.querySelector(".Navbar");
if (window.pageYOffset > 100) {
navbar.style.backgroundColor = "black";
} else {
navbar.style.backgroundColor = "rgba(0, 0, 0, 0.7)";
}
};
// Simple active link toggling
const navLinks = document.querySelectorAll('.Navbar a');
navLinks.forEach(link => {
link.addEventListener('click', function() {
document.querySelector('.active').classList.remove('active');
this.classList.add('active');
});
});