Skip to content

Commit e16a369

Browse files
committed
Add links to Join the Conversation, etc.
Tweak NewsSummary.astro and CodeSummary.astro formatting.
1 parent 9cc69a9 commit e16a369

File tree

4 files changed

+41
-10
lines changed

4 files changed

+41
-10
lines changed

src/components/Button.astro

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,28 @@ const {
1010
class: className,
1111
newTab = false
1212
} = Astro.props;
13-
1413
---
1514

1615
<a href={href}
1716
role="button"
1817
class:list={[
19-
"font-condensed font-semibold uppercase border-2 text-primary text-sm px-2 pt-1 pb-1.5 rounded-md hover:bg-primary hover:text-white hover:border-primary hover:no-underline",
18+
"font-condensed",
19+
"font-semibold",
20+
"uppercase",
21+
"border-2",
22+
"text-primary",
23+
"text-sm",
24+
"px-2",
25+
"pt-1",
26+
"pb-1.5",
27+
"rounded-md",
28+
"hover:bg-primary",
29+
"hover:text-white",
30+
"hover:border-primary",
31+
"hover:no-underline",
32+
"transition",
33+
"duration-300",
34+
"ease-out",
2035
className
2136
]}
2237
target={newTab ? "_blank" : undefined}

src/components/CodeSummary.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const id = "in-the-code";
1111
<section id={id} class="mb-8">
1212
<BigText size="md" showOrnament={false}>
1313
<Fragment slot="title">
14-
<b>In the Code</b>
14+
In the <b>Code</b>
1515
</Fragment>
1616
</BigText>
1717
<div class="mt-5" />

src/components/NewsSummary.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const recentPosts = posts.slice(0, 3);
1111
<section class="mb-8">
1212
<BigText size="md" anchor="right" showOrnament={false}>
1313
<Fragment slot="title">
14-
<b>In the News</b>
14+
In the <b>News</b>
1515
</Fragment>
1616
</BigText>
1717
<div class="mt-5 grid grid-cols-1 md:grid-cols-3 gap-1u">

src/pages/index.astro

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ import NewsSummary from "@/components/NewsSummary.astro";
55
import BigText from "@/components/BigText.astro";
66
import Button from "@/components/Button.astro";
77
import { newsletterURL, pitchProjectURL, slackURL } from "@/utils/urls";
8+
9+
const ButtonClass = `
10+
transition
11+
duration-300
12+
ease-in-out
13+
underline-offset-[.2rem]
14+
underline
15+
decoration-primary/0
16+
hover:decoration-primary/80
17+
`;
818
---
919

1020
<BaseLayout title="Home" header="">
@@ -39,8 +49,10 @@ import { newsletterURL, pitchProjectURL, slackURL } from "@/utils/urls";
3949

4050
<BigText size="md" showOrnament={false}>
4151
<Fragment slot="title">
42-
<b>Join the</b><br>
43-
Conversation
52+
<a href={slackURL} role="button" class={ButtonClass}>
53+
<b>Join</b> the
54+
<br>Conversation
55+
</a>
4456
</Fragment>
4557

4658
<Fragment slot="body">
@@ -53,8 +65,10 @@ import { newsletterURL, pitchProjectURL, slackURL } from "@/utils/urls";
5365

5466
<BigText size="md" anchor="right" showOrnament={false}>
5567
<Fragment slot="title">
56-
<b>Propose a</b><br>
57-
Project
68+
<a href={pitchProjectURL} role="button" class={ButtonClass}>
69+
<b>Propose</b> a<br>
70+
Project
71+
</a>
5872
</Fragment>
5973

6074
<Fragment slot="body">
@@ -67,8 +81,10 @@ import { newsletterURL, pitchProjectURL, slackURL } from "@/utils/urls";
6781

6882
<BigText size="md">
6983
<Fragment slot="title">
70-
<b>Stay</b><br>
71-
Informed
84+
<a href={newsletterURL} role="button" class={ButtonClass}>
85+
<b>Stay</b><br>
86+
Informed
87+
</a>
7288
</Fragment>
7389

7490
<Fragment slot="body">

0 commit comments

Comments
 (0)