-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
315 lines (273 loc) · 7.43 KB
/
index.html
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio & CV</title>
<style>
/* Basic CSS styles */
body {
font-family: Calibri, sans-serif;
margin: 0;
padding: 0;
color: #F5F5DC;
}
.background-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: -1;
background-image: url('http://coolcomputersetups.com/images/ff6b66.jpg');
/* Replace with your image URL */
background-size: cover;
background-position: center;
}
.background-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7); /* Adjust the transparency (0.5 for 50% opacity) */
}
.content-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
z-index: 1;
}
header {
position: absolute;
top: 20px;
left: 20px;
}
header h2::before {
content: "";
display: inline-block;
width: 20px; /* Diameter of the circle */
height: 20px; /* Diameter of the circle */
border-radius: 50%; /* Create a circle */
background-color: #756AB6; /* Circle color */
margin-right: 10px; /* Adjust spacing between circle and name */
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
display: block;
margin-bottom: 10px;
}
nav ul li a {
display: inline-block;
padding: 6px 12px;
font-size: 0.8em;
font-weight: bold;
text-decoration: none;
background-color: #E6E6FA;
color: #000;
border-radius: 5px;
transition: transform 0.3s ease; /* Transition added for smooth animation */
transform: translateX(0); /* Initial position */
}
nav ul li a:hover {
background-color: #0056b3;
color: #fff;
}
.profile-section {
text-align: top;
}
.profile-info {
display: flex;
align-items: top;
justify-content: center;
}
.profile-image {
margin-right: 50px;
}
.profile-image img {
width: 600px;
height: 600px;
border-radius: 50%;
object-fit: cover;
border: 0px solid #333;
}
.profile-text {
text-align: left;
margin-top: -3em; /* Adjusted margin top */
}
h1 {
font-size: 8em;
margin-bottom: -0.2em; /* Adjusted margin bottom */
position: relative;
animation: scrollAnimation 1.5s forwards;
}
h2 {
font-size: 2em;
margin-top: 2em; /* Adjusted margin top */
overflow: hidden;
white-space: nowrap;
border-right: 2px solid #fff;
padding-right: 8px;
display: inline-block;
vertical-align: top;
}
.scroll-animation {
animation: scrollAnimation 1.5s forwards;
}
.button {
display: inline-block;
padding: 8px 15px;
font-size: 20px;
font-weight: bold;
text-decoration: none;
background-color: #E6E6FA;
color: #000;
border-radius: 50px;
transition: transform 0.3s ease; /* Transition added for smooth animation */
margin: 2px 0;
transform: translateX(0); /* Initial position */
}
.button:hover {
background-color: #0056b3;
transform: translateX(3px); /* Move button to the left */
color: #fff;
}
footer {}
@keyframes scrollAnimation {
0% {
transform: translateX(0px); /* Initial position */
}
50% {
transform: translateX(50px);
}
100% {
transform: translateX(0px); /* Back to initial position */
}
}
/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 80%; /* Adjust width as needed */
max-width: 500px;
text-align: center;
background-color: rgba(50, 50, 50, 0.95); /* Dark grey color */
border-radius: 10px;
animation: modalAnimation 0.5s ease-out; /* Add animation */
padding: 20px;
color: #fff;
}
/* Keyframes for modal animation */
@keyframes modalAnimation {
from {
transform: translate(-50%, 150%);
opacity: 0;
}
to {
transform: translate(-50%, -50%);
opacity: 1;
}
}
/* Close button styles */
.close-btn {
position: absolute;
top: 10px;
right: 10px;
font-size: 20px;
cursor: pointer;
}
.close-btn:hover {
color: #fff;
}
/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
.profile-info {
flex-direction: column;
}
.profile-image {
margin-right: 0;
margin-bottom: 20px;
}
.profile-image img {
width: 100%;
max-width: 300px;
height: auto;
border-radius: 50%;
}
.profile-text {
text-align: center;
margin-top: 0;
}
h1 {
font-size: 4em;
}
h2 {
font-size: 1.5em;
margin-top: 1em;
margin-bottom: 1em;
}
.button {
font-size: 16px;
}
}
/* Rest of your CSS remains unchanged */
/* ... */
</style>
</head>
<body>
<div class="background-container">
<div class="background-overlay"></div>
</div>
<div class="content-container">
<header>
<!--<h2>Ahmad Naeem</h2>-->
</header>
<section class="profile-section">
<div class="profile-info">
<div class="profile-image">
<img src="https://github.com/ahmad12341/resume/blob/main/IMG_20230701_120952.jpg?raw=true" alt="Profile Image">
</div>
<div class="profile-text scroll-animation">
<h1>Ahmad Naeem</h1>
<h2>Embedded Software Engineer, I'm based in Lahore, Pakistan</h2>
<!-- <p>My am an embedded system engineer with overall experience of over 6 years</p> -->
<nav>
<ul>
<li><a href="resume.html" class="button" id="resumeBtn">View Resume</a></li>
<li><a href="portfolio.html" class="button" id="portfolioBtn">View Portfolio</a></li>
<li><a href="#" class="button" id="contactBtn">Contact Info</a></li>
</ul>
</nav>
</div>
</div>
</section>
<footer></footer>
</div>
<!-- Modal for Contact Info -->
<div class="modal" id="contactModal">
<span class="close-btn" id="closeModal">×</span>
<h2>Contact Info</h2>
<p>Email: [email protected]</p>
<p>Phone: +92-3244764287</p>
</div>
<script>
// JavaScript for modal toggling
document.getElementById('contactBtn').addEventListener('click', function() {
document.getElementById('contactModal').style.display = 'block';
});
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('contactModal').style.display = 'none';
});
</script>
</body>
</html>