hansmoritzhafen commited on
Commit
611c753
·
verified ·
1 Parent(s): 4343f89
Files changed (8) hide show
  1. README.md +8 -5
  2. components/footer.js +121 -0
  3. components/navbar.js +171 -0
  4. components/project-card.js +188 -0
  5. components/skill-chip.js +85 -0
  6. index.html +275 -19
  7. script.js +199 -0
  8. style.css +166 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Nana S Nebula
3
- emoji: 🐨
4
- colorFrom: purple
5
- colorTo: pink
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: Nana's Nebula 🌌
3
+ colorFrom: green
4
+ colorTo: purple
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class FooterComponent extends HTMLElement {
2
+ constructor() {
3
+ super();
4
+ this.attachShadow({ mode: 'open' });
5
+ }
6
+
7
+ connectedCallback() {
8
+ this.shadowRoot.innerHTML = `
9
+ <style>
10
+ footer {
11
+ background: rgba(15, 23, 42, 0.9);
12
+ border-top: 1px solid rgba(148, 163, 184, 0.1);
13
+ padding: 3rem 0;
14
+ margin-top: 4rem;
15
+ }
16
+
17
+ .footer-content {
18
+ max-width: 72rem;
19
+ margin: 0 auto;
20
+ padding: 0 1rem;
21
+ text-align: center;
22
+ }
23
+
24
+ .social-links {
25
+ display: flex;
26
+ justify-content: center;
27
+ gap: 1.5rem;
28
+ margin-bottom: 2rem;
29
+ }
30
+
31
+ .social-link {
32
+ width: 3rem;
33
+ height: 3rem;
34
+ border-radius: 9999px;
35
+ background: rgba(30, 41, 59, 0.5);
36
+ border: 1px solid rgba(148, 163, 184, 0.2);
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ color: #94a3b8;
41
+ text-decoration: none;
42
+ transition: all 0.3s ease;
43
+ }
44
+
45
+ .social-link:hover {
46
+ background: linear-gradient(135deg, #6366f1, #a855f7);
47
+ color: white;
48
+ border-color: transparent;
49
+ transform: translateY(-3px);
50
+ }
51
+
52
+ .social-link svg {
53
+ width: 1.25rem;
54
+ height: 1.25rem;
55
+ }
56
+
57
+ .copyright {
58
+ color: #64748b;
59
+ font-size: 0.875rem;
60
+ }
61
+
62
+ .copyright a {
63
+ color: #94a3b8;
64
+ text-decoration: none;
65
+ transition: color 0.3s ease;
66
+ }
67
+
68
+ .copyright a:hover {
69
+ color: #6366f1;
70
+ }
71
+
72
+ .heart {
73
+ display: inline-block;
74
+ color: #ef4444;
75
+ animation: heartbeat 1.5s ease-in-out infinite;
76
+ }
77
+
78
+ @keyframes heartbeat {
79
+ 0%, 100% { transform: scale(1); }
80
+ 50% { transform: scale(1.1); }
81
+ }
82
+ </style>
83
+
84
+ <footer>
85
+ <div class="footer-content">
86
+ <div class="social-links">
87
+ <a href="#" class="social-link" aria-label="GitHub">
88
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
89
+ <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
90
+ </svg>
91
+ </a>
92
+ <a href="#" class="social-link" aria-label="LinkedIn">
93
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
94
+ <path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
95
+ <rect x="2" y="9" width="4" height="12"></rect>
96
+ <circle cx="4" cy="4" r="2"></circle>
97
+ </svg>
98
+ </a>
99
+ <a href="#" class="social-link" aria-label="Twitter">
100
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
101
+ <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
102
+ </svg>
103
+ </a>
104
+ <a href="#" class="social-link" aria-label="Dribbble">
105
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
106
+ <circle cx="12" cy="12" r="10"></circle>
107
+ <path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63.82-8.67 3.67"></path>
108
+ </svg>
109
+ </a>
110
+ </div>
111
+
112
+ <div class="copyright">
113
+ <p>&copy; 2024 Nana. All rights reserved. | Made with <span class="heart">❤️</span> and <a href="#">Coffee</a></p>
114
+ </div>
115
+ </div>
116
+ </footer>
117
+ `;
118
+ }
119
+ }
120
+
121
+ customElements.define('footer-component', FooterComponent);
components/navbar.js ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class NavComponent extends HTMLElement {
2
+ constructor() {
3
+ super();
4
+ this.attachShadow({ mode: 'open' });
5
+ }
6
+
7
+ connectedCallback() {
8
+ this.shadowRoot.innerHTML = `
9
+ <style>
10
+ :host {
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ z-index: 100;
16
+ }
17
+
18
+ nav {
19
+ background: rgba(15, 23, 42, 0.8);
20
+ backdrop-filter: blur(12px);
21
+ -webkit-backdrop-filter: blur(12px);
22
+ border-bottom: 1px solid rgba(148, 163, 184, 0.1);
23
+ transition: all 0.3s ease;
24
+ }
25
+
26
+ .nav-container {
27
+ max-width: 72rem;
28
+ margin: 0 auto;
29
+ padding: 0 1rem;
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: center;
33
+ height: 5rem;
34
+ }
35
+
36
+ .logo {
37
+ font-size: 1.5rem;
38
+ font-weight: bold;
39
+ background: linear-gradient(135deg, #6366f1, #a855f7);
40
+ -webkit-background-clip: text;
41
+ -webkit-text-fill-color: transparent;
42
+ background-clip: text;
43
+ }
44
+
45
+ .nav-links {
46
+ display: flex;
47
+ gap: 2rem;
48
+ align-items: center;
49
+ }
50
+
51
+ .nav-link {
52
+ color: #94a3b8;
53
+ text-decoration: none;
54
+ font-weight: 500;
55
+ padding: 0.5rem 0;
56
+ position: relative;
57
+ transition: color 0.3s ease;
58
+ }
59
+
60
+ .nav-link:hover, .nav-link.active {
61
+ color: #6366f1;
62
+ }
63
+
64
+ .nav-link::after {
65
+ content: '';
66
+ position: absolute;
67
+ bottom: 0;
68
+ left: 0;
69
+ width: 0;
70
+ height: 2px;
71
+ background: linear-gradient(90deg, #6366f1, #a855f7);
72
+ transition: width 0.3s ease;
73
+ }
74
+
75
+ .nav-link:hover::after, .nav-link.active::after {
76
+ width: 100%;
77
+ }
78
+
79
+ .mobile-menu-btn {
80
+ display: none;
81
+ background: none;
82
+ border: none;
83
+ color: #94a3b8;
84
+ cursor: pointer;
85
+ padding: 0.5rem;
86
+ }
87
+
88
+ .mobile-menu-btn:hover {
89
+ color: #6366f1;
90
+ }
91
+
92
+ .mobile-menu {
93
+ position: absolute;
94
+ top: 100%;
95
+ left: 0;
96
+ right: 0;
97
+ background: rgba(15, 23, 42, 0.95);
98
+ backdrop-filter: blur(12px);
99
+ -webkit-backdrop-filter: blur(12px);
100
+ border-bottom: 1px solid rgba(148, 163, 184, 0.1);
101
+ padding: 1.5rem;
102
+ display: none;
103
+ }
104
+
105
+ .mobile-menu:not(.hidden) {
106
+ display: block;
107
+ }
108
+
109
+ .mobile-links {
110
+ display: flex;
111
+ flex-direction: column;
112
+ gap: 1rem;
113
+ }
114
+
115
+ .mobile-links a {
116
+ color: #e2e8f0;
117
+ text-decoration: none;
118
+ font-size: 1.125rem;
119
+ padding: 0.5rem 0;
120
+ transition: color 0.3s ease;
121
+ }
122
+
123
+ .mobile-links a:hover {
124
+ color: #6366f1;
125
+ }
126
+
127
+ @media (max-width: 768px) {
128
+ .nav-links {
129
+ display: none;
130
+ }
131
+
132
+ .mobile-menu-btn {
133
+ display: block;
134
+ }
135
+ }
136
+ </style>
137
+
138
+ <nav>
139
+ <div class="nav-container">
140
+ <a href="#home" class="logo">🌌 Nana</a>
141
+
142
+ <div class="nav-links">
143
+ <a href="#about" class="nav-link">About</a>
144
+ <a href="#skills" class="nav-link">Skills</a>
145
+ <a href="#projects" class="nav-link">Projects</a>
146
+ <a href="#contact" class="nav-link">Contact</a>
147
+ </div>
148
+
149
+ <button class="mobile-menu-btn" onclick="toggleMobileMenu()">
150
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
151
+ <line x1="3" y1="12" x2="21" y2="12"></line>
152
+ <line x1="3" y1="6" x2="21" y2="6"></line>
153
+ <line x1="3" y1="18" x2="21" y2="18"></line>
154
+ </svg>
155
+ </button>
156
+ </div>
157
+
158
+ <div id="mobile-menu" class="mobile-menu hidden">
159
+ <div class="mobile-links">
160
+ <a href="#about" onclick="toggleMobileMenu()">About</a>
161
+ <a href="#skills" onclick="toggleMobileMenu()">Skills</a>
162
+ <a href="#projects" onclick="toggleMobileMenu()">Projects</a>
163
+ <a href="#contact" onclick="toggleMobileMenu()">Contact</a>
164
+ </div>
165
+ </div>
166
+ </nav>
167
+ `;
168
+ }
169
+ }
170
+
171
+ customElements.define('nav-component', NavComponent);
components/project-card.js ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class ProjectCard extends HTMLElement {
2
+ constructor() {
3
+ super();
4
+ this.attachShadow({ mode: 'open' });
5
+ }
6
+
7
+ static get observedAttributes() {
8
+ return ['title', 'description', 'image', 'tags', 'demo-url', 'code-url'];
9
+ }
10
+
11
+ connectedCallback() {
12
+ this.render();
13
+ }
14
+
15
+ attributeChangedCallback() {
16
+ this.render();
17
+ }
18
+
19
+ render() {
20
+ const title = this.getAttribute('title') || '';
21
+ const description = this.getAttribute('description') || '';
22
+ const image = this.getAttribute('image') || '';
23
+ const tags = JSON.parse(this.getAttribute('tags') || '[]');
24
+ const demoUrl = this.getAttribute('demo-url') || '#';
25
+ const codeUrl = this.getAttribute('code-url') || '#';
26
+
27
+ this.shadowRoot.innerHTML = `
28
+ <style>
29
+ :host {
30
+ display: block;
31
+ animation: fadeInUp 0.6s ease-out both;
32
+ }
33
+
34
+ .project-card {
35
+ position: relative;
36
+ background: rgba(30, 41, 59, 0.5);
37
+ border: 1px solid rgba(148, 163, 184, 0.1);
38
+ border-radius: 1.5rem;
39
+ overflow: hidden;
40
+ height: 100%;
41
+ display: flex;
42
+ flex-direction: column;
43
+ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
44
+ }
45
+
46
+ .project-card:hover {
47
+ transform: translateY(-8px) scale(1.02);
48
+ border-color: rgba(99, 102, 241, 0.3);
49
+ box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
50
+ }
51
+
52
+ .project-image {
53
+ width: 100%;
54
+ height: 200px;
55
+ object-fit: cover;
56
+ transition: transform 0.4s ease;
57
+ }
58
+
59
+ .project-card:hover .project-image {
60
+ transform: scale(1.05);
61
+ }
62
+
63
+ .project-content {
64
+ padding: 1.5rem;
65
+ flex: 1;
66
+ display: flex;
67
+ flex-direction: column;
68
+ }
69
+
70
+ .project-title {
71
+ font-size: 1.25rem;
72
+ font-weight: 600;
73
+ margin-bottom: 0.75rem;
74
+ color: #f1f5f9;
75
+ }
76
+
77
+ .project-description {
78
+ color: #94a3b8;
79
+ margin-bottom: 1rem;
80
+ flex: 1;
81
+ line-height: 1.6;
82
+ }
83
+
84
+ .project-tags {
85
+ display: flex;
86
+ flex-wrap: wrap;
87
+ gap: 0.5rem;
88
+ margin-bottom: 1.5rem;
89
+ }
90
+
91
+ .tag {
92
+ padding: 0.25rem 0.75rem;
93
+ border-radius: 9999px;
94
+ font-size: 0.75rem;
95
+ font-weight: 500;
96
+ background: rgba(99, 102, 241, 0.1);
97
+ color: #c7d2fe;
98
+ border: 1px solid rgba(99, 102, 241, 0.2);
99
+ }
100
+
101
+ .project-links {
102
+ display: flex;
103
+ gap: 1rem;
104
+ margin-top: auto;
105
+ }
106
+
107
+ .project-link {
108
+ flex: 1;
109
+ padding: 0.5rem 1rem;
110
+ border-radius: 0.5rem;
111
+ text-decoration: none;
112
+ font-weight: 500;
113
+ font-size: 0.875rem;
114
+ text-align: center;
115
+ transition: all 0.3s ease;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ gap: 0.5rem;
120
+ }
121
+
122
+ .demo-link {
123
+ background: linear-gradient(135deg, #6366f1, #a855f7);
124
+ color: white;
125
+ }
126
+
127
+ .demo-link:hover {
128
+ opacity: 0.9;
129
+ transform: translateY(-1px);
130
+ }
131
+
132
+ .code-link {
133
+ background: rgba(30, 41, 59, 0.8);
134
+ color: #c7d2fe;
135
+ border: 1px solid rgba(99, 102, 241, 0.3);
136
+ }
137
+
138
+ .code-link:hover {
139
+ background: rgba(99, 102, 241, 0.1);
140
+ color: #e0e7ff;
141
+ }
142
+
143
+ @keyframes fadeInUp {
144
+ from {
145
+ opacity: 0;
146
+ transform: translateY(30px);
147
+ }
148
+ to {
149
+ opacity: 1;
150
+ transform: translateY(0);
151
+ }
152
+ }
153
+ </style>
154
+
155
+ <div class="project-card">
156
+ <img src="${image}" alt="${title}" class="project-image">
157
+
158
+ <div class="project-content">
159
+ <h3 class="project-title">${title}</h3>
160
+ <p class="project-description">${description}</p>
161
+
162
+ <div class="project-tags">
163
+ ${tags.map(tag => `<span class="tag">${tag}</span>`).join('')}
164
+ </div>
165
+
166
+ <div class="project-links">
167
+ <a href="${demoUrl}" class="project-link demo-link">
168
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
169
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
170
+ <polyline points="15 3 21 3 21 9"></polyline>
171
+ <line x1="10" y1="14" x2="21" y2="3"></line>
172
+ </svg>
173
+ Live Demo
174
+ </a>
175
+ <a href="${codeUrl}" class="project-link code-link">
176
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
177
+ <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
178
+ </svg>
179
+ Code
180
+ </a>
181
+ </div>
182
+ </div>
183
+ </div>
184
+ `;
185
+ }
186
+ }
187
+
188
+ customElements.define('project-card', ProjectCard);
components/skill-chip.js ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class SkillChip extends HTMLElement {
2
+ constructor() {
3
+ super();
4
+ this.attachShadow({ mode: 'open' });
5
+ }
6
+
7
+ static get observedAttributes() {
8
+ return ['name', 'color'];
9
+ }
10
+
11
+ connectedCallback() {
12
+ this.render();
13
+ }
14
+
15
+ attributeChangedCallback() {
16
+ this.render();
17
+ }
18
+
19
+ getColorClasses(color) {
20
+ const colorMap = {
21
+ blue: { bg: 'bg-blue-500/10', text: 'text-blue-400', border: 'border-blue-500/20' },
22
+ indigo: { bg: 'bg-indigo-500/10', text: 'text-indigo-400', border: 'border-indigo-500/20' },
23
+ purple: { bg: 'bg-purple-500/10', text: 'text-purple-400', border: 'border-purple-500/20' },
24
+ pink: { bg: 'bg-pink-500/10', text: 'text-pink-400', border: 'border-pink-500/20' },
25
+ green: { bg: 'bg-green-500/10', text: 'text-green-400', border: 'border-green-500/20' },
26
+ yellow: { bg: 'bg-yellow-500/10', text: 'text-yellow-400', border: 'border-yellow-500/20' },
27
+ red: { bg: 'bg-red-500/10', text: 'text-red-400', border: 'border-red-500/20' },
28
+ orange: { bg: 'bg-orange-500/10', text: 'text-orange-400', border: 'border-orange-500/20' },
29
+ cyan: { bg: 'bg-cyan-500/10', text: 'text-cyan-400', border: 'border-cyan-500/20' },
30
+ emerald: { bg: 'bg-emerald-500/10', text: 'text-emerald-400', border: 'border-emerald-500/20' },
31
+ slate: { bg: 'bg-slate-500/10', text: 'text-slate-400', border: 'border-slate-500/20' },
32
+ default: { bg: 'bg-slate-500/10', text: 'text-slate-400', border: 'border-slate-500/20' }
33
+ };
34
+
35
+ return colorMap[color] || colorMap.default;
36
+ }
37
+
38
+ render() {
39
+ const name = this.getAttribute('name') || '';
40
+ const color = this.getAttribute('color') || 'slate';
41
+ const colors = this.getColorClasses(color);
42
+
43
+ this.shadowRoot.innerHTML = `
44
+ <style>
45
+ :host {
46
+ display: inline-block;
47
+ animation: fadeIn 0.5s ease-out both;
48
+ }
49
+
50
+ .chip {
51
+ padding: 0.375rem 0.875rem;
52
+ border-radius: 9999px;
53
+ font-size: 0.875rem;
54
+ font-weight: 500;
55
+ transition: all 0.3s ease;
56
+ cursor: default;
57
+ border-width: 1px;
58
+ backdrop-filter: blur(4px);
59
+ }
60
+
61
+ .chip:hover {
62
+ transform: translateY(-2px);
63
+ filter: brightness(1.2);
64
+ }
65
+
66
+ @keyframes fadeIn {
67
+ from {
68
+ opacity: 0;
69
+ transform: scale(0.8);
70
+ }
71
+ to {
72
+ opacity: 1;
73
+ transform: scale(1);
74
+ }
75
+ }
76
+ </style>
77
+
78
+ <span class="chip ${colors.bg} ${colors.text} ${colors.border}">
79
+ ${name}
80
+ </span>
81
+ `;
82
+ }
83
+ }
84
+
85
+ customElements.define('skill-chip', SkillChip);
index.html CHANGED
@@ -1,19 +1,275 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Nana | Creative Developer</title>
7
+ <link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌌</text></svg>">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ </head>
13
+ <body class="bg-slate-900 text-white antialiased overflow-x-hidden">
14
+ <!-- Loading Screen -->
15
+ <div id="loader" class="fixed inset-0 bg-slate-900 z-50 flex items-center justify-center transition-opacity duration-500">
16
+ <div class="relative">
17
+ <div class="w-16 h-16 rounded-full border-4 border-indigo-500/20 border-t-indigo-500 animate-spin"></div>
18
+ <div class="absolute inset-0 w-16 h-16 rounded-full border-4 border-transparent border-t-purple-500 animate-spin" style="animation-duration: 1.5s;"></div>
19
+ </div>
20
+ </div>
21
+
22
+ <!-- Animated Background -->
23
+ <div class="fixed inset-0 -z-10 opacity-30">
24
+ <div id="particles" class="w-full h-full"></div>
25
+ </div>
26
+
27
+ <!-- Navigation -->
28
+ <nav-component></nav-component>
29
+
30
+ <!-- Hero Section -->
31
+ <section class="min-h-screen flex items-center justify-center px-4 pt-20">
32
+ <div class="max-w-6xl w-full grid lg:grid-cols-2 gap-12 items-center">
33
+ <div class="space-y-8 fade-in-up">
34
+ <div class="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-indigo-500/10 border border-indigo-500/20 backdrop-blur-sm">
35
+ <div class="w-2 h-2 bg-indigo-500 rounded-full animate-pulse"></div>
36
+ <span class="text-indigo-400 text-sm font-medium">Available for freelance</span>
37
+ </div>
38
+ <h1 class="text-5xl md:text-7xl font-bold leading-tight">
39
+ <span class="gradient-text">Nana</span>
40
+ <br />
41
+ <span class="text-transparent bg-clip-text bg-gradient-to-r from-slate-300 to-slate-400">Crafts Digital</span>
42
+ <br />
43
+ <span class="text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-400">Experiences</span>
44
+ </h1>
45
+ <p class="text-slate-400 text-lg max-w-lg">
46
+ Full-stack developer & UI/UX enthusiast creating beautiful, functional web applications
47
+ that bridge the gap between design and technology.
48
+ </p>
49
+ <div class="flex flex-wrap gap-4">
50
+ <a href="#projects" class="group relative overflow-hidden px-8 py-3 rounded-full bg-gradient-to-r from-indigo-500 to-purple-500 font-medium transition-all duration-300 hover:shadow-lg hover:shadow-indigo-500/25">
51
+ <span class="relative z-10 flex items-center gap-2">
52
+ View Projects
53
+ <i data-feather="arrow-right" class="w-4 h-4 transition-transform group-hover:translate-x-1"></i>
54
+ </span>
55
+ </a>
56
+ <a href="#contact" class="group px-8 py-3 rounded-full border border-slate-600 font-medium transition-all duration-300 hover:border-indigo-500 hover:bg-indigo-500/5 flex items-center gap-2">
57
+ <i data-feather="message-circle" class="w-4 h-4"></i>
58
+ Get in Touch
59
+ </a>
60
+ </div>
61
+ </div>
62
+ <div class="relative fade-in-up" style="animation-delay: 0.2s;">
63
+ <div class="floating">
64
+ <img src="http://static.photos/people/640x360/42" alt="Nana Portrait"
65
+ class="w-full max-w-lg mx-auto rounded-3xl border border-slate-700 shadow-2xl shadow-indigo-500/20">
66
+ </div>
67
+ <div class="absolute -top-4 -right-4 w-72 h-72 bg-indigo-500/20 rounded-full blur-3xl -z-10"></div>
68
+ <div class="absolute -bottom-4 -left-4 w-72 h-72 bg-purple-500/20 rounded-full blur-3xl -z-10"></div>
69
+ </div>
70
+ </div>
71
+ </section>
72
+
73
+ <!-- About Section -->
74
+ <section id="about" class="py-32 px-4">
75
+ <div class="max-w-6xl mx-auto">
76
+ <div class="text-center mb-16 fade-in-on-scroll">
77
+ <h2 class="text-4xl md:text-6xl font-bold mb-4">
78
+ <span class="gradient-text">About Me</span>
79
+ </h2>
80
+ <p class="text-slate-400 max-w-2xl mx-auto">
81
+ Passionate developer with a love for clean code and stunning interfaces
82
+ </p>
83
+ </div>
84
+ <div class="grid md:grid-cols-3 gap-8">
85
+ <div class="md:col-span-1 fade-in-on-scroll">
86
+ <div class="sticky top-24">
87
+ <img src="http://static.photos/workspace/640x360/88" alt="Workspace"
88
+ class="rounded-2xl border border-slate-700 shadow-xl">
89
+ <div class="mt-6 space-y-4">
90
+ <div class="flex items-center gap-3 text-slate-400">
91
+ <i data-feather="map-pin" class="w-5 h-5 text-indigo-500"></i>
92
+ <span>San Francisco, CA</span>
93
+ </div>
94
+ <div class="flex items-center gap-3 text-slate-400">
95
+ <i data-feather="calendar" class="w-5 h-5 text-indigo-500"></i>
96
+ <span>5+ Years Experience</span>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ <div class="md:col-span-2 space-y-6 fade-in-on-scroll">
102
+ <p class="text-slate-300 text-lg leading-relaxed">
103
+ Hi! I'm Nana, a creative developer who believes code is art. My journey started with a
104
+ curiosity about how things work on the internet, which led me down the rabbit hole of
105
+ web development.
106
+ </p>
107
+ <p class="text-slate-400 leading-relaxed">
108
+ I specialize in building performant, accessible, and visually stunning applications.
109
+ My stack includes React, Node.js, TypeScript, and a passion for CSS animations. When
110
+ I'm not coding, you'll find me exploring new design trends, contributing to open-source,
111
+ or capturing moments through photography.
112
+ </p>
113
+ <div class="grid sm:grid-cols-2 gap-4 pt-4">
114
+ <div class="p-4 rounded-xl bg-slate-800/50 border border-slate-700 backdrop-blur-sm">
115
+ <div class="text-3xl font-bold gradient-text">50+</div>
116
+ <div class="text-slate-400">Projects Completed</div>
117
+ </div>
118
+ <div class="p-4 rounded-xl bg-slate-800/50 border border-slate-700 backdrop-blur-sm">
119
+ <div class="text-3xl font-bold gradient-text">30+</div>
120
+ <div class="text-slate-400">Happy Clients</div>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </section>
127
+
128
+ <!-- Skills Section -->
129
+ <section id="skills" class="py-32 px-4 bg-slate-800/30">
130
+ <div class="max-w-6xl mx-auto">
131
+ <div class="text-center mb-16 fade-in-on-scroll">
132
+ <h2 class="text-4xl md:text-6xl font-bold mb-4">
133
+ <span class="gradient-text">Skills & Tools</span>
134
+ </h2>
135
+ <p class="text-slate-400 max-w-2xl mx-auto">
136
+ Technologies I work with to bring ideas to life
137
+ </p>
138
+ </div>
139
+ <div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-6">
140
+ <div class="skill-category fade-in-on-scroll">
141
+ <h3 class="text-xl font-semibold mb-4 text-indigo-400 flex items-center gap-2">
142
+ <i data-feather="code" class="w-5 h-5"></i>
143
+ Frontend
144
+ </h3>
145
+ <div class="flex flex-wrap gap-2">
146
+ <skill-chip name="React" color="blue"></skill-chip>
147
+ <skill-chip name="TypeScript" color="indigo"></skill-chip>
148
+ <skill-chip name="Next.js" color="slate"></skill-chip>
149
+ <skill-chip name="Tailwind" color="cyan"></skill-chip>
150
+ </div>
151
+ </div>
152
+ <div class="skill-category fade-in-on-scroll">
153
+ <h3 class="text-xl font-semibold mb-4 text-purple-400 flex items-center gap-2">
154
+ <i data-feather="server" class="w-5 h-5"></i>
155
+ Backend
156
+ </h3>
157
+ <div class="flex flex-wrap gap-2">
158
+ <skill-chip name="Node.js" color="green"></skill-chip>
159
+ <skill-chip name="PostgreSQL" color="blue"></skill-chip>
160
+ <skill-chip name="Python" color="yellow"></skill-chip>
161
+ <skill-chip name="Redis" color="red"></skill-chip>
162
+ </div>
163
+ </div>
164
+ <div class="skill-category fade-in-on-scroll">
165
+ <h3 class="text-xl font-semibold mb-4 text-pink-400 flex items-center gap-2">
166
+ <i data-feather="tool" class="w-5 h-5"></i>
167
+ Tools
168
+ </h3>
169
+ <div class="flex flex-wrap gap-2">
170
+ <skill-chip name="Git" color="orange"></skill-chip>
171
+ <skill-chip name="Docker" color="blue"></skill-chip>
172
+ <skill-chip name="Figma" color="purple"></skill-chip>
173
+ <skill-chip name="AWS" color="yellow"></skill-chip>
174
+ </div>
175
+ </div>
176
+ <div class="skill-category fade-in-on-scroll">
177
+ <h3 class="text-xl font-semibold mb-4 text-emerald-400 flex items-center gap-2">
178
+ <i data-feather="zap" class="w-5 h-5"></i>
179
+ Other
180
+ </h3>
181
+ <div class="flex flex-wrap gap-2">
182
+ <skill-chip name="GraphQL" color="pink"></skill-chip>
183
+ <skill-chip name="WebGL" color="indigo"></skill-chip>
184
+ <skill-chip name="Three.js" color="slate"></skill-chip>
185
+ <skill-chip name="Motion" color="red"></skill-chip>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ </section>
191
+
192
+ <!-- Projects Section -->
193
+ <section id="projects" class="py-32 px-4">
194
+ <div class="max-w-6xl mx-auto">
195
+ <div class="text-center mb-16 fade-in-on-scroll">
196
+ <h2 class="text-4xl md:text-6xl font-bold mb-4">
197
+ <span class="gradient-text">Featured Projects</span>
198
+ </h2>
199
+ <p class="text-slate-400 max-w-2xl mx-auto">
200
+ A selection of recent work I'm proud of
201
+ </p>
202
+ </div>
203
+ <div id="projects-grid" class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
204
+ <!-- Projects will be injected here by JavaScript -->
205
+ </div>
206
+ </div>
207
+ </section>
208
+
209
+ <!-- Contact Section -->
210
+ <section id="contact" class="py-32 px-4 bg-gradient-to-b from-slate-900 to-slate-800">
211
+ <div class="max-w-4xl mx-auto text-center">
212
+ <div class="fade-in-on-scroll">
213
+ <h2 class="text-4xl md:text-6xl font-bold mb-4">
214
+ <span class="gradient-text">Let's Connect</span>
215
+ </h2>
216
+ <p class="text-slate-400 mb-12">
217
+ Have a project in mind? Let's create something amazing together.
218
+ </p>
219
+ <div class="grid sm:grid-cols-3 gap-8 mb-12">
220
+ <a href="mailto:hello@nana.dev" class="group p-6 rounded-2xl bg-slate-800/50 border border-slate-700 backdrop-blur-sm hover:border-indigo-500 transition-all duration-300 hover:-translate-y-1">
221
+ <i data-feather="mail" class="w-8 h-8 mx-auto mb-3 text-indigo-400"></i>
222
+ <div class="font-medium">Email</div>
223
+ <div class="text-slate-400 text-sm group-hover:text-indigo-400 transition-colors">hello@nana.dev</div>
224
+ </a>
225
+ <a href="#" class="group p-6 rounded-2xl bg-slate-800/50 border border-slate-700 backdrop-blur-sm hover:border-indigo-500 transition-all duration-300 hover:-translate-y-1">
226
+ <i data-feather="github" class="w-8 h-8 mx-auto mb-3 text-indigo-400"></i>
227
+ <div class="font-medium">GitHub</div>
228
+ <div class="text-slate-400 text-sm group-hover:text-indigo-400 transition-colors">@nana-dev</div>
229
+ </a>
230
+ <a href="#" class="group p-6 rounded-2xl bg-slate-800/50 border border-slate-700 backdrop-blur-sm hover:border-indigo-500 transition-all duration-300 hover:-translate-y-1">
231
+ <i data-feather="linkedin" class="w-8 h-8 mx-auto mb-3 text-indigo-400"></i>
232
+ <div class="font-medium">LinkedIn</div>
233
+ <div class="text-slate-400 text-sm group-hover:text-indigo-400 transition-colors">nana-creative</div>
234
+ </a>
235
+ </div>
236
+ <a href="mailto:hello@nana.dev" class="group inline-flex items-center gap-2 px-8 py-4 rounded-full bg-gradient-to-r from-indigo-500 to-purple-500 font-medium text-lg transition-all duration-300 hover:shadow-lg hover:shadow-indigo-500/25">
237
+ Start a Project
238
+ <i data-feather="arrow-right" class="w-5 h-5 transition-transform group-hover:translate-x-1"></i>
239
+ </a>
240
+ </div>
241
+ </div>
242
+ </section>
243
+
244
+ <!-- Footer -->
245
+ <footer-component></footer-component>
246
+
247
+ <!-- Floating Action Button -->
248
+ <button id="theme-toggle" class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-slate-800 border border-slate-700 backdrop-blur-sm flex items-center justify-center hover:border-indigo-500 transition-all duration-300 hover:scale-110 z-40">
249
+ <i data-feather="moon" class="w-5 h-5 text-indigo-400 hidden dark-icon"></i>
250
+ <i data-feather="sun" class="w-5 h-5 text-yellow-400 light-icon"></i>
251
+ </button>
252
+
253
+ <!-- Scripts -->
254
+ <script src="components/navbar.js"></script>
255
+ <script src="components/footer.js"></script>
256
+ <script src="components/project-card.js"></script>
257
+ <script src="components/skill-chip.js"></script>
258
+ <script src="script.js"></script>
259
+ <script>
260
+ // Initialize Feather Icons
261
+ feather.replace();
262
+
263
+ // Hide loader after page loads
264
+ window.addEventListener('load', () => {
265
+ setTimeout(() => {
266
+ document.getElementById('loader').style.opacity = '0';
267
+ setTimeout(() => {
268
+ document.getElementById('loader').style.display = 'none';
269
+ }, 500);
270
+ }, 1000);
271
+ });
272
+ </script>
273
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
274
+ </body>
275
+ </html>
script.js ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Theme Management
2
+ const themeToggle = document.getElementById('theme-toggle');
3
+ const htmlElement = document.documentElement;
4
+ const darkIcon = document.querySelector('.dark-icon');
5
+ const lightIcon = document.querySelector('.light-icon');
6
+
7
+ // Check for saved theme preference or default to dark
8
+ const currentTheme = localStorage.getItem('theme') || 'dark';
9
+ if (currentTheme === 'light') {
10
+ htmlElement.classList.add('light');
11
+ darkIcon.classList.remove('hidden');
12
+ lightIcon.classList.add('hidden');
13
+ }
14
+
15
+ themeToggle.addEventListener('click', () => {
16
+ const isLight = htmlElement.classList.contains('light');
17
+
18
+ if (isLight) {
19
+ htmlElement.classList.remove('light');
20
+ darkIcon.classList.add('hidden');
21
+ lightIcon.classList.remove('hidden');
22
+ localStorage.setItem('theme', 'dark');
23
+ } else {
24
+ htmlElement.classList.add('light');
25
+ darkIcon.classList.remove('hidden');
26
+ lightIcon.classList.add('hidden');
27
+ localStorage.setItem('theme', 'light');
28
+ }
29
+ });
30
+
31
+ // Intersection Observer for scroll animations
32
+ const observerOptions = {
33
+ threshold: 0.1,
34
+ rootMargin: '0px 0px -50px 0px'
35
+ };
36
+
37
+ const observer = new IntersectionObserver((entries) => {
38
+ entries.forEach(entry => {
39
+ if (entry.isIntersecting) {
40
+ entry.target.classList.add('visible');
41
+ }
42
+ });
43
+ }, observerOptions);
44
+
45
+ // Observe all fade-in elements
46
+ document.addEventListener('DOMContentLoaded', () => {
47
+ const fadeElements = document.querySelectorAll('.fade-in-on-scroll');
48
+ fadeElements.forEach(el => observer.observe(el));
49
+ });
50
+
51
+ // Smooth scroll for anchor links
52
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
53
+ anchor.addEventListener('click', function (e) {
54
+ e.preventDefault();
55
+ const target = document.querySelector(this.getAttribute('href'));
56
+ if (target) {
57
+ target.scrollIntoView({
58
+ behavior: 'smooth',
59
+ block: 'start'
60
+ });
61
+
62
+ // Update URL without jumping
63
+ history.pushState(null, null, this.getAttribute('href'));
64
+ }
65
+ });
66
+ });
67
+
68
+ // Mock Projects Data (In real app, fetch from API)
69
+ const mockProjects = [
70
+ {
71
+ title: "Cosmic Dashboard",
72
+ description: "A real-time analytics dashboard with stunning visualizations and smooth animations.",
73
+ image: "http://static.photos/technology/640x360/123",
74
+ tags: ["React", "D3.js", "Node.js"],
75
+ demoUrl: "#",
76
+ codeUrl: "#"
77
+ },
78
+ {
79
+ title: "Nebula Commerce",
80
+ description: "Modern e-commerce platform with AR product preview and AI recommendations.",
81
+ image: "http://static.photos/retail/640x360/456",
82
+ tags: ["Next.js", "Stripe", "PostgreSQL"],
83
+ demoUrl: "#",
84
+ codeUrl: "#"
85
+ },
86
+ {
87
+ title: "Stellar Chat",
88
+ description: "Real-time messaging app with end-to-end encryption and video calls.",
89
+ image: "http://static.photos/people/640x360/789",
90
+ tags: ["TypeScript", "WebRTC", "Socket.io"],
91
+ demoUrl: "#",
92
+ codeUrl: "#"
93
+ },
94
+ {
95
+ title: "Aurora CMS",
96
+ description: "Headless CMS with visual content modeling and GraphQL API.",
97
+ image: "http://static.photos/office/640x360/101",
98
+ tags: ["Vue.js", "GraphQL", "MongoDB"],
99
+ demoUrl: "#",
100
+ codeUrl: "#"
101
+ },
102
+ {
103
+ title: "Lunar Tasks",
104
+ description: "Minimalist task manager with focus mode and productivity insights.",
105
+ image: "http://static.photos/minimal/640x360/202",
106
+ tags: ["React", "PWA", "Firebase"],
107
+ demoUrl: "#",
108
+ codeUrl: "#"
109
+ },
110
+ {
111
+ title: "Quantum Blog",
112
+ description: "Lightning-fast blog platform with MDX support and theme switching.",
113
+ image: "http://static.photos/nature/640x360/303",
114
+ tags: ["Remix", "Prisma", "Tailwind"],
115
+ demoUrl: "#",
116
+ codeUrl: "#"
117
+ }
118
+ ];
119
+
120
+ // Inject projects into the grid
121
+ function loadProjects() {
122
+ const projectsGrid = document.getElementById('projects-grid');
123
+
124
+ mockProjects.forEach((project, index) => {
125
+ const projectCard = document.createElement('project-card');
126
+ projectCard.setAttribute('title', project.title);
127
+ projectCard.setAttribute('description', project.description);
128
+ projectCard.setAttribute('image', project.image);
129
+ projectCard.setAttribute('tags', JSON.stringify(project.tags));
130
+ projectCard.setAttribute('demo-url', project.demoUrl);
131
+ projectCard.setAttribute('code-url', project.codeUrl);
132
+ projectCard.style.animationDelay = `${index * 0.1}s`;
133
+ projectsGrid.appendChild(projectCard);
134
+ });
135
+ }
136
+
137
+ // Initialize projects when DOM is ready
138
+ document.addEventListener('DOMContentLoaded', loadProjects);
139
+
140
+ // Add parallax effect to hero section
141
+ window.addEventListener('scroll', () => {
142
+ const scrolled = window.pageYOffset;
143
+ const parallax = document.querySelector('#particles');
144
+ if (parallax) {
145
+ parallax.style.transform = `translateY(${scrolled * 0.5}px)`;
146
+ }
147
+ });
148
+
149
+ // Add active state to nav links based on scroll position
150
+ window.addEventListener('scroll', () => {
151
+ const sections = document.querySelectorAll('section[id]');
152
+ const navLinks = document.querySelectorAll('.nav-link');
153
+
154
+ let current = '';
155
+ sections.forEach(section => {
156
+ const sectionTop = section.offsetTop;
157
+ const sectionHeight = section.clientHeight;
158
+ if (scrollY >= sectionTop - 200) {
159
+ current = section.getAttribute('id');
160
+ }
161
+ });
162
+
163
+ navLinks.forEach(link => {
164
+ link.classList.remove('active');
165
+ if (link.getAttribute('href') === `#${current}`) {
166
+ link.classList.add('active');
167
+ }
168
+ });
169
+ });
170
+
171
+ // Create dynamic particles
172
+ function createParticles() {
173
+ const container = document.getElementById('particles');
174
+ if (!container) return;
175
+
176
+ for (let i = 0; i < 50; i++) {
177
+ const particle = document.createElement('div');
178
+ particle.style.position = 'absolute';
179
+ particle.style.width = Math.random() * 4 + 'px';
180
+ particle.style.height = particle.style.width;
181
+ particle.style.backgroundColor = Math.random() > 0.5 ? 'rgba(99, 102, 241, 0.5)' : 'rgba(168, 85, 247, 0.5)';
182
+ particle.style.borderRadius = '50%';
183
+ particle.style.left = Math.random() * 100 + '%';
184
+ particle.style.top = Math.random() * 100 + '%';
185
+ particle.style.animation = `float ${Math.random() * 10 + 10}s infinite ease-in-out`;
186
+ particle.style.animationDelay = Math.random() * 5 + 's';
187
+ container.appendChild(particle);
188
+ }
189
+ }
190
+
191
+ // Initialize particles
192
+ document.addEventListener('DOMContentLoaded', createParticles);
193
+
194
+ // Mobile menu toggle (for navbar component)
195
+ window.toggleMobileMenu = function() {
196
+ const menu = document.getElementById('mobile-menu');
197
+ menu.classList.toggle('hidden');
198
+ menu.classList.toggle('mobile-menu-enter');
199
+ };
style.css CHANGED
@@ -1,28 +1,175 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom Animations & Effects */
2
+ @tailwind base;
3
+ @tailwind components;
4
+ @tailwind utilities;
5
+
6
+ @layer base {
7
+ html {
8
+ scroll-behavior: smooth;
9
+ }
10
+
11
+ body {
12
+ @apply bg-slate-900 text-white antialiased;
13
+ }
14
+ }
15
+
16
+ @layer components {
17
+ .gradient-text {
18
+ @apply text-transparent bg-clip-text bg-gradient-to-r from-indigo-500 to-purple-500;
19
+ }
20
+
21
+ .fade-in-up {
22
+ animation: fadeInUp 0.8s ease-out both;
23
+ }
24
+
25
+ .fade-in-on-scroll {
26
+ @apply opacity-0 translate-y-8;
27
+ transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
28
+ }
29
+
30
+ .fade-in-on-scroll.visible {
31
+ @apply opacity-100 translate-y-0;
32
+ }
33
+
34
+ .floating {
35
+ animation: float 6s ease-in-out infinite;
36
+ }
37
+
38
+ .skill-category {
39
+ @apply p-6 rounded-2xl bg-slate-800/50 border border-slate-700 backdrop-blur-sm transition-all duration-300 hover:-translate-y-1 hover:border-indigo-500/50;
40
+ }
41
+ }
42
+
43
+ /* Particle Background */
44
+ #particles {
45
+ background-image:
46
+ radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
47
+ radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
48
+ radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
49
+ animation: particleFloat 20s infinite ease-in-out;
50
+ }
51
+
52
+ /* Keyframes */
53
+ @keyframes fadeInUp {
54
+ from {
55
+ opacity: 0;
56
+ transform: translateY(30px);
57
+ }
58
+ to {
59
+ opacity: 1;
60
+ transform: translateY(0);
61
+ }
62
+ }
63
+
64
+ @keyframes float {
65
+ 0%, 100% {
66
+ transform: translateY(0px);
67
+ }
68
+ 50% {
69
+ transform: translateY(-20px);
70
+ }
71
+ }
72
+
73
+ @keyframes particleFloat {
74
+ 0%, 100% {
75
+ transform: translate(0, 0) scale(1);
76
+ }
77
+ 33% {
78
+ transform: translate(-20px, -30px) scale(1.05);
79
+ }
80
+ 66% {
81
+ transform: translate(20px, -10px) scale(0.95);
82
+ }
83
+ }
84
+
85
+ /* Glassmorphism Enhancement */
86
+ .glass {
87
+ background: rgba(30, 41, 59, 0.4);
88
+ backdrop-filter: blur(12px);
89
+ -webkit-backdrop-filter: blur(12px);
90
+ border: 1px solid rgba(255, 255, 255, 0.08);
91
+ }
92
+
93
+ /* Custom Scrollbar */
94
+ ::-webkit-scrollbar {
95
+ width: 10px;
96
+ }
97
+
98
+ ::-webkit-scrollbar-track {
99
+ background: rgba(15, 23, 42, 0.5);
100
  }
101
 
102
+ ::-webkit-scrollbar-thumb {
103
+ background: linear-gradient(180deg, #6366f1, #a855f7);
104
+ border-radius: 5px;
105
  }
106
 
107
+ ::-webkit-scrollbar-thumb:hover {
108
+ background: linear-gradient(180deg, #818cf8, #c084fc);
 
 
 
109
  }
110
 
111
+ /* Text Selection */
112
+ ::selection {
113
+ background: rgba(99, 102, 241, 0.3);
114
+ color: #e2e8f0;
 
 
115
  }
116
 
117
+ /* Focus Styles */
118
+ a:focus, button:focus {
119
+ outline: 2px solid rgba(99, 102, 241, 0.5);
120
+ outline-offset: 2px;
121
  }
122
+
123
+ /* Mobile Menu Animation */
124
+ .mobile-menu-enter {
125
+ animation: slideDown 0.3s ease-out;
126
+ }
127
+
128
+ @keyframes slideDown {
129
+ from {
130
+ opacity: 0;
131
+ transform: translateY(-10px);
132
+ }
133
+ to {
134
+ opacity: 1;
135
+ transform: translateY(0);
136
+ }
137
+ }
138
+
139
+ /* Project Card Hover Effects */
140
+ .project-card {
141
+ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
142
+ }
143
+
144
+ .project-card:hover {
145
+ transform: translateY(-8px) scale(1.02);
146
+ }
147
+
148
+ .project-card .project-overlay {
149
+ opacity: 0;
150
+ transition: all 0.4s ease;
151
+ }
152
+
153
+ .project-card:hover .project-overlay {
154
+ opacity: 1;
155
+ }
156
+
157
+ /* Theme Toggle Animation */
158
+ #theme-toggle i {
159
+ transition: all 0.3s ease;
160
+ }
161
+
162
+ #theme-toggle:hover i {
163
+ transform: rotate(180deg);
164
+ }
165
+
166
+ /* Responsive Adjustments */
167
+ @media (max-width: 768px) {
168
+ .gradient-text {
169
+ font-size: 3rem;
170
+ }
171
+
172
+ .skill-category {
173
+ @apply p-4;
174
+ }
175
+ }