BEtter, but still: the fonts are too simple and do not fit a website of a creative person. Please find more beautiful, more artistic, more creative fonts, also for the "normal" text sections. THe logo also needs way more love: let the S and O be cut of by the backslash a little bite!
Browse files- index.html +9 -4
- script.js +13 -4
- style.css +17 -5
index.html
CHANGED
|
@@ -44,10 +44,15 @@
|
|
| 44 |
<!-- Logo -->
|
| 45 |
<div class="absolute top-8 left-8 z-20 group">
|
| 46 |
<a href="#">
|
| 47 |
-
<div class="relative w-
|
| 48 |
-
<
|
| 49 |
-
<
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
</div>
|
| 52 |
</a>
|
| 53 |
</div>
|
|
|
|
| 44 |
<!-- Logo -->
|
| 45 |
<div class="absolute top-8 left-8 z-20 group">
|
| 46 |
<a href="#">
|
| 47 |
+
<div class="relative w-20 h-20 border border-zinc-300 rounded-full group-hover:border-zinc-100 transition-all duration-300">
|
| 48 |
+
<svg viewBox="0 0 64 64" class="w-full h-full">
|
| 49 |
+
<circle cx="32" cy="32" r="30" fill="none" stroke="currentColor" stroke-width="1.5" class="text-zinc-300 group-hover:text-zinc-100 transition-colors duration-300"/>
|
| 50 |
+
<text x="50%" y="50%" text-anchor="middle" dominant-baseline="middle" font-family="EB Garamond" font-size="28" font-weight="500" fill="currentColor" class="text-zinc-300 group-hover:text-zinc-100 transition-colors duration-300">
|
| 51 |
+
<tspan x="32" dy="0">S</tspan>
|
| 52 |
+
<tspan fill="none" stroke="currentColor" stroke-width="1.5">/</tspan>
|
| 53 |
+
<tspan x="32" dy="0" style="text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.3);">O</tspan>
|
| 54 |
+
</text>
|
| 55 |
+
</svg>
|
| 56 |
</div>
|
| 57 |
</a>
|
| 58 |
</div>
|
script.js
CHANGED
|
@@ -3,21 +3,30 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 3 |
// Animate the logo on hover
|
| 4 |
const logo = document.querySelector('.group');
|
| 5 |
logo.addEventListener('mouseenter', () => {
|
| 6 |
-
gsap.to(logo.querySelector('
|
| 7 |
rotation: 360,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
duration: 0.5,
|
| 9 |
ease: 'power2.out'
|
| 10 |
});
|
| 11 |
});
|
| 12 |
logo.addEventListener('mouseleave', () => {
|
| 13 |
-
gsap.to(logo.querySelector('
|
| 14 |
rotation: 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
duration: 0.5,
|
| 16 |
ease: 'power2.out'
|
| 17 |
});
|
| 18 |
});
|
| 19 |
-
|
| 20 |
-
// Smooth scrolling for anchor links
|
| 21 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 22 |
anchor.addEventListener('click', function (e) {
|
| 23 |
e.preventDefault();
|
|
|
|
| 3 |
// Animate the logo on hover
|
| 4 |
const logo = document.querySelector('.group');
|
| 5 |
logo.addEventListener('mouseenter', () => {
|
| 6 |
+
gsap.to(logo.querySelector('svg'), {
|
| 7 |
rotation: 360,
|
| 8 |
+
duration: 1.5,
|
| 9 |
+
ease: 'elastic.out(1, 0.5)'
|
| 10 |
+
});
|
| 11 |
+
gsap.to(logo.querySelector('circle'), {
|
| 12 |
+
strokeWidth: 2.5,
|
| 13 |
duration: 0.5,
|
| 14 |
ease: 'power2.out'
|
| 15 |
});
|
| 16 |
});
|
| 17 |
logo.addEventListener('mouseleave', () => {
|
| 18 |
+
gsap.to(logo.querySelector('svg'), {
|
| 19 |
rotation: 0,
|
| 20 |
+
duration: 1,
|
| 21 |
+
ease: 'back.out(1.7)'
|
| 22 |
+
});
|
| 23 |
+
gsap.to(logo.querySelector('circle'), {
|
| 24 |
+
strokeWidth: 1.5,
|
| 25 |
duration: 0.5,
|
| 26 |
ease: 'power2.out'
|
| 27 |
});
|
| 28 |
});
|
| 29 |
+
// Smooth scrolling for anchor links
|
|
|
|
| 30 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 31 |
anchor.addEventListener('click', function (e) {
|
| 32 |
e.preventDefault();
|
style.css
CHANGED
|
@@ -1,19 +1,31 @@
|
|
| 1 |
|
| 2 |
-
@import url('https://fonts.googleapis.com/css2?family=
|
| 3 |
|
| 4 |
body {
|
| 5 |
-
font-family: '
|
|
|
|
|
|
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
h1, h2, h3, h4, h5, h6 {
|
| 9 |
-
font-family: '
|
| 10 |
-
font-weight:
|
| 11 |
letter-spacing: -0.03em;
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
.hero-text h1 {
|
|
|
|
| 15 |
font-weight: 500;
|
| 16 |
-
letter-spacing:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
/* Custom scrollbar */
|
| 19 |
::-webkit-scrollbar {
|
|
|
|
| 1 |
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
| 3 |
|
| 4 |
body {
|
| 5 |
+
font-family: 'Montserrat', sans-serif;
|
| 6 |
+
font-weight: 300;
|
| 7 |
+
line-height: 1.6;
|
| 8 |
+
letter-spacing: 0.5px;
|
| 9 |
}
|
| 10 |
|
| 11 |
h1, h2, h3, h4, h5, h6 {
|
| 12 |
+
font-family: 'Cormorant Garamond', serif;
|
| 13 |
+
font-weight: 500;
|
| 14 |
letter-spacing: -0.03em;
|
| 15 |
+
line-height: 1.3;
|
| 16 |
}
|
| 17 |
|
| 18 |
.hero-text h1 {
|
| 19 |
+
font-family: 'EB Garamond', serif;
|
| 20 |
font-weight: 500;
|
| 21 |
+
letter-spacing: 0.05em;
|
| 22 |
+
text-transform: uppercase;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
p {
|
| 26 |
+
font-family: 'EB Garamond', serif;
|
| 27 |
+
font-size: 1.1rem;
|
| 28 |
+
line-height: 1.8;
|
| 29 |
}
|
| 30 |
/* Custom scrollbar */
|
| 31 |
::-webkit-scrollbar {
|