Skip to content

Commit 1159c99

Browse files
committed
Move beta changes into main
1 parent 63cd19c commit 1159c99

40 files changed

+287
-1729
lines changed

src/components/Card.astro

Lines changed: 14 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -10,78 +10,31 @@ interface Props {
1010
const { color, title, body, label, href } = Astro.props;
1111
---
1212

13-
<div class="card" style={`background: ${color}`}>
14-
<slot />
15-
<div class="body">
16-
<h3>{title}</h3>
17-
<p>
13+
<div class="flex flex-col items-center text-center p-8 rounded-lg" style={`background: ${color}`}>
14+
<div class="w-3/5 mb-4">
15+
<slot />
16+
</div>
17+
<div class="flex flex-col h-full gap-2">
18+
<h3 class="text-white font-[var(--font-barlow-condensed)] uppercase text-2xl font-bold min-h-[3rem]">{title}</h3>
19+
<p class="text-white text-sm h-full mb-4">
1820
{body}
1921
</p>
20-
<a href={href} target="_blank">
22+
<a href={href} target="_blank" class="text-white font-bold text-lg hover:underline decoration-white/90">
2123
{label}
2224
</a>
2325
</div>
2426
</div>
2527

2628
<style>
27-
.card {
28-
--pico-color: var(--pico-contrast-inverse);
29-
font-size: smaller;
30-
text-align: center;
31-
align-items: center;
32-
padding: var(--pico-block-spacing);
33-
display: flex;
34-
flex-direction: column;
35-
gap: calc(var(--pico-block-spacing) * .25);
36-
}
37-
38-
.card :global(img) {
39-
width: 60%;
40-
}
41-
42-
.body {
43-
height: 100%;
44-
display: flex;
45-
flex-direction: column;
46-
gap: calc(var(--pico-block-spacing) * .25);
47-
}
48-
49-
h3 {
50-
--pico-color: var(--pico-contrast-inverse);
51-
font-size: 1.25rem;
52-
text-transform: uppercase;
53-
min-height: calc(var(--pico-line-height) * 2 * 1em);
54-
}
55-
56-
p {
57-
height: 100%;
58-
}
59-
60-
a {
61-
--pico-color: var(--pico-contrast-inverse);
62-
--pico-underline: rgba(255, 255, 255, 0.35);
63-
font-weight: bold;
64-
font-size: larger;
65-
}
66-
67-
a:hover {
68-
--pico-color: var(--pico-contrast-inverse);
69-
--pico-underline: rgba(255, 255, 255, 0.9);
70-
}
71-
7229
@media only screen and (max-width: 768px) {
73-
.card {
74-
font-size: initial;
75-
flex-direction: row;
76-
justify-content: space-evenly;
30+
div {
31+
@apply flex-row justify-between;
7732
}
78-
79-
.card :global(img) {
80-
width: 30%;
33+
div > div:first-child {
34+
@apply w-1/3;
8135
}
82-
83-
.body {
84-
width: 60%;
36+
div > div:last-child {
37+
@apply w-3/5;
8538
}
8639
}
8740
</style>

src/components/CodeSummary.astro

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
---
22
import GitHubEvents from "@/react/GitHubEvents/GitHubEvents";
3-
import HomeSection from "@/components/HomeSection.astro";
3+
import BigText from "./BigText.astro";
44
55
// we'll pass the ID of the section to the GitHubEvents component so that it can
66
// hide the whole section in case there's an error, rather than leave a broken
77
// component on the page
88
const id = "in-the-code";
99
---
1010

11-
<HomeSection
12-
title="In the Code"
13-
id={id}
14-
>
11+
<section id={id} class="mb-8">
12+
<BigText size="md" showOrnament={false}>
13+
<Fragment slot="title">
14+
<b>In the Code</b>
15+
</Fragment>
16+
</BigText>
17+
<div class="mt-5" />
1518
<GitHubEvents
1619
org="sfbrigade"
1720
sectionID={id}
1821
client:only="react"
1922
/>
20-
</HomeSection>
23+
</section>

src/components/FooterNav.astro

Lines changed: 6 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ const columns = [
4545
] as const;
4646
---
4747

48-
<footer class="container">
48+
<footer class="mx-auto px-0 py-14 text-sm flex flex-row justify-between">
4949
{columns.map(([cat, links]) => (
50-
<nav aria-label="Footer">
51-
<h3>{cat}</h3>
52-
<ul>
50+
<nav aria-label="Footer" class="flex flex-col justify-start">
51+
<h3 class="text-primary text-lg font-condensed font-bold uppercase mb-2">{cat}</h3>
52+
<ul class="block list-none p-0 m-0">
5353
{links.map(([page, label, iconName]) => (
54-
<li>
54+
<li class="hover:text-primary pb-1 flex items-center gap-1">
5555
{iconName &&
56-
<Icon name={iconName} class="icon" />
56+
<Icon name={iconName} class="inline-block min-w-6 text-center align-baseline" />
5757
}
5858
<NavLink href={page}>
5959
{label}
@@ -64,57 +64,3 @@ const columns = [
6464
</nav>
6565
))}
6666
</footer>
67-
68-
<style>
69-
footer {
70-
font-size: smaller;
71-
display: flex;
72-
flex-direction: row;
73-
justify-content: space-between;
74-
}
75-
76-
nav {
77-
flex-direction: column;
78-
justify-content: start;
79-
}
80-
81-
h3 {
82-
font-size: 1.25em;
83-
margin-bottom: 0.5em;
84-
}
85-
86-
ul {
87-
display: block;
88-
}
89-
90-
ul:first-of-type, ul:last-of-type {
91-
margin-left: initial;
92-
margin-right: initial;
93-
}
94-
95-
li {
96-
padding: .15em 0;
97-
display: flex;
98-
align-items: center;
99-
gap: .25rem;
100-
}
101-
102-
/* Pico CSS adds a ::before with content: "" for li's, which adds space on the */
103-
/* left that we don't want */
104-
li::before {
105-
content: none;
106-
}
107-
108-
/* force the a's in the NavLink to have no extra spacing */
109-
li > :global(a) {
110-
margin: 0;
111-
padding: 0;
112-
}
113-
114-
.icon {
115-
display: inline-block;
116-
min-width: 1.5em;
117-
text-align: center;
118-
vertical-align: baseline;
119-
}
120-
</style>

src/components/HackNightHero.astro

Lines changed: 11 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4,77 +4,24 @@ import { meetupURL, zoomURL } from "@/utils/urls";
44
import hackNight from "@/assets/home/hack-night.png";
55
---
66

7-
<section>
8-
<div class="info">
9-
<h2>Virtual Civic Hack Night</h2>
10-
<p>
7+
<section class="flex flex-col md:flex-row justify-between items-stretch mt-12">
8+
<div class="bg-[var(--color-sf-navy)] text-center p-8 flex-[1.2] flex flex-col justify-center">
9+
<h2 class="text-[var(--color-sf-red)] font-[var(--font-barlow-condensed)] uppercase text-5xl font-bold mb-8">Virtual Civic Hack Night</h2>
10+
<p class="text-[var(--color-white)] mb-4">
1111
Not just for techies, success means having volunteers from all across our community!
1212
</p>
13-
<p>
14-
All of our meetings are currently remote. Everyone is welcome!
13+
<p class="text-[var(--color-white)] mb-4">
14+
Everyone is welcome!
1515
</p>
16-
<p>
17-
<a href={meetupURL}>Every Wednesday at 6:30pm&nbsp;Pacific</a>
16+
<p class="mb-4">
17+
<a href={meetupURL} class="text-[var(--color-white)] font-bold hover:underline decoration-[var(--color-white)]/90">Every Wednesday at 6:30pm&nbsp;Pacific</a>
1818
</p>
1919
<p>
2020
Join us on Zoom
21-
<a href={zoomURL}>https://c4sf.me/zoom</a>
21+
<a href={zoomURL} class="text-[var(--color-white)] font-bold hover:underline decoration-[var(--color-white)]/90">https://c4sf.me/zoom</a>
2222
</p>
2323
</div>
24-
<div class="image">
25-
<Image src={hackNight} alt="hack night" loading="eager" />
24+
<div class="bg-[var(--color-sf-cream)] p-8 flex-[1.8] flex items-center justify-center">
25+
<Image src={hackNight} alt="hack night" loading="eager" class="w-full" />
2626
</div>
2727
</section>
28-
29-
<style>
30-
section {
31-
margin-top: var(--pico-block-spacing-vertical);
32-
display: flex;
33-
flex-direction: row;
34-
justify-content: space-between;
35-
align-items: stretch;
36-
gap: 0;
37-
}
38-
39-
.info {
40-
--pico-color: var(--pico-contrast-inverse);
41-
background: rgb(50, 50, 102);
42-
text-align: center;
43-
padding: var(--pico-block-spacing);
44-
flex: 1.2;
45-
}
46-
47-
.info a {
48-
--pico-color: var(--pico-contrast-inverse);
49-
--pico-underline: rgba(255, 255, 255, 0.35);
50-
font-weight: bold;
51-
}
52-
53-
.info a:hover {
54-
--pico-underline: rgba(255, 255, 255, 0.9);
55-
}
56-
57-
.info h2 {
58-
--pico-color: var(--color-accent);
59-
margin-bottom: calc(2 * var(--pico-typography-spacing-vertical));
60-
}
61-
62-
.image {
63-
padding: var(--pico-block-spacing);
64-
background: #f7efde;
65-
flex: 1.8;
66-
display: flex;
67-
flex-direction: column;
68-
justify-content: center;
69-
}
70-
71-
@media only screen and (max-width: 768px) {
72-
section {
73-
flex-direction: column;
74-
}
75-
76-
.info {
77-
padding-inline: calc(2 * var(--pico-block-spacing));
78-
}
79-
}
80-
</style>

0 commit comments

Comments
 (0)