Initial commit
This commit is contained in:
113
layouts/_default/home.html
Executable file
113
layouts/_default/home.html
Executable file
@@ -0,0 +1,113 @@
|
||||
{{ define "main" }} {{/* Hero Section */}}
|
||||
<section
|
||||
class="min-h-[calc(100vh-4rem)] flex items-center justify-center relative overflow-hidden"
|
||||
>
|
||||
{{/* Animated background pattern */}}
|
||||
<div class="absolute inset-0 opacity-10">
|
||||
<div
|
||||
class="absolute inset-0 bg-gradient-to-b from-transparent via-surface-1/50 to-surface-0"
|
||||
></div>
|
||||
</div>
|
||||
|
||||
<div class="relative z-10 text-center px-6">
|
||||
<h1 class="text-5xl md:text-7xl font-medium tracking-tighter mb-4">
|
||||
VALKNAR'S
|
||||
</h1>
|
||||
<p class="text-text-secondary text-lg md:text-xl tracking-wide">
|
||||
Pivoine.Art
|
||||
</p>
|
||||
|
||||
{{/* Scroll indicator */}}
|
||||
<button
|
||||
onclick="document.getElementById('latest-tracks').scrollIntoView({ behavior: 'smooth' })"
|
||||
class="mt-16 animate-bounce cursor-pointer hover:text-text-primary transition-colors"
|
||||
aria-label="Scroll to content"
|
||||
>
|
||||
<svg
|
||||
class="w-6 h-6 mx-auto text-text-muted"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M19 14l-7 7m0 0l-7-7m7 7V3"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{/* Latest Tracks */}}
|
||||
<section id="latest-tracks" class="py-24">
|
||||
<div class="container-wide">
|
||||
<header class="mb-12">
|
||||
<h2 class="text-2xl font-medium tracking-tight">Latest Tracks</h2>
|
||||
<p class="text-text-secondary mt-2">Recent audio</p>
|
||||
</header>
|
||||
|
||||
{{- $tracks := where .Site.RegularPages "Section" "tracks" -}} {{- if
|
||||
$tracks }}
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{{- range first 3 $tracks }} {{ partial "track-card.html" . }} {{- end }}
|
||||
</div>
|
||||
|
||||
<div class="mt-12 text-center">
|
||||
<a
|
||||
href="/tracks/"
|
||||
class="group inline-flex items-center gap-2 px-6 py-3 border border-border hover:border-accent hover:bg-accent hover:text-surface-0 transition-all duration-300"
|
||||
>
|
||||
View all tracks
|
||||
<svg
|
||||
class="w-4 h-4 group-hover:translate-x-1 transition-transform duration-300"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M17 8l4 4m0 0l-4 4m4-4H3"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
{{- else }}
|
||||
<p class="text-text-muted">No tracks yet. Check back soon.</p>
|
||||
{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{/* About Preview */}}
|
||||
<section class="py-24">
|
||||
<div class="container-narrow text-center">
|
||||
<h2 class="text-2xl font-medium tracking-tight mb-6">About</h2>
|
||||
<p class="text-text-secondary text-lg leading-relaxed mb-8">
|
||||
Technology and sound, creating massive beats to push the boundaries of
|
||||
audio perception.
|
||||
</p>
|
||||
<a
|
||||
href="/about/"
|
||||
class="group inline-flex items-center gap-2 text-text-primary relative after:absolute after:bottom-0 after:left-0 after:h-px after:w-0 after:bg-accent hover:after:w-full after:transition-all after:duration-300"
|
||||
>
|
||||
Read more
|
||||
<svg
|
||||
class="w-4 h-4 group-hover:translate-x-1 transition-transform duration-300"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M17 8l4 4m0 0l-4 4m4-4H3"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user