Skip to content

Commit

Permalink
feat(layouts): fixing header on single pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Dec 16, 2024
1 parent 2c676c9 commit 0c3741b
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 84 deletions.
2 changes: 1 addition & 1 deletion themes/aurelia-theme/layouts/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 class="text-4xl md:text-5xl font-bold mb-4 bg-gradient-to-r from-aurelia to-
</section>

<!-- Blog Posts List -->
<section class="py-16 bg-white">
<section class="py-4 bg-white">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<!-- Featured Post -->
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "blog") 7 }}
Expand Down
2 changes: 1 addition & 1 deletion themes/aurelia-theme/layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-aurelia to-
</section>

<!-- Article Content -->
<article class="py-16 bg-white">
<article class="py-4 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col lg:flex-row gap-12">
<!-- Main Content -->
Expand Down
33 changes: 16 additions & 17 deletions themes/aurelia-theme/layouts/contact/single.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{{ define "main" }}
<!-- Contact Header -->
<section class="relative pt-safe pb-8 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden">
<div class="absolute top-1/4 -right-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-3xl"></div>
<div class="absolute -bottom-1/4 -left-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-3xl"></div>
</div>

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-xl text-gray-600 mb-8">{{ . }}</p>
{{ end }}
</div>
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="absolute top-0 -right-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-2xl"></div>
<div class="absolute bottom-0 -left-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-2xl"></div>
</div>
<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl md:text-4xl font-bold mb-3 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-base md:text-lg text-gray-600">{{ . }}</p>
{{ end }}
</div>
</section>

<!-- Contact Content -->
<section class="py-16 bg-white">
<section class="py-4 bg-white">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<!-- Content Area -->
<div class="prose prose-lg max-w-none mb-12
Expand Down
35 changes: 17 additions & 18 deletions themes/aurelia-theme/layouts/examples/single.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{{ define "main" }}
<!-- Examples Header -->
<section class="relative py-24 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden">
<div class="absolute top-1/4 -right-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-3xl"></div>
<div class="absolute -bottom-1/4 -left-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-3xl"></div>
</div>

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
<div class="prose prose-lg max-w-none text-gray-600">
{{ .Content }}
<section class="relative pt-safe pb-8 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="absolute top-0 -right-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-2xl"></div>
<div class="absolute bottom-0 -left-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-2xl"></div>
</div>
</div>
</section>

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl md:text-4xl font-bold mb-3 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-base md:text-lg text-gray-600">{{ . }}</p>
{{ end }}
</div>
</section>

<!-- Repository Link -->
<section class="py-8 bg-white">
<section class="py-4 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="p-6 rounded-2xl bg-gradient-to-r from-aurelia/5 to-aurelia-light/5 border border-aurelia/10">
<div class="flex items-center justify-between gap-6">
Expand Down
34 changes: 17 additions & 17 deletions themes/aurelia-theme/layouts/faq/single.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{{ define "main" }}
<section class="relative pt-safe pb-8 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden">
<div class="absolute top-1/4 -right-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-3xl"></div>
<div class="absolute -bottom-1/4 -left-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-3xl"></div>
</div>

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-xl text-gray-600 mb-8">{{ . }}</p>
{{ end }}
</div>
</section>
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="absolute top-0 -right-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-2xl"></div>
<div class="absolute bottom-0 -left-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-2xl"></div>
</div>
<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl md:text-4xl font-bold mb-3 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-base md:text-lg text-gray-600">{{ . }}</p>
{{ end }}
</div>
</section>

<section class="py-16 bg-white relative">
<section class="py-4 bg-white relative">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:grid lg:grid-cols-8 lg:gap-8">
<!-- Main Content -->
Expand Down
15 changes: 7 additions & 8 deletions themes/aurelia-theme/layouts/learn/single.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{{ define "main" }}
<!-- Learn Header -->
<section class="relative pt-safe pb-8 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden">
<div class="absolute top-1/4 -right-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-3xl"></div>
<div class="absolute -bottom-1/4 -left-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-3xl"></div>
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="absolute top-0 -right-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-2xl"></div>
<div class="absolute bottom-0 -left-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-2xl"></div>
</div>

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl md:text-4xl font-bold mb-3 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-xl text-gray-600 mb-8">{{ . }}</p>
<p class="text-base md:text-lg text-gray-600">{{ . }}</p>
{{ end }}
</div>
</section>

<!-- Learn Content -->
<article class="py-16 bg-white">
<article class="py-4 bg-white">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="prose prose-lg max-w-none
prose-h1:text-4xl prose-h1:font-bold prose-h1:mb-8 prose-h1:text-gray-900
Expand Down
38 changes: 16 additions & 22 deletions themes/aurelia-theme/layouts/roadmap/single.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
{{ define "main" }}
<!-- Roadmap Header -->
<section class="relative py-24 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden">
<div
class="absolute top-1/4 -right-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-3xl">
<section class="relative pt-safe pb-8 bg-gradient-to-b from-white to-gray-50">
<!-- Decorative Background -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="absolute top-0 -right-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia/10 to-aurelia-light/10 rounded-full blur-2xl"></div>
<div class="absolute bottom-0 -left-1/4 w-[400px] h-[400px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-2xl"></div>
</div>
<div
class="absolute -bottom-1/4 -left-1/4 w-[500px] h-[500px] bg-gradient-to-r from-aurelia-light/5 to-purple-500/5 rounded-full blur-3xl">

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl md:text-4xl font-bold mb-3 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-base md:text-lg text-gray-600">{{ . }}</p>
{{ end }}
</div>
</div>

<!-- Header Content -->
<div class="relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1
class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-aurelia to-aurelia-light bg-clip-text text-transparent">
{{ .Title }}
</h1>
{{ with .Description }}
<p class="text-xl text-gray-600 mb-8">{{ . }}</p>
{{ end }}
</div>
</section>
</section>

<!-- Roadmap Content -->
<section class="py-16 bg-white">
<section class="py-4 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="roadmap-timeline relative">
<!-- Timeline Center Line -->
Expand Down

0 comments on commit 0c3741b

Please sign in to comment.