Skip to content

Commit a04c82f

Browse files
committed
Add buttons to getting started section of homepage
Center the steps on Getting Started. Reduce width of About page. Add Button component. Tweak image sizing in projects. Tweak styling of GitHub events cards. Use routed.svg for the Routed project.
1 parent 16c2152 commit a04c82f

File tree

16 files changed

+1708
-795
lines changed

16 files changed

+1708
-795
lines changed

package-lock.json

Lines changed: 1618 additions & 772 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/projects/routed.png

-2.87 KB
Binary file not shown.

src/assets/projects/routed.svg

Lines changed: 25 additions & 0 deletions
Loading

src/components/Button.astro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
interface Props {
3+
href: string;
4+
class?: string;
5+
newTab?: boolean;
6+
}
7+
8+
const {
9+
href,
10+
class: className,
11+
newTab = false
12+
} = Astro.props;
13+
14+
---
15+
16+
<a href={href}
17+
role="button"
18+
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",
20+
className
21+
]}
22+
target={newTab ? "_blank" : undefined}
23+
>
24+
<slot />
25+
</a>

src/components/DefaultThumbnail.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ interface Props {
66
width?: number | string;
77
height?: number | string;
88
style?: string;
9+
class?: string;
910
}
1011
11-
const { size, width, height, style } = Astro.props;
12+
const { size, width, height, style, class: className } = Astro.props;
1213
1314
// below, set the viewBox to add 10% padding around the icon
1415
---
@@ -19,6 +20,7 @@ const { size, width, height, style } = Astro.props;
1920
width={width}
2021
height={height}
2122
style={style}
23+
class={className}
2224
/>
2325

2426
<style>

src/components/GetStartedStep.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import BigHeading from "./BigHeading.astro";
2626
font-semibold
2727
font-condensed
2828
leading-[.8]
29-
w-6col;
29+
w-2col;
3030
text-box-trim: trim-both;
3131
text-box-edge: cap alphabetic;
3232
font-variant-numeric: tabular-nums;

src/components/NewsSummary.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
import NewsSummaryItem from "./NewsSummaryItem.astro"; // Import from the same directory
32
import { getBlogPosts } from "@/content";
3+
import NewsSummaryItem from "./NewsSummaryItem.astro";
44
import BigText from "./BigText.astro";
55
import TagOrnament from "./TagOrnament.astro";
66
@@ -14,7 +14,7 @@ const recentPosts = posts.slice(0, 3);
1414
<b>In the News</b>
1515
</Fragment>
1616
</BigText>
17-
<div class="mt-5 grid grid-cols-1 md:grid-cols-3 gap-10">
17+
<div class="mt-5 grid grid-cols-1 md:grid-cols-3 gap-1u">
1818
{recentPosts.map((post) => <NewsSummaryItem post={post} />)}
1919
</div>
2020
<div class="flex justify-center mt-16">

src/components/ProjectSummaryItem.astro

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { Image } from "astro:assets";
3-
import type { CollectionEntry } from "astro:content";
43
import { Icon } from "astro-icon/components";
54
import OptionalAnchor from "@/components/OptionalAnchor.astro";
65
import DefaultThumbnail from "@/components/DefaultThumbnail.astro";
@@ -10,11 +9,7 @@ const cleanWebsite = (url: string) => url
109
.replace(/^https?:\/\//, "")
1110
.replace(/\/$/, "");
1211
13-
interface Props {
14-
project: CollectionEntry<"projects">;
15-
}
16-
17-
const ThumbnailWidth = 165;
12+
const ThumbnailWidth = 200;
1813
const Thumbnail2X = 2 * ThumbnailWidth;
1914
const IconClass = `
2015
inline-block
@@ -56,7 +51,7 @@ const localImageMetadata = thumbnail && !isExternal
5651
5752
---
5853

59-
<li class="flex flex-row items-start gap-1u mb-2u">
54+
<li class="flex flex-row items-start gap-1u mb-3u last:mb-0">
6055
<OptionalAnchor href={url}>
6156
{thumbnail && isExternal ? (
6257
<img class={ThumbnailClass} src={thumbnail} alt={name} width={ThumbnailWidth} />
@@ -66,10 +61,10 @@ const localImageMetadata = thumbnail && !isExternal
6661
src={localImageMetadata}
6762
alt={name}
6863
widths={[ThumbnailWidth, Thumbnail2X]}
69-
sizes={`(max-width: 768px) ${ThumbnailWidth}px, ${ThumbnailWidth}px`}
64+
sizes={`(max-width: 768px) ${ThumbnailWidth}px, ${Thumbnail2X}px`}
7065
/>
7166
) : (
72-
<DefaultThumbnail size={ThumbnailWidth} />
67+
<DefaultThumbnail size={ThumbnailWidth} class="w-4col" />
7368
)}
7469
</OptionalAnchor>
7570

src/content/projects/routed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
status: active
33
name: Routed
4-
thumbnail: routed.png
4+
thumbnail: routed.svg
55
description: |-
66
Everyday, paramedics make life and death decisions when choosing where to take patients. And they have to rely on their own experience to make the right choices.
77

src/pages/about/index.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const minutes = await getMinutes();
1212
<BaseLayout title="About"
1313
header="About SF Civic Tech"
1414
meta={meta}
15+
mainClass="max-w-8col mx-auto"
1516
>
1617
<p>
1718
SF Civic Tech is a group of people, first and foremost. We also call ourselves
@@ -41,12 +42,12 @@ const minutes = await getMinutes();
4142
<a href="https://www.civictechnologists.org/">Alliance of Civic Technologists</a>.
4243
</p>
4344

44-
<h2 class="text-2xl font-bold mt-8 mb-4" id="core-team">Meet the Board</h2>
45+
<h2 class="text-2xl font-bold mt-2u mb-1u" id="core-team">Meet the Board</h2>
4546

4647
<TeamList />
4748

4849
{minutes.length > 0 &&
49-
<h3 class="text-xl font-semibold mt-6 mb-3" id="minutes">Minutes of Quarterly Board Meetings</h3>
50+
<h3 class="text-xl font-semibold mt-2u mb-4" id="minutes">Minutes of Quarterly Board Meetings</h3>
5051

5152
<ul class="list-disc pl-5 space-y-1 mb-6">
5253
{minutes.map(({ data: { url, year, quarter, isDraft }}) => (
@@ -59,7 +60,7 @@ const minutes = await getMinutes();
5960
</ul>
6061
}
6162

62-
<h2 class="text-2xl font-bold mt-8 mb-4" id="code-of-conduct">Code of Conduct</h2>
63+
<h2 class="text-2xl font-bold mt-2u mb-4" id="code-of-conduct">Code of Conduct</h2>
6364

6465
<p>SF Civic Tech is a space for everyone. What does that mean?</p>
6566

0 commit comments

Comments
 (0)