Alibexar commited on
Commit
25a0ef6
·
verified ·
1 Parent(s): 5de1e55

یه سایت زیبا برای رزومه شخصی میخوام

Browse files
Files changed (5) hide show
  1. README.md +8 -5
  2. components/navbar.js +60 -0
  3. index.html +173 -19
  4. script.js +49 -0
  5. style.css +33 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Pixelperfect Portfolio Pro
3
- emoji: 😻
4
- colorFrom: blue
5
- colorTo: indigo
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: PixelPerfect Portfolio Pro
3
+ colorFrom: purple
4
+ colorTo: blue
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/navbar.js ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .nav-link {
7
+ position: relative;
8
+ }
9
+ .nav-link::after {
10
+ content: '';
11
+ position: absolute;
12
+ width: 0;
13
+ height: 2px;
14
+ bottom: -2px;
15
+ left: 0;
16
+ background-color: #3B82F6;
17
+ transition: width 0.3s ease;
18
+ }
19
+ .nav-link:hover::after {
20
+ width: 100%;
21
+ }
22
+ .mobile-menu {
23
+ transition: all 0.3s ease;
24
+ }
25
+ </style>
26
+ <nav class="bg-white shadow-sm fixed w-full z-10">
27
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
28
+ <div class="flex justify-between h-16">
29
+ <div class="flex items-center">
30
+ <a href="#" class="text-xl font-bold text-gray-900 flex items-center">
31
+ <span class="text-primary">Portfolio</span>
32
+ </a>
33
+ </div>
34
+ <div class="hidden md:flex items-center space-x-8">
35
+ <a href="#" class="nav-link text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">Home</a>
36
+ <a href="#skills" class="nav-link text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">Skills</a>
37
+ <a href="#projects" class="nav-link text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">Projects</a>
38
+ <a href="#contact" class="nav-link text-gray-700 hover:text-primary px-3 py-2 text-sm font-medium">Contact</a>
39
+ <a href="#" class="bg-primary text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-primary-600 transition duration-300">Download CV</a>
40
+ </div>
41
+ <div class="md:hidden flex items-center">
42
+ <button id="mobile-menu-button" class="text-gray-700 hover:text-primary focus:outline-none">
43
+ <i data-feather="menu" class="w-6 h-6"></i>
44
+ </button>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div id="mobile-menu" class="mobile-menu hidden md:hidden bg-white shadow-lg">
49
+ <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
50
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-primary hover:bg-gray-50">Home</a>
51
+ <a href="#skills" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-primary hover:bg-gray-50">Skills</a>
52
+ <a href="#projects" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-primary hover:bg-gray-50">Projects</a>
53
+ <a href="#contact" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-primary hover:bg-gray-50">Contact</a>
54
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium bg-primary text-white hover:bg-primary-600">Download CV</a>
55
+ </div>
56
+ </div>
57
+ </nav>
58
+ `;
59
+
60
+ // Initialize Feather Icons in shadow
index.html CHANGED
@@ -1,19 +1,173 @@
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>My Professional Portfolio</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="components/navbar.js"></script>
12
+ <script src="components/footer.js"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ theme: {
16
+ extend: {
17
+ colors: {
18
+ primary: '#3B82F6',
19
+ secondary: '#10B981'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ </script>
25
+ </head>
26
+ <body class="bg-gray-50 text-gray-800 font-sans antialiased">
27
+ <custom-navbar></custom-navbar>
28
+
29
+ <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
30
+ <!-- Hero Section -->
31
+ <section class="flex flex-col md:flex-row items-center gap-12 mb-24">
32
+ <div class="md:w-1/2">
33
+ <h1 class="text-4xl md:text-5xl font-bold mb-6 text-primary">Hi, I'm <span class="text-secondary">Alex</span></h1>
34
+ <h2 class="text-2xl md:text-3xl font-semibold mb-6 text-gray-700">Frontend Developer & UI Designer</h2>
35
+ <p class="text-lg text-gray-600 mb-8 leading-relaxed">I create beautiful, functional digital experiences with a focus on user-centered design and clean code.</p>
36
+ <div class="flex gap-4">
37
+ <a href="#projects" class="bg-primary hover:bg-primary-600 text-white px-6 py-3 rounded-lg font-medium transition duration-300 shadow-md hover:shadow-lg">View My Work</a>
38
+ <a href="#contact" class="border-2 border-primary text-primary hover:bg-primary hover:text-white px-6 py-3 rounded-lg font-medium transition duration-300">Contact Me</a>
39
+ </div>
40
+ </div>
41
+ <div class="md:w-1/2">
42
+ <div class="relative">
43
+ <div class="w-full h-96 bg-gradient-to-r from-primary to-secondary rounded-2xl shadow-xl overflow-hidden">
44
+ <img src="http://static.photos/technology/640x360/42" alt="Profile" class="w-full h-full object-cover">
45
+ </div>
46
+ <div class="absolute -bottom-6 -right-6 bg-white p-4 rounded-xl shadow-lg">
47
+ <div class="flex items-center gap-2">
48
+ <div class="w-3 h-3 rounded-full bg-secondary"></div>
49
+ <span class="font-medium">Available for work</span>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </section>
55
+
56
+ <!-- Skills Section -->
57
+ <section class="mb-24" id="skills">
58
+ <h2 class="text-3xl font-bold mb-12 text-center text-gray-800">My Skills</h2>
59
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-6">
60
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
61
+ <div class="w-14 h-14 bg-primary-50 rounded-full flex items-center justify-center mb-4">
62
+ <i data-feather="code" class="text-primary w-6 h-6"></i>
63
+ </div>
64
+ <h3 class="font-bold text-lg mb-2">Frontend</h3>
65
+ <p class="text-gray-600">HTML, CSS, JavaScript, React, Vue, Tailwind</p>
66
+ </div>
67
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
68
+ <div class="w-14 h-14 bg-secondary-50 rounded-full flex items-center justify-center mb-4">
69
+ <i data-feather="pen-tool" class="text-secondary w-6 h-6"></i>
70
+ </div>
71
+ <h3 class="font-bold text-lg mb-2">UI/UX</h3>
72
+ <p class="text-gray-600">Figma, Adobe XD, User Research, Prototyping</p>
73
+ </div>
74
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
75
+ <div class="w-14 h-14 bg-primary-50 rounded-full flex items-center justify-center mb-4">
76
+ <i data-feather="smartphone" class="text-primary w-6 h-6"></i>
77
+ </div>
78
+ <h3 class="font-bold text-lg mb-2">Responsive</h3>
79
+ <p class="text-gray-600">Mobile-first approach, Cross-browser testing</p>
80
+ </div>
81
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
82
+ <div class="w-14 h-14 bg-secondary-50 rounded-full flex items-center justify-center mb-4">
83
+ <i data-feather="database" class="text-secondary w-6 h-6"></i>
84
+ </div>
85
+ <h3 class="font-bold text-lg mb-2">Backend</h3>
86
+ <p class="text-gray-600">Node.js, Express, MongoDB, REST APIs</p>
87
+ </div>
88
+ </div>
89
+ </section>
90
+
91
+ <!-- Projects Section -->
92
+ <section class="mb-24" id="projects">
93
+ <h2 class="text-3xl font-bold mb-12 text-center text-gray-800">Featured Projects</h2>
94
+ <div class="grid md:grid-cols-2 gap-8">
95
+ <div class="bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition duration-300">
96
+ <div class="h-48 bg-gradient-to-r from-primary to-secondary overflow-hidden">
97
+ <img src="http://static.photos/technology/1024x576/23" alt="Project 1" class="w-full h-full object-cover">
98
+ </div>
99
+ <div class="p-6">
100
+ <h3 class="font-bold text-xl mb-2">E-commerce Platform</h3>
101
+ <p class="text-gray-600 mb-4">A modern online store with cart functionality and payment integration.</p>
102
+ <div class="flex flex-wrap gap-2 mb-4">
103
+ <span class="bg-primary-100 text-primary-800 text-xs px-3 py-1 rounded-full">React</span>
104
+ <span class="bg-secondary-100 text-secondary-800 text-xs px-3 py-1 rounded-full">Node.js</span>
105
+ <span class="bg-gray-100 text-gray-800 text-xs px-3 py-1 rounded-full">MongoDB</span>
106
+ </div>
107
+ <a href="#" class="text-primary font-medium inline-flex items-center">View Project <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i></a>
108
+ </div>
109
+ </div>
110
+ <div class="bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition duration-300">
111
+ <div class="h-48 bg-gradient-to-r from-secondary to-primary overflow-hidden">
112
+ <img src="http://static.photos/workspace/1024x576/45" alt="Project 2" class="w-full h-full object-cover">
113
+ </div>
114
+ <div class="p-6">
115
+ <h3 class="font-bold text-xl mb-2">Task Management App</h3>
116
+ <p class="text-gray-600 mb-4">A productivity application for teams to collaborate on projects.</p>
117
+ <div class="flex flex-wrap gap-2 mb-4">
118
+ <span class="bg-primary-100 text-primary-800 text-xs px-3 py-1 rounded-full">Vue.js</span>
119
+ <span class="bg-secondary-100 text-secondary-800 text-xs px-3 py-1 rounded-full">Firebase</span>
120
+ <span class="bg-gray-100 text-gray-800 text-xs px-3 py-1 rounded-full">Tailwind</span>
121
+ </div>
122
+ <a href="#" class="text-primary font-medium inline-flex items-center">View Project <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i></a>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ <div class="text-center mt-8">
127
+ <a href="#" class="inline-flex items-center text-primary font-medium hover:text-primary-600">
128
+ View all projects <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
129
+ </a>
130
+ </div>
131
+ </section>
132
+
133
+ <!-- Contact Section -->
134
+ <section class="mb-24" id="contact">
135
+ <div class="bg-gradient-to-r from-primary to-secondary rounded-2xl p-8 text-white">
136
+ <div class="max-w-3xl mx-auto">
137
+ <h2 class="text-3xl font-bold mb-6">Let's Work Together</h2>
138
+ <p class="text-lg mb-8 opacity-90">Have a project in mind or want to discuss potential opportunities? I'd love to hear from you!</p>
139
+ <form class="space-y-6">
140
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
141
+ <div>
142
+ <label for="name" class="block mb-2 font-medium">Name</label>
143
+ <input type="text" id="name" class="w-full px-4 py-3 rounded-lg bg-white bg-opacity-10 border border-white border-opacity-20 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="Your name">
144
+ </div>
145
+ <div>
146
+ <label for="email" class="block mb-2 font-medium">Email</label>
147
+ <input type="email" id="email" class="w-full px-4 py-3 rounded-lg bg-white bg-opacity-10 border border-white border-opacity-20 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="Your email">
148
+ </div>
149
+ </div>
150
+ <div>
151
+ <label for="subject" class="block mb-2 font-medium">Subject</label>
152
+ <input type="text" id="subject" class="w-full px-4 py-3 rounded-lg bg-white bg-opacity-10 border border-white border-opacity-20 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="What's this about?">
153
+ </div>
154
+ <div>
155
+ <label for="message" class="block mb-2 font-medium">Message</label>
156
+ <textarea id="message" rows="4" class="w-full px-4 py-3 rounded-lg bg-white bg-opacity-10 border border-white border-opacity-20 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="Your message"></textarea>
157
+ </div>
158
+ <button type="submit" class="bg-white text-primary px-6 py-3 rounded-lg font-medium hover:bg-opacity-90 transition duration-300 shadow-md">Send Message</button>
159
+ </form>
160
+ </div>
161
+ </div>
162
+ </section>
163
+ </main>
164
+
165
+ <custom-footer></custom-footer>
166
+
167
+ <script>
168
+ feather.replace();
169
+ </script>
170
+ <script src="script.js"></script>
171
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
172
+ </body>
173
+ </html>
script.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main JavaScript file for functionality
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Smooth scrolling for anchor links
4
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
5
+ anchor.addEventListener('click', function (e) {
6
+ e.preventDefault();
7
+
8
+ const targetId = this.getAttribute('href');
9
+ if (targetId === '#') return;
10
+
11
+ const targetElement = document.querySelector(targetId);
12
+ if (targetElement) {
13
+ targetElement.scrollIntoView({
14
+ behavior: 'smooth'
15
+ });
16
+ }
17
+ });
18
+ });
19
+
20
+ // Animation for elements when they come into view
21
+ const animateOnScroll = () => {
22
+ const elements = document.querySelectorAll('.animate-on-scroll');
23
+
24
+ elements.forEach(element => {
25
+ const elementPosition = element.getBoundingClientRect().top;
26
+ const windowHeight = window.innerHeight;
27
+
28
+ if (elementPosition < windowHeight - 100) {
29
+ element.classList.add('animate-fadeInUp');
30
+ }
31
+ });
32
+ };
33
+
34
+ // Initialize animation on load and scroll
35
+ window.addEventListener('load', animateOnScroll);
36
+ window.addEventListener('scroll', animateOnScroll);
37
+
38
+ // Form submission handling
39
+ const contactForm = document.querySelector('form');
40
+ if (contactForm) {
41
+ contactForm.addEventListener('submit', function(e) {
42
+ e.preventDefault();
43
+
44
+ // Here you would typically send the form data to a server
45
+ alert('Thank you for your message! I will get back to you soon.');
46
+ this.reset();
47
+ });
48
+ }
49
+ });
style.css CHANGED
@@ -1,28 +1,43 @@
 
 
 
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 styles that extend Tailwind */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Inter', sans-serif;
6
+ }
7
+
8
+ /* Smooth scrolling for anchor links */
9
+ html {
10
+ scroll-behavior: smooth;
11
  }
12
 
13
+ /* Custom gradient text */
14
+ .text-gradient {
15
+ background-clip: text;
16
+ -webkit-background-clip: text;
17
+ color: transparent;
18
+ background-image: linear-gradient(to right, #3B82F6, #10B981);
19
  }
20
 
21
+ /* Animation for skill cards */
22
+ .skill-card:hover {
23
+ transform: translateY(-5px);
24
+ transition: all 0.3s ease;
 
25
  }
26
 
27
+ /* Custom scrollbar */
28
+ ::-webkit-scrollbar {
29
+ width: 8px;
 
 
 
30
  }
31
 
32
+ ::-webkit-scrollbar-track {
33
+ background: #f1f1f1;
34
  }
35
+
36
+ ::-webkit-scrollbar-thumb {
37
+ background: #3B82F6;
38
+ border-radius: 4px;
39
+ }
40
+
41
+ ::-webkit-scrollbar-thumb:hover {
42
+ background: #2563eb;
43
+ }