Skip to content

Commit 9569b27

Browse files
authored
New Sections component and Layouts clean up. (#1183)
Improvements related to issue #1139 which makes switch to wide layout simple.
1 parent 9fa2490 commit 9569b27

40 files changed

+292
-2242
lines changed

src/components/Footer.astro

+5-10
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ const buildTimestamp = __TIMESTAMP__;
88
const gitVersion = __GIT_VERSION__;
99
---
1010

11-
<div class="mt-auto">
12-
<Fullbleed className="bg-primary text-white">
13-
<footer
14-
class="max-w-4xl lg:max-w-6xl mx-auto py-16 lg:grid grid-cols-2 px-6 gap-60"
11+
<div
12+
class="text-white max-w-4xl lg:max-w-6xl mx-auto py-10 lg:grid grid-cols-2 px-6 gap-60"
1513
>
1614
<div>
1715
<nav class="mb-12">
@@ -34,7 +32,7 @@ const gitVersion = __GIT_VERSION__;
3432
</nav>
3533
</div>
3634

37-
<article
35+
<div
3836
class="flex flex-col lg:flex-row self-center gap-8 lg:gap-12 justify-end"
3937
>
4038
<div>
@@ -99,12 +97,9 @@ const gitVersion = __GIT_VERSION__;
9997
twitter.com/europython <span> ↗</span>
10098
</a>
10199
</p>
102-
103100
<p class="mb-4" style="color: rgba(255, 255, 255, 0.4)">
104-
version: {gitVersion} @ {buildTimestamp}
101+
version: {gitVersion} @ {buildTimestamp}
105102
</p>
106103
</div>
107-
</article>
104+
</div>
108105
</footer>
109-
</Fullbleed>
110-
</div>

src/components/Header.astro

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { promises as fs } from "fs";
33
import { NavItems } from "@components/nav-items";
44
import HeaderActions from "@components/header/header-actions.astro";
55
import HeaderLogo from "@components/header/header-logo.astro";
6+
import Search from "@components/Search.astro";
67
78
import links from "../data/links.json";
89
---
@@ -54,4 +55,5 @@ import links from "../data/links.json";
5455
/>
5556
</nav>
5657
</div>
58+
<Search />
5759
</header>

src/components/button-link/button-link.astro

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@ const resolvedIsExternal =
2222
---
2323

2424
<a
25-
class={`font-bold text-lg px-4 py-4 bg-button rounded-[10px] inline-block leading-4 hover:bg-button-hover not-prose
25+
class={`button-link font-bold text-lg px-4 py-4 bg-button rounded-[10px] inline-block leading-4 hover:bg-button-hover not-prose
2626
${secondary || disabled ? "bg-primary text-white hover:bg-primary-hover" : "text-text-inverted"}
2727
${secondary ? "text-text" : ""}
2828
${className || ""}
2929
${disabled ? "opacity-50 pointer-events-none" : ""}`}
3030
href={url}
3131
>
3232
<slot />
33-
34-
{
35-
resolvedIsExternal && (
36-
<span class="inline-block ml-1 font-system text-lg leading-4">↗</span>
37-
)
38-
}
3933
</a>

src/components/card/card.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { title, subtitle, url, image } = Astro.props;
1414
---
1515

1616
<div
17-
class="min-w-[250px] w-full md:w-[40%] lg:w-[30%] p-4 bg-[#D5D6E6] rounded-2xl text-center flex flex-col"
17+
class="prose-xl min-w-[250px] w-full md:w-[40%] lg:w-[30%] p-4 bg-[#D5D6E6] rounded-2xl text-center flex flex-col"
1818
>
1919
<a href={url} class="block">
2020
<div class="relative w-full">
@@ -29,7 +29,7 @@ const { title, subtitle, url, image } = Astro.props;
2929
</div>
3030
</a>
3131
<div class="flex items-center flex-col flex-grow mb-2">
32-
<a href={url} class="block hover:underline">
32+
<a href={url} class="button-link block hover:underline">
3333
<h3 >{title}</h3>
3434
</a>
3535
<slot />

src/components/hero/hero.astro

-14
This file was deleted.

0 commit comments

Comments
 (0)