Spaces:
Running
Running
https://nouvii.com/ make the website like this
Browse files- components/contact-button.js +28 -0
- components/footer.js +3 -3
- components/navbar.js +9 -15
- index.html +21 -18
- style.css +11 -7
components/contact-button.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class ContactButton extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.contact-button {
|
| 7 |
+
display: inline-block;
|
| 8 |
+
padding: 12px 24px;
|
| 9 |
+
background-color: #000;
|
| 10 |
+
color: white;
|
| 11 |
+
border-radius: 50px;
|
| 12 |
+
font-weight: 500;
|
| 13 |
+
transition: all 0.3s ease;
|
| 14 |
+
text-decoration: none;
|
| 15 |
+
}
|
| 16 |
+
.contact-button:hover {
|
| 17 |
+
background-color: #333;
|
| 18 |
+
transform: translateY(-2px);
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<a href="/contact" class="contact-button">
|
| 22 |
+
Get in touch
|
| 23 |
+
</a>
|
| 24 |
+
`;
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
customElements.define('contact-button', ContactButton);
|
components/footer.js
CHANGED
|
@@ -8,7 +8,7 @@ class CustomFooter extends HTMLElement {
|
|
| 8 |
position: relative;
|
| 9 |
}
|
| 10 |
.footer-link:hover {
|
| 11 |
-
color:
|
| 12 |
}
|
| 13 |
.footer-link::after {
|
| 14 |
content: '';
|
|
@@ -17,14 +17,14 @@ class CustomFooter extends HTMLElement {
|
|
| 17 |
left: 0;
|
| 18 |
width: 0;
|
| 19 |
height: 1px;
|
| 20 |
-
background:
|
| 21 |
transition: width 0.3s ease;
|
| 22 |
}
|
| 23 |
.footer-link:hover::after {
|
| 24 |
width: 100%;
|
| 25 |
}
|
| 26 |
</style>
|
| 27 |
-
<footer class="bg-
|
| 28 |
<div class="max-w-7xl mx-auto">
|
| 29 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12">
|
| 30 |
<div>
|
|
|
|
| 8 |
position: relative;
|
| 9 |
}
|
| 10 |
.footer-link:hover {
|
| 11 |
+
color: #000;
|
| 12 |
}
|
| 13 |
.footer-link::after {
|
| 14 |
content: '';
|
|
|
|
| 17 |
left: 0;
|
| 18 |
width: 0;
|
| 19 |
height: 1px;
|
| 20 |
+
background: #000;
|
| 21 |
transition: width 0.3s ease;
|
| 22 |
}
|
| 23 |
.footer-link:hover::after {
|
| 24 |
width: 100%;
|
| 25 |
}
|
| 26 |
</style>
|
| 27 |
+
<footer class="bg-white text-gray-900 py-16 px-4 md:px-8 lg:px-16 border-t border-gray-100">
|
| 28 |
<div class="max-w-7xl mx-auto">
|
| 29 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12">
|
| 30 |
<div>
|
components/navbar.js
CHANGED
|
@@ -5,16 +5,12 @@ class CustomNavbar extends HTMLElement {
|
|
| 5 |
<style>
|
| 6 |
.navbar {
|
| 7 |
transition: all 0.3s ease;
|
| 8 |
-
mix-blend-mode: difference;
|
| 9 |
-
color: white;
|
| 10 |
-
}
|
| 11 |
-
.navbar.scrolled {
|
| 12 |
background-color: white;
|
| 13 |
-
mix-blend-mode: normal;
|
| 14 |
color: black;
|
|
|
|
| 15 |
}
|
| 16 |
-
.navbar
|
| 17 |
-
color:
|
| 18 |
}
|
| 19 |
.mobile-menu {
|
| 20 |
max-height: 0;
|
|
@@ -32,14 +28,12 @@ class CustomNavbar extends HTMLElement {
|
|
| 32 |
</style>
|
| 33 |
<nav class="navbar fixed w-full z-50 px-6 py-4">
|
| 34 |
<div class="max-w-7xl mx-auto flex justify-between items-center">
|
| 35 |
-
<a href="/" class="text-2xl font-bold tracking-tight">
|
| 36 |
-
<div class="hidden lg:flex space-x-
|
| 37 |
-
<a href="#" class="text-
|
| 38 |
-
<a href="#" class="text-
|
| 39 |
-
<a href="#" class="text-
|
| 40 |
-
<a href="#" class="text-
|
| 41 |
-
<a href="#" class="text-lg hover:underline">Insights</a>
|
| 42 |
-
<a href="#" class="text-lg hover:underline">Contact</a>
|
| 43 |
</div>
|
| 44 |
<button class="lg:hidden focus:outline-none" id="mobile-menu-button">
|
| 45 |
<i data-feather="menu"></i>
|
|
|
|
| 5 |
<style>
|
| 6 |
.navbar {
|
| 7 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
background-color: white;
|
|
|
|
| 9 |
color: black;
|
| 10 |
+
border-bottom: 1px solid rgba(0,0,0,0.05);
|
| 11 |
}
|
| 12 |
+
.navbar a {
|
| 13 |
+
color: inherit;
|
| 14 |
}
|
| 15 |
.mobile-menu {
|
| 16 |
max-height: 0;
|
|
|
|
| 28 |
</style>
|
| 29 |
<nav class="navbar fixed w-full z-50 px-6 py-4">
|
| 30 |
<div class="max-w-7xl mx-auto flex justify-between items-center">
|
| 31 |
+
<a href="/" class="text-2xl font-bold tracking-tight">NOUVII</a>
|
| 32 |
+
<div class="hidden lg:flex space-x-8">
|
| 33 |
+
<a href="#" class="text-base hover:text-gray-600">Work</a>
|
| 34 |
+
<a href="#" class="text-base hover:text-gray-600">Services</a>
|
| 35 |
+
<a href="#" class="text-base hover:text-gray-600">About</a>
|
| 36 |
+
<a href="#" class="text-base hover:text-gray-600">Contact</a>
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
<button class="lg:hidden focus:outline-none" id="mobile-menu-button">
|
| 39 |
<i data-feather="menu"></i>
|
index.html
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<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>
|
|
@@ -11,30 +12,32 @@
|
|
| 11 |
<script src="components/navbar.js"></script>
|
| 12 |
<script src="components/footer.js"></script>
|
| 13 |
</head>
|
| 14 |
-
<body class="bg-
|
| 15 |
-
|
| 16 |
<main class="overflow-hidden">
|
| 17 |
<!-- Hero Section -->
|
| 18 |
-
<section class="relative h-screen flex items-center justify-center bg-
|
| 19 |
-
<div class="absolute inset-0 overflow-hidden">
|
| 20 |
-
<video autoplay loop muted playsinline class="w-full h-full object-cover opacity-70">
|
| 21 |
-
<source src="https://assets.hugeinc.com/video/home/hero/HERO_01.mp4" type="video/mp4">
|
| 22 |
-
</video>
|
| 23 |
-
</div>
|
| 24 |
<div class="relative z-10 text-center px-4 w-full max-w-7xl mx-auto">
|
| 25 |
-
<div class="text-
|
| 26 |
-
<h1 class="text-
|
| 27 |
-
<p class="text-
|
| 28 |
</div>
|
| 29 |
</div>
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
</div>
|
| 35 |
</div>
|
| 36 |
</section>
|
| 37 |
-
|
| 38 |
<section class="py-32 px-4 md:px-8 lg:px-16 bg-white">
|
| 39 |
<div class="max-w-7xl mx-auto">
|
| 40 |
<div class="flex justify-between items-end mb-16">
|
|
@@ -109,7 +112,7 @@
|
|
| 109 |
<script>
|
| 110 |
feather.replace();
|
| 111 |
</script>
|
|
|
|
| 112 |
<script src="script.js"></script>
|
| 113 |
-
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 114 |
</body>
|
| 115 |
</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>Nouvii Clone</title>
|
| 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>
|
|
|
|
| 12 |
<script src="components/navbar.js"></script>
|
| 13 |
<script src="components/footer.js"></script>
|
| 14 |
</head>
|
| 15 |
+
<body class="bg-gray-50 text-gray-900 font-sans antialiased">
|
| 16 |
+
<custom-navbar></custom-navbar>
|
| 17 |
<main class="overflow-hidden">
|
| 18 |
<!-- Hero Section -->
|
| 19 |
+
<section class="relative h-screen flex items-center justify-center bg-white">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
<div class="relative z-10 text-center px-4 w-full max-w-7xl mx-auto">
|
| 21 |
+
<div class="text-center">
|
| 22 |
+
<h1 class="text-5xl md:text-7xl lg:text-8xl font-bold text-gray-900 mb-6 leading-tight">Digital Product Studio</h1>
|
| 23 |
+
<p class="text-xl md:text-2xl text-gray-600 max-w-2xl mx-auto">We design and build digital products that people love to use.</p>
|
| 24 |
</div>
|
| 25 |
</div>
|
| 26 |
+
</section>
|
| 27 |
+
|
| 28 |
+
<!-- Clients Section -->
|
| 29 |
+
<section class="py-16 px-4 md:px-8 lg:px-16 bg-white">
|
| 30 |
+
<div class="max-w-7xl mx-auto">
|
| 31 |
+
<h2 class="text-sm uppercase tracking-wider text-gray-500 mb-8 text-center">Trusted by</h2>
|
| 32 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-8 items-center">
|
| 33 |
+
<img src="http://static.photos/minimal/320x120/1" alt="Client 1" class="w-full h-auto opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all">
|
| 34 |
+
<img src="http://static.photos/minimal/320x120/2" alt="Client 2" class="w-full h-auto opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all">
|
| 35 |
+
<img src="http://static.photos/minimal/320x120/3" alt="Client 3" class="w-full h-auto opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all">
|
| 36 |
+
<img src="http://static.photos/minimal/320x120/4" alt="Client 4" class="w-full h-auto opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all">
|
| 37 |
</div>
|
| 38 |
</div>
|
| 39 |
</section>
|
| 40 |
+
<!-- Work Section -->
|
| 41 |
<section class="py-32 px-4 md:px-8 lg:px-16 bg-white">
|
| 42 |
<div class="max-w-7xl mx-auto">
|
| 43 |
<div class="flex justify-between items-end mb-16">
|
|
|
|
| 112 |
<script>
|
| 113 |
feather.replace();
|
| 114 |
</script>
|
| 115 |
+
<script src="components/contact-button.js"></script>
|
| 116 |
<script src="script.js"></script>
|
|
|
|
| 117 |
</body>
|
| 118 |
</html>
|
style.css
CHANGED
|
@@ -53,24 +53,28 @@ body {
|
|
| 53 |
.hero-text {
|
| 54 |
animation: fadeInUp 1s ease-out forwards;
|
| 55 |
}
|
| 56 |
-
|
| 57 |
-
/* Huge-style typography */
|
| 58 |
h1, h2, h3 {
|
| 59 |
font-weight: 700;
|
| 60 |
-
letter-spacing: -0.
|
| 61 |
-
line-height:
|
| 62 |
}
|
| 63 |
|
| 64 |
h1 {
|
| 65 |
-
font-size: clamp(
|
| 66 |
}
|
| 67 |
|
| 68 |
h2 {
|
| 69 |
-
font-size: clamp(
|
| 70 |
}
|
| 71 |
|
| 72 |
h3 {
|
| 73 |
-
font-size: clamp(1.5rem,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
| 75 |
/* Hover effect for project cards */
|
| 76 |
.project-card {
|
|
|
|
| 53 |
.hero-text {
|
| 54 |
animation: fadeInUp 1s ease-out forwards;
|
| 55 |
}
|
| 56 |
+
/* Nouvii-style typography */
|
|
|
|
| 57 |
h1, h2, h3 {
|
| 58 |
font-weight: 700;
|
| 59 |
+
letter-spacing: -0.02em;
|
| 60 |
+
line-height: 1.1;
|
| 61 |
}
|
| 62 |
|
| 63 |
h1 {
|
| 64 |
+
font-size: clamp(2.5rem, 8vw, 6rem);
|
| 65 |
}
|
| 66 |
|
| 67 |
h2 {
|
| 68 |
+
font-size: clamp(2rem, 6vw, 4rem);
|
| 69 |
}
|
| 70 |
|
| 71 |
h3 {
|
| 72 |
+
font-size: clamp(1.5rem, 4vw, 2.5rem);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Minimalist transitions */
|
| 76 |
+
.transition-all {
|
| 77 |
+
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
| 78 |
}
|
| 79 |
/* Hover effect for project cards */
|
| 80 |
.project-card {
|