undefined - Initial Deployment
Browse files- README.md +5 -3
- index.html +741 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: portfolio
|
3 |
+
emoji: 🐳
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,741 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en" class="scroll-smooth">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Portfolio | Creative Developer</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
11 |
+
|
12 |
+
:root {
|
13 |
+
--primary: #3b82f6;
|
14 |
+
--primary-dark: #2563eb;
|
15 |
+
--secondary: #10b981;
|
16 |
+
--dark: #1e293b;
|
17 |
+
--light: #f8fafc;
|
18 |
+
}
|
19 |
+
|
20 |
+
body {
|
21 |
+
font-family: 'Poppins', sans-serif;
|
22 |
+
transition: background-color 0.3s, color 0.3s;
|
23 |
+
}
|
24 |
+
|
25 |
+
.dark {
|
26 |
+
background-color: #0f172a;
|
27 |
+
color: #f8fafc;
|
28 |
+
}
|
29 |
+
|
30 |
+
.light {
|
31 |
+
background-color: #f8fafc;
|
32 |
+
color: #1e293b;
|
33 |
+
}
|
34 |
+
|
35 |
+
.nav-link {
|
36 |
+
position: relative;
|
37 |
+
}
|
38 |
+
|
39 |
+
.nav-link::after {
|
40 |
+
content: '';
|
41 |
+
position: absolute;
|
42 |
+
width: 0;
|
43 |
+
height: 2px;
|
44 |
+
bottom: -2px;
|
45 |
+
left: 0;
|
46 |
+
background-color: var(--primary);
|
47 |
+
transition: width 0.3s ease;
|
48 |
+
}
|
49 |
+
|
50 |
+
.nav-link:hover::after {
|
51 |
+
width: 100%;
|
52 |
+
}
|
53 |
+
|
54 |
+
.project-card {
|
55 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
56 |
+
}
|
57 |
+
|
58 |
+
.project-card:hover {
|
59 |
+
transform: translateY(-5px);
|
60 |
+
}
|
61 |
+
|
62 |
+
.skill-pill {
|
63 |
+
transition: transform 0.2s;
|
64 |
+
}
|
65 |
+
|
66 |
+
.skill-pill:hover {
|
67 |
+
transform: scale(1.05);
|
68 |
+
}
|
69 |
+
|
70 |
+
.floating {
|
71 |
+
animation: floating 3s ease-in-out infinite;
|
72 |
+
}
|
73 |
+
|
74 |
+
@keyframes floating {
|
75 |
+
0% { transform: translateY(0px); }
|
76 |
+
50% { transform: translateY(-10px); }
|
77 |
+
100% { transform: translateY(0px); }
|
78 |
+
}
|
79 |
+
|
80 |
+
.wave {
|
81 |
+
animation-name: wave-animation;
|
82 |
+
animation-duration: 2.5s;
|
83 |
+
animation-iteration-count: infinite;
|
84 |
+
transform-origin: 70% 70%;
|
85 |
+
display: inline-block;
|
86 |
+
}
|
87 |
+
|
88 |
+
@keyframes wave-animation {
|
89 |
+
0% { transform: rotate(0deg); }
|
90 |
+
10% { transform: rotate(14deg); }
|
91 |
+
20% { transform: rotate(-8deg); }
|
92 |
+
30% { transform: rotate(14deg); }
|
93 |
+
40% { transform: rotate(-4deg); }
|
94 |
+
50% { transform: rotate(10deg); }
|
95 |
+
60% { transform: rotate(0deg); }
|
96 |
+
100% { transform: rotate(0deg); }
|
97 |
+
}
|
98 |
+
</style>
|
99 |
+
</head>
|
100 |
+
<body class="light">
|
101 |
+
<!-- Navigation -->
|
102 |
+
<nav class="fixed w-full z-50 bg-white/80 dark:bg-slate-900/80 backdrop-blur-md shadow-sm">
|
103 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
104 |
+
<div class="flex justify-between h-16">
|
105 |
+
<div class="flex items-center">
|
106 |
+
<a href="#home" class="text-xl font-bold text-blue-500 dark:text-blue-400">Portfolio</a>
|
107 |
+
</div>
|
108 |
+
<div class="hidden md:flex items-center space-x-8">
|
109 |
+
<a href="#home" class="nav-link text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Home</a>
|
110 |
+
<a href="#about" class="nav-link text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">About</a>
|
111 |
+
<a href="#projects" class="nav-link text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Projects</a>
|
112 |
+
<a href="#skills" class="nav-link text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Skills</a>
|
113 |
+
<a href="#contact" class="nav-link text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Contact</a>
|
114 |
+
<button id="theme-toggle" class="p-2 rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors">
|
115 |
+
<i class="fas fa-moon text-slate-700 dark:text-yellow-300"></i>
|
116 |
+
</button>
|
117 |
+
</div>
|
118 |
+
<div class="md:hidden flex items-center">
|
119 |
+
<button id="mobile-menu-button" class="p-2 rounded-md text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">
|
120 |
+
<i class="fas fa-bars text-xl"></i>
|
121 |
+
</button>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
|
126 |
+
<!-- Mobile menu -->
|
127 |
+
<div id="mobile-menu" class="hidden md:hidden bg-white dark:bg-slate-900 shadow-lg">
|
128 |
+
<div class="px-2 pt-2 pb-3 space-y-1">
|
129 |
+
<a href="#home" class="block px-3 py-2 rounded-md text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Home</a>
|
130 |
+
<a href="#about" class="block px-3 py-2 rounded-md text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">About</a>
|
131 |
+
<a href="#projects" class="block px-3 py-2 rounded-md text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Projects</a>
|
132 |
+
<a href="#skills" class="block px-3 py-2 rounded-md text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Skills</a>
|
133 |
+
<a href="#contact" class="block px-3 py-2 rounded-md text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">Contact</a>
|
134 |
+
<div class="px-3 py-2">
|
135 |
+
<button id="theme-toggle-mobile" class="flex items-center text-slate-700 dark:text-slate-300 hover:text-blue-500 dark:hover:text-blue-400">
|
136 |
+
<i class="fas fa-moon mr-2 text-slate-700 dark:text-yellow-300"></i>
|
137 |
+
Toggle Theme
|
138 |
+
</button>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</nav>
|
143 |
+
|
144 |
+
<!-- Hero Section -->
|
145 |
+
<section id="home" class="min-h-screen flex items-center pt-16">
|
146 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-20">
|
147 |
+
<div class="flex flex-col md:flex-row items-center">
|
148 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
149 |
+
<h1 class="text-4xl md:text-5xl lg:text-6xl font-bold mb-4 text-slate-800 dark:text-white">
|
150 |
+
Hi, I'm <span class="text-blue-500">Alex</span> <span class="wave">👋</span>
|
151 |
+
</h1>
|
152 |
+
<h2 class="text-2xl md:text-3xl font-semibold mb-6 text-slate-600 dark:text-slate-300">
|
153 |
+
Frontend Developer & UI Designer
|
154 |
+
</h2>
|
155 |
+
<p class="text-lg mb-8 text-slate-600 dark:text-slate-400 max-w-lg">
|
156 |
+
I build exceptional digital experiences that are fast, accessible, and visually appealing. Let's create something amazing together!
|
157 |
+
</p>
|
158 |
+
<div class="flex space-x-4">
|
159 |
+
<a href="#projects" class="px-6 py-3 bg-blue-500 hover:bg-blue-600 text-white rounded-lg font-medium transition-colors shadow-lg hover:shadow-blue-500/30">
|
160 |
+
View My Work
|
161 |
+
</a>
|
162 |
+
<a href="#contact" class="px-6 py-3 border border-blue-500 text-blue-500 hover:bg-blue-50 dark:hover:bg-slate-800 rounded-lg font-medium transition-colors">
|
163 |
+
Contact Me
|
164 |
+
</a>
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
<div class="md:w-1/2 flex justify-center">
|
168 |
+
<div class="relative w-64 h-64 md:w-80 md:h-80 lg:w-96 lg:h-96">
|
169 |
+
<div class="absolute inset-0 bg-blue-500 rounded-full opacity-20 blur-xl animate-pulse"></div>
|
170 |
+
<div class="relative w-full h-full flex items-center justify-center">
|
171 |
+
<img src="https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=880&q=80"
|
172 |
+
alt="Profile"
|
173 |
+
class="w-full h-full object-cover rounded-full border-4 border-blue-500 shadow-xl floating">
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
</section>
|
180 |
+
|
181 |
+
<!-- About Section -->
|
182 |
+
<section id="about" class="py-20 bg-slate-50 dark:bg-slate-800">
|
183 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
184 |
+
<div class="text-center mb-16">
|
185 |
+
<h2 class="text-3xl md:text-4xl font-bold text-slate-800 dark:text-white mb-4">
|
186 |
+
About <span class="text-blue-500">Me</span>
|
187 |
+
</h2>
|
188 |
+
<div class="w-20 h-1 bg-blue-500 mx-auto mb-6"></div>
|
189 |
+
<p class="text-lg text-slate-600 dark:text-slate-400 max-w-2xl mx-auto">
|
190 |
+
Get to know more about who I am and what I do
|
191 |
+
</p>
|
192 |
+
</div>
|
193 |
+
|
194 |
+
<div class="flex flex-col md:flex-row items-center gap-12">
|
195 |
+
<div class="md:w-1/3 flex justify-center">
|
196 |
+
<div class="relative w-64 h-64">
|
197 |
+
<div class="absolute -inset-4 bg-gradient-to-r from-blue-500 to-emerald-500 rounded-2xl opacity-75 blur-xl"></div>
|
198 |
+
<img src="https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=880&q=80"
|
199 |
+
alt="About Me"
|
200 |
+
class="relative w-full h-full object-cover rounded-xl shadow-lg">
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
|
204 |
+
<div class="md:w-2/3">
|
205 |
+
<h3 class="text-2xl font-semibold text-slate-800 dark:text-white mb-4">
|
206 |
+
Who am I?
|
207 |
+
</h3>
|
208 |
+
<p class="text-slate-600 dark:text-slate-400 mb-6">
|
209 |
+
I'm a passionate frontend developer with 5+ years of experience creating modern web applications. I specialize in React, Vue.js, and responsive design principles. My goal is to build products that provide meaningful, enjoyable experiences for users.
|
210 |
+
</p>
|
211 |
+
|
212 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
213 |
+
<div class="bg-white dark:bg-slate-700 p-6 rounded-xl shadow-sm">
|
214 |
+
<div class="flex items-center mb-3">
|
215 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center mr-4">
|
216 |
+
<i class="fas fa-graduation-cap text-blue-500"></i>
|
217 |
+
</div>
|
218 |
+
<h4 class="font-semibold text-slate-800 dark:text-white">Education</h4>
|
219 |
+
</div>
|
220 |
+
<p class="text-slate-600 dark:text-slate-400">
|
221 |
+
B.Sc. in Computer Science<br>
|
222 |
+
Stanford University, 2018
|
223 |
+
</p>
|
224 |
+
</div>
|
225 |
+
|
226 |
+
<div class="bg-white dark:bg-slate-700 p-6 rounded-xl shadow-sm">
|
227 |
+
<div class="flex items-center mb-3">
|
228 |
+
<div class="w-10 h-10 rounded-full bg-emerald-100 dark:bg-emerald-900 flex items-center justify-center mr-4">
|
229 |
+
<i class="fas fa-briefcase text-emerald-500"></i>
|
230 |
+
</div>
|
231 |
+
<h4 class="font-semibold text-slate-800 dark:text-white">Experience</h4>
|
232 |
+
</div>
|
233 |
+
<p class="text-slate-600 dark:text-slate-400">
|
234 |
+
Senior Frontend Developer<br>
|
235 |
+
TechCorp Inc., 2020-Present
|
236 |
+
</p>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
|
240 |
+
<a href="#" class="inline-flex items-center text-blue-500 hover:text-blue-600 dark:hover:text-blue-400 font-medium">
|
241 |
+
Download Resume
|
242 |
+
<i class="fas fa-download ml-2"></i>
|
243 |
+
</a>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
</div>
|
247 |
+
</section>
|
248 |
+
|
249 |
+
<!-- Projects Section -->
|
250 |
+
<section id="projects" class="py-20">
|
251 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
252 |
+
<div class="text-center mb-16">
|
253 |
+
<h2 class="text-3xl md:text-4xl font-bold text-slate-800 dark:text-white mb-4">
|
254 |
+
My <span class="text-blue-500">Projects</span>
|
255 |
+
</h2>
|
256 |
+
<div class="w-20 h-1 bg-blue-500 mx-auto mb-6"></div>
|
257 |
+
<p class="text-lg text-slate-600 dark:text-slate-400 max-w-2xl mx-auto">
|
258 |
+
Here are some of my recent works that I'm proud of
|
259 |
+
</p>
|
260 |
+
</div>
|
261 |
+
|
262 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
263 |
+
<!-- Project 1 -->
|
264 |
+
<div class="project-card bg-white dark:bg-slate-800 rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition-shadow">
|
265 |
+
<div class="h-48 overflow-hidden">
|
266 |
+
<img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80"
|
267 |
+
alt="Project 1"
|
268 |
+
class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
|
269 |
+
</div>
|
270 |
+
<div class="p-6">
|
271 |
+
<div class="flex justify-between items-start mb-3">
|
272 |
+
<h3 class="text-xl font-semibold text-slate-800 dark:text-white">E-commerce Platform</h3>
|
273 |
+
<span class="text-xs px-2 py-1 bg-blue-100 dark:bg-blue-900 text-blue-600 dark:text-blue-300 rounded-full">React</span>
|
274 |
+
</div>
|
275 |
+
<p class="text-slate-600 dark:text-slate-400 mb-4">
|
276 |
+
A full-featured e-commerce platform with product listings, cart functionality, and secure checkout.
|
277 |
+
</p>
|
278 |
+
<div class="flex justify-between items-center">
|
279 |
+
<a href="#" class="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400 font-medium text-sm flex items-center">
|
280 |
+
View Project
|
281 |
+
<i class="fas fa-arrow-right ml-1"></i>
|
282 |
+
</a>
|
283 |
+
<div class="flex space-x-2">
|
284 |
+
<a href="#" class="text-slate-400 hover:text-blue-500">
|
285 |
+
<i class="fab fa-github"></i>
|
286 |
+
</a>
|
287 |
+
<a href="#" class="text-slate-400 hover:text-blue-500">
|
288 |
+
<i class="fas fa-external-link-alt"></i>
|
289 |
+
</a>
|
290 |
+
</div>
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
</div>
|
294 |
+
|
295 |
+
<!-- Project 2 -->
|
296 |
+
<div class="project-card bg-white dark:bg-slate-800 rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition-shadow">
|
297 |
+
<div class="h-48 overflow-hidden">
|
298 |
+
<img src="https://images.unsplash.com/photo-1555774698-0b77e0d5fac6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80"
|
299 |
+
alt="Project 2"
|
300 |
+
class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
|
301 |
+
</div>
|
302 |
+
<div class="p-6">
|
303 |
+
<div class="flex justify-between items-start mb-3">
|
304 |
+
<h3 class="text-xl font-semibold text-slate-800 dark:text-white">Task Management App</h3>
|
305 |
+
<span class="text-xs px-2 py-1 bg-emerald-100 dark:bg-emerald-900 text-emerald-600 dark:text-emerald-300 rounded-full">Vue.js</span>
|
306 |
+
</div>
|
307 |
+
<p class="text-slate-600 dark:text-slate-400 mb-4">
|
308 |
+
A productivity application for managing tasks with drag-and-drop functionality and team collaboration.
|
309 |
+
</p>
|
310 |
+
<div class="flex justify-between items-center">
|
311 |
+
<a href="#" class="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400 font-medium text-sm flex items-center">
|
312 |
+
View Project
|
313 |
+
<i class="fas fa-arrow-right ml-1"></i>
|
314 |
+
</a>
|
315 |
+
<div class="flex space-x-2">
|
316 |
+
<a href="#" class="text-slate-400 hover:text-blue-500">
|
317 |
+
<i class="fab fa-github"></i>
|
318 |
+
</a>
|
319 |
+
<a href="#" class="text-slate-400 hover:text-blue-500">
|
320 |
+
<i class="fas fa-external-link-alt"></i>
|
321 |
+
</a>
|
322 |
+
</div>
|
323 |
+
</div>
|
324 |
+
</div>
|
325 |
+
</div>
|
326 |
+
|
327 |
+
<!-- Project 3 -->
|
328 |
+
<div class="project-card bg-white dark:bg-slate-800 rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition-shadow">
|
329 |
+
<div class="h-48 overflow-hidden">
|
330 |
+
<img src="https://images.unsplash.com/photo-1467232004584-a241de8bcf5d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1469&q=80"
|
331 |
+
alt="Project 3"
|
332 |
+
class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
|
333 |
+
</div>
|
334 |
+
<div class="p-6">
|
335 |
+
<div class="flex justify-between items-start mb-3">
|
336 |
+
<h3 class="text-xl font-semibold text-slate-800 dark:text-white">Weather Dashboard</h3>
|
337 |
+
<span class="text-xs px-2 py-1 bg-amber-100 dark:bg-amber-900 text-amber-600 dark:text-amber-300 rounded-full">JavaScript</span>
|
338 |
+
</div>
|
339 |
+
<p class="text-slate-600 dark:text-slate-400 mb-4">
|
340 |
+
Real-time weather information with 5-day forecasts, location search, and interactive maps.
|
341 |
+
</p>
|
342 |
+
<div class="flex justify-between items-center">
|
343 |
+
<a href="#" class="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400 font-medium text-sm flex items-center">
|
344 |
+
View Project
|
345 |
+
<i class="fas fa-arrow-right ml-1"></i>
|
346 |
+
</a>
|
347 |
+
<div class="flex space-x-2">
|
348 |
+
<a href="#" class="text-slate-400 hover:text-blue-500">
|
349 |
+
<i class="fab fa-github"></i>
|
350 |
+
</a>
|
351 |
+
<a href="#" class="text-slate-400 hover:text-blue-500">
|
352 |
+
<i class="fas fa-external-link-alt"></i>
|
353 |
+
</a>
|
354 |
+
</div>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
</div>
|
358 |
+
</div>
|
359 |
+
|
360 |
+
<div class="text-center mt-12">
|
361 |
+
<a href="#" class="inline-flex items-center px-6 py-3 border border-blue-500 text-blue-500 hover:bg-blue-50 dark:hover:bg-slate-800 rounded-lg font-medium transition-colors">
|
362 |
+
View All Projects
|
363 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
364 |
+
</a>
|
365 |
+
</div>
|
366 |
+
</div>
|
367 |
+
</section>
|
368 |
+
|
369 |
+
<!-- Skills Section -->
|
370 |
+
<section id="skills" class="py-20 bg-slate-50 dark:bg-slate-800">
|
371 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
372 |
+
<div class="text-center mb-16">
|
373 |
+
<h2 class="text-3xl md:text-4xl font-bold text-slate-800 dark:text-white mb-4">
|
374 |
+
My <span class="text-blue-500">Skills</span>
|
375 |
+
</h2>
|
376 |
+
<div class="w-20 h-1 bg-blue-500 mx-auto mb-6"></div>
|
377 |
+
<p class="text-lg text-slate-600 dark:text-slate-400 max-w-2xl mx-auto">
|
378 |
+
The tools and technologies I use to bring ideas to life
|
379 |
+
</p>
|
380 |
+
</div>
|
381 |
+
|
382 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 mb-12">
|
383 |
+
<div class="skill-pill bg-white dark:bg-slate-700 p-6 rounded-xl shadow-sm flex flex-col items-center">
|
384 |
+
<div class="w-16 h-16 bg-blue-100 dark:bg-blue-900 rounded-full flex items-center justify-center mb-4">
|
385 |
+
<i class="fab fa-react text-blue-500 text-3xl"></i>
|
386 |
+
</div>
|
387 |
+
<h3 class="font-semibold text-slate-800 dark:text-white mb-2">React</h3>
|
388 |
+
<div class="w-full bg-slate-200 dark:bg-slate-600 rounded-full h-2">
|
389 |
+
<div class="bg-blue-500 h-2 rounded-full" style="width: 90%"></div>
|
390 |
+
</div>
|
391 |
+
</div>
|
392 |
+
|
393 |
+
<div class="skill-pill bg-white dark:bg-slate-700 p-6 rounded-xl shadow-sm flex flex-col items-center">
|
394 |
+
<div class="w-16 h-16 bg-emerald-100 dark:bg-emerald-900 rounded-full flex items-center justify-center mb-4">
|
395 |
+
<i class="fab fa-vuejs text-emerald-500 text-3xl"></i>
|
396 |
+
</div>
|
397 |
+
<h3 class="font-semibold text-slate-800 dark:text-white mb-2">Vue.js</h3>
|
398 |
+
<div class="w-full bg-slate-200 dark:bg-slate-600 rounded-full h-2">
|
399 |
+
<div class="bg-emerald-500 h-2 rounded-full" style="width: 85%"></div>
|
400 |
+
</div>
|
401 |
+
</div>
|
402 |
+
|
403 |
+
<div class="skill-pill bg-white dark:bg-slate-700 p-6 rounded-xl shadow-sm flex flex-col items-center">
|
404 |
+
<div class="w-16 h-16 bg-amber-100 dark:bg-amber-900 rounded-full flex items-center justify-center mb-4">
|
405 |
+
<i class="fab fa-js-square text-amber-500 text-3xl"></i>
|
406 |
+
</div>
|
407 |
+
<h3 class="font-semibold text-slate-800 dark:text-white mb-2">JavaScript</h3>
|
408 |
+
<div class="w-full bg-slate-200 dark:bg-slate-600 rounded-full h-2">
|
409 |
+
<div class="bg-amber-500 h-2 rounded-full" style="width: 95%"></div>
|
410 |
+
</div>
|
411 |
+
</div>
|
412 |
+
|
413 |
+
<div class="skill-pill bg-white dark:bg-slate-700 p-6 rounded-xl shadow-sm flex flex-col items-center">
|
414 |
+
<div class="w-16 h-16 bg-pink-100 dark:bg-pink-900 rounded-full flex items-center justify-center mb-4">
|
415 |
+
<i class="fab fa-css3-alt text-pink-500 text-3xl"></i>
|
416 |
+
</div>
|
417 |
+
<h3 class="font-semibold text-slate-800 dark:text-white mb-2">CSS/Tailwind</h3>
|
418 |
+
<div class="w-full bg-slate-200 dark:bg-slate-600 rounded-full h-2">
|
419 |
+
<div class="bg-pink-500 h-2 rounded-full" style="width: 92%"></div>
|
420 |
+
</div>
|
421 |
+
</div>
|
422 |
+
</div>
|
423 |
+
|
424 |
+
<div class="flex flex-wrap justify-center gap-3">
|
425 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
426 |
+
<i class="fab fa-html5 text-orange-500 mr-2"></i> HTML5
|
427 |
+
</span>
|
428 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
429 |
+
<i class="fab fa-sass text-pink-500 mr-2"></i> SASS
|
430 |
+
</span>
|
431 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
432 |
+
<i class="fab fa-node-js text-green-500 mr-2"></i> Node.js
|
433 |
+
</span>
|
434 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
435 |
+
<i class="fas fa-database text-blue-500 mr-2"></i> MongoDB
|
436 |
+
</span>
|
437 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
438 |
+
<i class="fab fa-git-alt text-orange-600 mr-2"></i> Git
|
439 |
+
</span>
|
440 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
441 |
+
<i class="fab fa-figma text-purple-500 mr-2"></i> Figma
|
442 |
+
</span>
|
443 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
444 |
+
<i class="fas fa-fire text-orange-500 mr-2"></i> Firebase
|
445 |
+
</span>
|
446 |
+
<span class="skill-pill px-4 py-2 bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-300 rounded-full text-sm font-medium shadow-sm">
|
447 |
+
<i class="fas fa-mobile-alt text-blue-400 mr-2"></i> Responsive Design
|
448 |
+
</span>
|
449 |
+
</div>
|
450 |
+
</div>
|
451 |
+
</section>
|
452 |
+
|
453 |
+
<!-- Contact Section -->
|
454 |
+
<section id="contact" class="py-20">
|
455 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
456 |
+
<div class="text-center mb-16">
|
457 |
+
<h2 class="text-3xl md:text-4xl font-bold text-slate-800 dark:text-white mb-4">
|
458 |
+
Get In <span class="text-blue-500">Touch</span>
|
459 |
+
</h2>
|
460 |
+
<div class="w-20 h-1 bg-blue-500 mx-auto mb-6"></div>
|
461 |
+
<p class="text-lg text-slate-600 dark:text-slate-400 max-w-2xl mx-auto">
|
462 |
+
Have a project in mind or want to collaborate? Feel free to reach out!
|
463 |
+
</p>
|
464 |
+
</div>
|
465 |
+
|
466 |
+
<div class="flex flex-col md:flex-row gap-12">
|
467 |
+
<div class="md:w-1/2">
|
468 |
+
<form id="contact-form" class="space-y-6">
|
469 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
470 |
+
<div>
|
471 |
+
<label for="name" class="block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1">Name</label>
|
472 |
+
<input type="text" id="name" name="name" required
|
473 |
+
class="w-full px-4 py-3 rounded-lg border border-slate-300 dark:border-slate-600 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-slate-700 dark:text-white transition-colors">
|
474 |
+
</div>
|
475 |
+
<div>
|
476 |
+
<label for="email" class="block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1">Email</label>
|
477 |
+
<input type="email" id="email" name="email" required
|
478 |
+
class="w-full px-4 py-3 rounded-lg border border-slate-300 dark:border-slate-600 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-slate-700 dark:text-white transition-colors">
|
479 |
+
</div>
|
480 |
+
</div>
|
481 |
+
<div>
|
482 |
+
<label for="subject" class="block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1">Subject</label>
|
483 |
+
<input type="text" id="subject" name="subject" required
|
484 |
+
class="w-full px-4 py-3 rounded-lg border border-slate-300 dark:border-slate-600 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-slate-700 dark:text-white transition-colors">
|
485 |
+
</div>
|
486 |
+
<div>
|
487 |
+
<label for="message" class="block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1">Message</label>
|
488 |
+
<textarea id="message" name="message" rows="5" required
|
489 |
+
class="w-full px-4 py-3 rounded-lg border border-slate-300 dark:border-slate-600 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-slate-700 dark:text-white transition-colors"></textarea>
|
490 |
+
</div>
|
491 |
+
<button type="submit" class="w-full px-6 py-3 bg-blue-500 hover:bg-blue-600 text-white rounded-lg font-medium transition-colors shadow-lg hover:shadow-blue-500/30">
|
492 |
+
Send Message
|
493 |
+
</button>
|
494 |
+
</form>
|
495 |
+
</div>
|
496 |
+
|
497 |
+
<div class="md:w-1/2">
|
498 |
+
<div class="bg-white dark:bg-slate-800 p-8 rounded-xl shadow-lg h-full">
|
499 |
+
<h3 class="text-xl font-semibold text-slate-800 dark:text-white mb-6">Contact Information</h3>
|
500 |
+
|
501 |
+
<div class="space-y-6">
|
502 |
+
<div class="flex items-start">
|
503 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center mr-4">
|
504 |
+
<i class="fas fa-envelope text-blue-500"></i>
|
505 |
+
</div>
|
506 |
+
<div>
|
507 |
+
<h4 class="font-medium text-slate-700 dark:text-slate-300">Email</h4>
|
508 |
+
<a href="mailto:hello@example.com" class="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400">hello@example.com</a>
|
509 |
+
</div>
|
510 |
+
</div>
|
511 |
+
|
512 |
+
<div class="flex items-start">
|
513 |
+
<div class="w-10 h-10 rounded-full bg-emerald-100 dark:bg-emerald-900 flex items-center justify-center mr-4">
|
514 |
+
<i class="fas fa-phone-alt text-emerald-500"></i>
|
515 |
+
</div>
|
516 |
+
<div>
|
517 |
+
<h4 class="font-medium text-slate-700 dark:text-slate-300">Phone</h4>
|
518 |
+
<a href="tel:+1234567890" class="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400">+1 (234) 567-890</a>
|
519 |
+
</div>
|
520 |
+
</div>
|
521 |
+
|
522 |
+
<div class="flex items-start">
|
523 |
+
<div class="w-10 h-10 rounded-full bg-amber-100 dark:bg-amber-900 flex items-center justify-center mr-4">
|
524 |
+
<i class="fas fa-map-marker-alt text-amber-500"></i>
|
525 |
+
</div>
|
526 |
+
<div>
|
527 |
+
<h4 class="font-medium text-slate-700 dark:text-slate-300">Location</h4>
|
528 |
+
<p class="text-slate-600 dark:text-slate-400">San Francisco, CA</p>
|
529 |
+
</div>
|
530 |
+
</div>
|
531 |
+
</div>
|
532 |
+
|
533 |
+
<div class="mt-8">
|
534 |
+
<h4 class="font-medium text-slate-700 dark:text-slate-300 mb-4">Connect with me</h4>
|
535 |
+
<div class="flex space-x-4">
|
536 |
+
<a href="#" class="w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center text-slate-600 dark:text-slate-400 hover:bg-blue-100 hover:text-blue-500 dark:hover:bg-blue-900 dark:hover:text-blue-400 transition-colors">
|
537 |
+
<i class="fab fa-linkedin-in"></i>
|
538 |
+
</a>
|
539 |
+
<a href="#" class="w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center text-slate-600 dark:text-slate-400 hover:bg-blue-100 hover:text-blue-500 dark:hover:bg-blue-900 dark:hover:text-blue-400 transition-colors">
|
540 |
+
<i class="fab fa-github"></i>
|
541 |
+
</a>
|
542 |
+
<a href="#" class="w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center text-slate-600 dark:text-slate-400 hover:bg-blue-100 hover:text-blue-500 dark:hover:bg-blue-900 dark:hover:text-blue-400 transition-colors">
|
543 |
+
<i class="fab fa-twitter"></i>
|
544 |
+
</a>
|
545 |
+
<a href="#" class="w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center text-slate-600 dark:text-slate-400 hover:bg-blue-100 hover:text-blue-500 dark:hover:bg-blue-900 dark:hover:text-blue-400 transition-colors">
|
546 |
+
<i class="fab fa-dribbble"></i>
|
547 |
+
</a>
|
548 |
+
</div>
|
549 |
+
</div>
|
550 |
+
</div>
|
551 |
+
</div>
|
552 |
+
</div>
|
553 |
+
</div>
|
554 |
+
</section>
|
555 |
+
|
556 |
+
<!-- Footer -->
|
557 |
+
<footer class="bg-slate-800 text-white py-12">
|
558 |
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
559 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
560 |
+
<div class="mb-6 md:mb-0">
|
561 |
+
<a href="#home" class="text-2xl font-bold text-white">Portfolio</a>
|
562 |
+
<p class="text-slate-400 mt-2">© 2023 All rights reserved.</p>
|
563 |
+
</div>
|
564 |
+
|
565 |
+
<div class="flex flex-col items-center md:items-end">
|
566 |
+
<div class="flex space-x-6 mb-4">
|
567 |
+
<a href="#home" class="text-slate-400 hover:text-white transition-colors">Home</a>
|
568 |
+
<a href="#about" class="text-slate-400 hover:text-white transition-colors">About</a>
|
569 |
+
<a href="#projects" class="text-slate-400 hover:text-white transition-colors">Projects</a>
|
570 |
+
<a href="#contact" class="text-slate-400 hover:text-white transition-colors">Contact</a>
|
571 |
+
</div>
|
572 |
+
<div class="flex space-x-4">
|
573 |
+
<a href="#" class="text-slate-400 hover:text-white transition-colors">
|
574 |
+
<i class="fab fa-linkedin-in"></i>
|
575 |
+
</a>
|
576 |
+
<a href="#" class="text-slate-400 hover:text-white transition-colors">
|
577 |
+
<i class="fab fa-github"></i>
|
578 |
+
</a>
|
579 |
+
<a href="#" class="text-slate-400 hover:text-white transition-colors">
|
580 |
+
<i class="fab fa-twitter"></i>
|
581 |
+
</a>
|
582 |
+
<a href="#" class="text-slate-400 hover:text-white transition-colors">
|
583 |
+
<i class="fab fa-instagram"></i>
|
584 |
+
</a>
|
585 |
+
</div>
|
586 |
+
</div>
|
587 |
+
</div>
|
588 |
+
</div>
|
589 |
+
</footer>
|
590 |
+
|
591 |
+
<!-- Back to Top Button -->
|
592 |
+
<button id="back-to-top" class="fixed bottom-8 right-8 w-12 h-12 bg-blue-500 hover:bg-blue-600 text-white rounded-full shadow-lg flex items-center justify-center transition-opacity opacity-0 invisible">
|
593 |
+
<i class="fas fa-arrow-up"></i>
|
594 |
+
</button>
|
595 |
+
|
596 |
+
<script>
|
597 |
+
// Theme toggle
|
598 |
+
const themeToggle = document.getElementById('theme-toggle');
|
599 |
+
const themeToggleMobile = document.getElementById('theme-toggle-mobile');
|
600 |
+
const html = document.documentElement;
|
601 |
+
|
602 |
+
// Check for saved user preference or use system preference
|
603 |
+
const savedTheme = localStorage.getItem('theme') ||
|
604 |
+
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
605 |
+
|
606 |
+
// Apply the saved theme
|
607 |
+
html.classList.add(savedTheme);
|
608 |
+
|
609 |
+
// Update icon based on theme
|
610 |
+
updateThemeIcon();
|
611 |
+
|
612 |
+
function toggleTheme() {
|
613 |
+
if (html.classList.contains('dark')) {
|
614 |
+
html.classList.remove('dark');
|
615 |
+
html.classList.add('light');
|
616 |
+
localStorage.setItem('theme', 'light');
|
617 |
+
} else {
|
618 |
+
html.classList.remove('light');
|
619 |
+
html.classList.add('dark');
|
620 |
+
localStorage.setItem('theme', 'dark');
|
621 |
+
}
|
622 |
+
updateThemeIcon();
|
623 |
+
}
|
624 |
+
|
625 |
+
function updateThemeIcon() {
|
626 |
+
const isDark = html.classList.contains('dark');
|
627 |
+
const icons = document.querySelectorAll('.fa-moon, .fa-sun');
|
628 |
+
|
629 |
+
icons.forEach(icon => {
|
630 |
+
if (isDark) {
|
631 |
+
icon.classList.remove('fa-moon');
|
632 |
+
icon.classList.add('fa-sun');
|
633 |
+
} else {
|
634 |
+
icon.classList.remove('fa-sun');
|
635 |
+
icon.classList.add('fa-moon');
|
636 |
+
}
|
637 |
+
});
|
638 |
+
}
|
639 |
+
|
640 |
+
themeToggle.addEventListener('click', toggleTheme);
|
641 |
+
themeToggleMobile.addEventListener('click', toggleTheme);
|
642 |
+
|
643 |
+
// Mobile menu toggle
|
644 |
+
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
645 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
646 |
+
|
647 |
+
mobileMenuButton.addEventListener('click', () => {
|
648 |
+
mobileMenu.classList.toggle('hidden');
|
649 |
+
});
|
650 |
+
|
651 |
+
// Close mobile menu when clicking on a link
|
652 |
+
document.querySelectorAll('#mobile-menu a').forEach(link => {
|
653 |
+
link.addEventListener('click', () => {
|
654 |
+
mobileMenu.classList.add('hidden');
|
655 |
+
});
|
656 |
+
});
|
657 |
+
|
658 |
+
// Smooth scrolling for navigation links
|
659 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
660 |
+
anchor.addEventListener('click', function(e) {
|
661 |
+
e.preventDefault();
|
662 |
+
|
663 |
+
const targetId = this.getAttribute('href');
|
664 |
+
const targetElement = document.querySelector(targetId);
|
665 |
+
|
666 |
+
if (targetElement) {
|
667 |
+
window.scrollTo({
|
668 |
+
top: targetElement.offsetTop - 80,
|
669 |
+
behavior: 'smooth'
|
670 |
+
});
|
671 |
+
}
|
672 |
+
});
|
673 |
+
});
|
674 |
+
|
675 |
+
// Back to top button
|
676 |
+
const backToTopButton = document.getElementById('back-to-top');
|
677 |
+
|
678 |
+
window.addEventListener('scroll', () => {
|
679 |
+
if (window.pageYOffset > 300) {
|
680 |
+
backToTopButton.classList.remove('opacity-0', 'invisible');
|
681 |
+
backToTopButton.classList.add('opacity-100', 'visible');
|
682 |
+
} else {
|
683 |
+
backToTopButton.classList.remove('opacity-100', 'visible');
|
684 |
+
backToTopButton.classList.add('opacity-0', 'invisible');
|
685 |
+
}
|
686 |
+
});
|
687 |
+
|
688 |
+
backToTopButton.addEventListener('click', () => {
|
689 |
+
window.scrollTo({
|
690 |
+
top: 0,
|
691 |
+
behavior: 'smooth'
|
692 |
+
});
|
693 |
+
});
|
694 |
+
|
695 |
+
// Form submission
|
696 |
+
const contactForm = document.getElementById('contact-form');
|
697 |
+
|
698 |
+
contactForm.addEventListener('submit', (e) => {
|
699 |
+
e.preventDefault();
|
700 |
+
|
701 |
+
// Get form values
|
702 |
+
const name = document.getElementById('name').value;
|
703 |
+
const email = document.getElementById('email').value;
|
704 |
+
const subject = document.getElementById('subject').value;
|
705 |
+
const message = document.getElementById('message').value;
|
706 |
+
|
707 |
+
// Here you would typically send the form data to a server
|
708 |
+
// For this example, we'll just log it and show an alert
|
709 |
+
console.log({ name, email, subject, message });
|
710 |
+
|
711 |
+
alert('Thank you for your message! I will get back to you soon.');
|
712 |
+
contactForm.reset();
|
713 |
+
});
|
714 |
+
|
715 |
+
// Animation on scroll
|
716 |
+
const animateOnScroll = () => {
|
717 |
+
const elements = document.querySelectorAll('.project-card, .skill-pill');
|
718 |
+
|
719 |
+
elements.forEach(element => {
|
720 |
+
const elementPosition = element.getBoundingClientRect().top;
|
721 |
+
const screenPosition = window.innerHeight / 1.2;
|
722 |
+
|
723 |
+
if (elementPosition < screenPosition) {
|
724 |
+
element.style.opacity = '1';
|
725 |
+
element.style.transform = 'translateY(0)';
|
726 |
+
}
|
727 |
+
});
|
728 |
+
};
|
729 |
+
|
730 |
+
// Set initial state for animated elements
|
731 |
+
document.querySelectorAll('.project-card, .skill-pill').forEach(element => {
|
732 |
+
element.style.opacity = '0';
|
733 |
+
element.style.transform = 'translateY(20px)';
|
734 |
+
element.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
|
735 |
+
});
|
736 |
+
|
737 |
+
window.addEventListener('scroll', animateOnScroll);
|
738 |
+
window.addEventListener('load', animateOnScroll);
|
739 |
+
</script>
|
740 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Tesneem/portfolio" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
741 |
+
</html>
|