🤖 homepage styles n' links

This commit is contained in:
mi
2025-11-18 14:25:48 +10:00
parent 2cf7aa2575
commit b69ee86b66
2 changed files with 126 additions and 17 deletions

View File

@@ -6,13 +6,39 @@
<title>Puercito Fiction</title> <title>Puercito Fiction</title>
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Inter:wght@300;400&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Special+Elite&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
</head> </head>
<body> <body>
<div class="container">
<header>
<h1>hola</h1>
</header>
<nav>
<a href="#about">about</a>
<a href="#projects">projects</a>
<a href="#contact">contact</a>
</nav>
<main> <main>
<h1>Hola</h1> <p class="byline">stories from the little town</p>
<p>Stay tuned for what's coming.</p>
</main> </main>
<footer>
<div class="social-links">
<a href="https://instagram.com/puercito" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
</svg>
</a>
<a href="mailto:hello@puercito.net" aria-label="Email">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</svg>
</a>
</div>
</footer>
</div>
</body> </body>
</html> </html>

View File

@@ -5,29 +5,112 @@
} }
body { body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-family: 'Special Elite', monospace;
line-height: 1.6; line-height: 1.6;
color: #333; color: #191919;
background: #fef6e4; background: #ffffff;
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 1rem;
}
.container {
max-width: 20rem;
width: 100%;
display: flex;
flex-direction: column;
gap: 0;
}
header {
text-align: center;
margin-bottom: 1rem;
}
h1 {
font-family: 'Permanent Marker', cursive;
font-size: 2.5rem;
font-weight: 400;
margin-bottom: 0.5rem;
color: #191919;
letter-spacing: 0.02em;
}
.byline {
font-family: 'Special Elite', monospace;
font-size: 0.875rem;
color: #666666;
font-weight: 400;
}
nav {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
nav a {
font-family: 'Special Elite', monospace;
font-size: 1rem;
color: #292929;
text-decoration: none;
position: relative;
padding: 0.25rem 0;
transition: color 0.3s ease;
}
nav a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 1px;
background-color: #E6507D;
transition: width 0.3s ease;
}
nav a:hover {
color: #E6507D;
}
nav a:hover::after {
width: 100%;
} }
main { main {
text-align: center; text-align: center;
} }
h1 { footer {
font-family: 'Permanent Marker', cursive; margin-top: auto;
font-size: 3rem;
font-weight: 400;
margin-bottom: 1rem;
} }
p { .social-links {
font-size: 1rem; display: flex;
color: #666; justify-content: center;
font-weight: 300; gap: 1.5rem;
}
.social-links a {
color: #333333;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
border-radius: 50%;
}
.social-links a:hover {
color: #E6507D;
transform: translateY(-2px);
}
.social-links svg {
width: 20px;
height: 20px;
} }