Spaces:
Running
Running
make some cool professional page for designer
Browse files- README.md +8 -5
- components/navbar.js +63 -0
- index.html +95 -18
- script.js +39 -0
- style.css +54 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: PixelPilot Pro Studio ✨
|
| 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,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
}
|
| 10 |
+
nav {
|
| 11 |
+
display: flex;
|
| 12 |
+
justify-content: space-between;
|
| 13 |
+
align-items: center;
|
| 14 |
+
padding: 1.5rem 2rem;
|
| 15 |
+
max-width: 1200px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
}
|
| 18 |
+
.logo {
|
| 19 |
+
font-weight: 700;
|
| 20 |
+
font-size: 1.5rem;
|
| 21 |
+
color: #111827;
|
| 22 |
+
text-decoration: none;
|
| 23 |
+
}
|
| 24 |
+
.logo span {
|
| 25 |
+
color: #4f46e5;
|
| 26 |
+
}
|
| 27 |
+
.nav-links {
|
| 28 |
+
display: flex;
|
| 29 |
+
gap: 2rem;
|
| 30 |
+
}
|
| 31 |
+
.nav-links a {
|
| 32 |
+
color: #4b5563;
|
| 33 |
+
text-decoration: none;
|
| 34 |
+
font-weight: 500;
|
| 35 |
+
transition: color 0.2s;
|
| 36 |
+
}
|
| 37 |
+
.nav-links a:hover {
|
| 38 |
+
color: #4f46e5;
|
| 39 |
+
}
|
| 40 |
+
.nav-links a.active {
|
| 41 |
+
color: #4f46e5;
|
| 42 |
+
}
|
| 43 |
+
@media (max-width: 768px) {
|
| 44 |
+
nav {
|
| 45 |
+
padding: 1rem;
|
| 46 |
+
}
|
| 47 |
+
.nav-links {
|
| 48 |
+
display: none;
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
</style>
|
| 52 |
+
<nav>
|
| 53 |
+
<a href="/" class="logo">Pixel<span>Pilot</span></a>
|
| 54 |
+
<div class="nav-links">
|
| 55 |
+
<a href="/" class="active">Home</a>
|
| 56 |
+
<a href="#work">Work</a>
|
| 57 |
+
<a href="#contact">Contact</a>
|
| 58 |
+
</div>
|
| 59 |
+
</nav>
|
| 60 |
+
`;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,96 @@
|
|
| 1 |
-
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html lang="en">
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>PixelPilot Pro Studio | Digital Design</title>
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 11 |
+
</head>
|
| 12 |
+
<body class="bg-gray-50">
|
| 13 |
+
<custom-navbar></custom-navbar>
|
| 14 |
+
|
| 15 |
+
<main class="container mx-auto px-4 py-16">
|
| 16 |
+
<section class="hero min-h-[80vh] flex items-center">
|
| 17 |
+
<div class="max-w-3xl mx-auto text-center">
|
| 18 |
+
<span class="inline-block px-4 py-2 mb-6 text-sm font-medium rounded-full bg-indigo-100 text-indigo-600">Crafting Digital Experiences</span>
|
| 19 |
+
<h1 class="text-5xl md:text-7xl font-bold mb-6 text-gray-900 leading-tight">Pixel-Perfect Designs <br>That <span class="text-indigo-600">Convert</span></h1>
|
| 20 |
+
<p class="text-xl text-gray-600 mb-10 max-w-2xl mx-auto">I transform ideas into visually stunning digital experiences that engage users and drive results.</p>
|
| 21 |
+
<div class="flex justify-center gap-4">
|
| 22 |
+
<a href="#work" class="px-8 py-4 bg-indigo-600 text-white rounded-lg font-medium hover:bg-indigo-700 transition">View Work</a>
|
| 23 |
+
<a href="#contact" class="px-8 py-4 border-2 border-gray-300 text-gray-700 rounded-lg font-medium hover:bg-gray-100 transition">Contact Me</a>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
</section>
|
| 27 |
+
|
| 28 |
+
<section id="work" class="py-20">
|
| 29 |
+
<div class="max-w-4xl mx-auto text-center mb-16">
|
| 30 |
+
<h2 class="text-3xl font-bold mb-4 text-gray-900">Featured Projects</h2>
|
| 31 |
+
<p class="text-gray-600 max-w-2xl mx-auto">Selected work that showcases my design approach and problem-solving skills.</p>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 35 |
+
<div class="project-card bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition">
|
| 36 |
+
<img src="http://static.photos/design/1200x630/1" alt="E-commerce Redesign" class="w-full h-64 object-cover">
|
| 37 |
+
<div class="p-6">
|
| 38 |
+
<h3 class="text-xl font-bold mb-2 text-gray-900">E-commerce Platform Redesign</h3>
|
| 39 |
+
<p class="text-gray-600 mb-4">Increased conversions by 35% through improved UX/UI design.</p>
|
| 40 |
+
<div class="flex flex-wrap gap-2">
|
| 41 |
+
<span class="px-3 py-1 text-xs rounded-full bg-indigo-100 text-indigo-600">UI Design</span>
|
| 42 |
+
<span class="px-3 py-1 text-xs rounded-full bg-indigo-100 text-indigo-600">UX Research</span>
|
| 43 |
+
<span class="px-3 py-1 text-xs rounded-full bg-indigo-100 text-indigo-600">Prototyping</span>
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div class="project-card bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transition">
|
| 49 |
+
<img src="http://static.photos/design/1200x630/2" alt="Mobile App" class="w-full h-64 object-cover">
|
| 50 |
+
<div class="p-6">
|
| 51 |
+
<h3 class="text-xl font-bold mb-2 text-gray-900">Fitness Mobile App</h3>
|
| 52 |
+
<p class="text-gray-600 mb-4">Designed an intuitive workout tracking experience for iOS and Android.</p>
|
| 53 |
+
<div class="flex flex-wrap gap-2">
|
| 54 |
+
<span class="px-3 py-1 text-xs rounded-full bg-indigo-100 text-indigo-600">Mobile App</span>
|
| 55 |
+
<span class="px-3 py-1 text-xs rounded-full bg-indigo-100 text-indigo-600">UI/UX</span>
|
| 56 |
+
<span class="px-3 py-1 text-xs rounded-full bg-indigo-100 text-indigo-600">Branding</span>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</section>
|
| 62 |
+
|
| 63 |
+
<section id="contact" class="py-20 bg-white rounded-2xl shadow-sm">
|
| 64 |
+
<div class="max-w-4xl mx-auto px-4">
|
| 65 |
+
<div class="text-center mb-12">
|
| 66 |
+
<h2 class="text-3xl font-bold mb-4 text-gray-900">Let's Work Together</h2>
|
| 67 |
+
<p class="text-gray-600 max-w-xl mx-auto">Have a project in mind? I'd love to hear about it!</p>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<form class="max-w-xl mx-auto">
|
| 71 |
+
<div class="mb-6">
|
| 72 |
+
<label for="name" class="block mb-2 text-sm font-medium text-gray-700">Name</label>
|
| 73 |
+
<input type="text" id="name" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 74 |
+
</div>
|
| 75 |
+
<div class="mb-6">
|
| 76 |
+
<label for="email" class="block mb-2 text-sm font-medium text-gray-700">Email</label>
|
| 77 |
+
<input type="email" id="email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 78 |
+
</div>
|
| 79 |
+
<div class="mb-6">
|
| 80 |
+
<label for="message" class="block mb-2 text-sm font-medium text-gray-700">Project Details</label>
|
| 81 |
+
<textarea id="message" rows="5" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"></textarea>
|
| 82 |
+
</div>
|
| 83 |
+
<button type="submit" class="w-full px-6 py-4 bg-indigo-600 text-white font-medium rounded-lg hover:bg-indigo-700 transition">Send Message</button>
|
| 84 |
+
</form>
|
| 85 |
+
</div>
|
| 86 |
+
</section>
|
| 87 |
+
</main>
|
| 88 |
+
|
| 89 |
+
<custom-footer></custom-footer>
|
| 90 |
+
|
| 91 |
+
<script src="components/navbar.js"></script>
|
| 92 |
+
<script src="components/footer.js"></script>
|
| 93 |
+
<script src="script.js"></script>
|
| 94 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 95 |
+
</body>
|
| 96 |
</html>
|
script.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Smooth scrolling for anchor links
|
| 2 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 3 |
+
anchor.addEventListener('click', function (e) {
|
| 4 |
+
e.preventDefault();
|
| 5 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 6 |
+
behavior: 'smooth'
|
| 7 |
+
});
|
| 8 |
+
});
|
| 9 |
+
});
|
| 10 |
+
|
| 11 |
+
// Intersection Observer for animations
|
| 12 |
+
const animateElements = document.querySelectorAll('.project-card, section');
|
| 13 |
+
|
| 14 |
+
const observer = new IntersectionObserver((entries) => {
|
| 15 |
+
entries.forEach(entry => {
|
| 16 |
+
if (entry.isIntersecting) {
|
| 17 |
+
entry.target.classList.add('animate-fade-in');
|
| 18 |
+
observer.unobserve(entry.target);
|
| 19 |
+
}
|
| 20 |
+
});
|
| 21 |
+
}, {
|
| 22 |
+
threshold: 0.1
|
| 23 |
+
});
|
| 24 |
+
|
| 25 |
+
animateElements.forEach(element => {
|
| 26 |
+
observer.observe(element);
|
| 27 |
+
});
|
| 28 |
+
|
| 29 |
+
// Form handling
|
| 30 |
+
const form = document.querySelector('form');
|
| 31 |
+
if (form) {
|
| 32 |
+
form.addEventListener('submit', (e) => {
|
| 33 |
+
e.preventDefault();
|
| 34 |
+
const formData = new FormData(form);
|
| 35 |
+
// Here you would normally send the data to a server
|
| 36 |
+
alert('Thank you for your message! I will get back to you soon.');
|
| 37 |
+
form.reset();
|
| 38 |
+
});
|
| 39 |
+
}
|
style.css
CHANGED
|
@@ -1,28 +1,64 @@
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Base Styles */
|
| 2 |
body {
|
| 3 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 4 |
+
line-height: 1.6;
|
| 5 |
+
color: #374151;
|
| 6 |
}
|
| 7 |
|
| 8 |
+
/* Typography */
|
| 9 |
+
h1, h2, h3, h4 {
|
| 10 |
+
font-weight: 700;
|
| 11 |
+
line-height: 1.2;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* Navbar Styles */
|
| 15 |
+
custom-navbar {
|
| 16 |
+
position: fixed;
|
| 17 |
+
width: 100%;
|
| 18 |
+
z-index: 100;
|
| 19 |
+
background: rgba(255, 255, 255, 0.95);
|
| 20 |
+
backdrop-filter: blur(10px);
|
| 21 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
| 22 |
}
|
| 23 |
|
| 24 |
+
/* Hero Section */
|
| 25 |
+
.hero {
|
| 26 |
+
padding-top: 100px;
|
| 27 |
+
padding-bottom: 100px;
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
+
/* Project Cards */
|
| 31 |
+
.project-card {
|
| 32 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 33 |
}
|
| 34 |
+
|
| 35 |
+
.project-card:hover {
|
| 36 |
+
transform: translateY(-5px);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/* Form Inputs */
|
| 40 |
+
input, textarea {
|
| 41 |
+
transition: all 0.2s ease;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
input:focus, textarea:focus {
|
| 45 |
+
outline: none;
|
| 46 |
+
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* Animations */
|
| 50 |
+
@keyframes fadeIn {
|
| 51 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 52 |
+
to { opacity: 1; transform: translateY(0); }
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.animate-fade-in {
|
| 56 |
+
animation: fadeIn 0.6s ease forwards;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* Responsive Adjustments */
|
| 60 |
+
@media (max-width: 768px) {
|
| 61 |
+
.hero h1 {
|
| 62 |
+
font-size: 3rem;
|
| 63 |
+
}
|
| 64 |
+
}
|