Skip to content

Commit ca3fa64

Browse files
authored
Use sl-qr-code for our QR codes! (#6)
1 parent f85a61d commit ca3fa64

File tree

6 files changed

+196
-15
lines changed

6 files changed

+196
-15
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13+
"@shoelace-style/shoelace": "^2.20.1",
1314
"react": "^19.0.0",
1415
"react-dom": "^19.0.0",
1516
"reveal.js": "^5.2.1"

pnpm-lock.yaml

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

public/zilker-directions.png

2.47 MB
Loading

src/slides/splash.tsx

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,59 @@
1+
import SlQrCode from "@shoelace-style/shoelace/dist/react/qr-code/index.js";
2+
13
const Splash = () => {
24
return (
35
<section>
46
<div className="quadrants">
57
<div className="quadrant">
68
<div className="quadrant-content">
79
<img src="/logo.png" />
8-
<h1>Welcome to<br/>Austin JavaScript</h1>
10+
<h1>
11+
Welcome to
12+
<br />
13+
Austin JavaScript
14+
</h1>
915
<p>we’re glad you’re here :)</p>
1016
</div>
1117
</div>
1218
<div className="quadrant">
1319
<div className="quadrant-content">
14-
<img src="/discord-qr.png" width="300" />
15-
<h2>Join us on <img src="/discord-mark-black.png" style={ { margin: '-5px 0', height: 30 } }/> Discord</h2>
20+
<SlQrCode
21+
value="https://discord.gg/SrRUFMXw3c"
22+
label="Scan this QR code to join the Austin JavaScript Discord!"
23+
size={300}
24+
></SlQrCode>
25+
26+
<h2 style={{ marginTop: "1rem" }}>
27+
Join us on{" "}
28+
<img
29+
src="/discord-mark-black.png"
30+
style={{ margin: "-5px 0", height: 30 }}
31+
/>{" "}
32+
Discord
33+
</h2>
1634
</div>
1735
</div>
1836
<div className="quadrant">
1937
<div className="quadrant-content">
20-
<img src="/shirt-qr.png" width="300" />
21-
<h2>Austin JavaScript Shirts are $25</h2>
38+
<SlQrCode
39+
value="https://opencollective.com/austin-javascript/donate/profile?interval=oneTime&amount=25"
40+
label="Scan this QR code to contribute to the Austin JavaScript Open Collective, shirts are $25"
41+
size={300}
42+
></SlQrCode>
43+
<h2 style={{ marginTop: "1rem" }}>
44+
Austin JavaScript Shirts are $25
45+
</h2>
2246
</div>
2347
</div>
2448
<div className="quadrant">
2549
<div className="quadrant-content">
2650
<h2>Sponsored by</h2>
27-
<img src="/cloudflare.png"/>
51+
<img src="/cloudflare.png" />
2852
</div>
2953
</div>
3054
</div>
3155
</section>
32-
)
33-
}
56+
);
57+
};
3458

35-
export default Splash
59+
export default Splash;

src/slides/thanks.tsx

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import SlQrCode from "@shoelace-style/shoelace/dist/react/qr-code/index.js";
2+
13
const Splash = () => {
24
return (
35
<section>
@@ -10,12 +12,32 @@ const Splash = () => {
1012
</div>
1113
<div className="quadrant">
1214
<div className="quadrant-content">
13-
<h2>We want your feedback!</h2>
15+
<SlQrCode
16+
value="https://forms.gle/BEsMjyE3cxDUvVmq7"
17+
label="Scan this QR code to give feedback!"
18+
size={300}
19+
></SlQrCode>
20+
<h2 style={{ marginTop: "1rem" }}>We want your feedback!</h2>
1421
</div>
1522
</div>
1623
<div className="quadrant">
1724
<div className="quadrant-content">
18-
<h3>Meet us at Lazarus!</h3>
25+
<div style={{ position: "relative" }}>
26+
<img width={500} src="/zilker-directions.png" />
27+
<h3
28+
style={{
29+
marginTop: "1rem",
30+
position: "absolute",
31+
bottom: "4rem",
32+
right: "4rem",
33+
textWrap: "balance",
34+
background: "white",
35+
padding: ".5em",
36+
}}
37+
>
38+
Meet us at Zilker Brewing!
39+
</h3>
40+
</div>
1941
</div>
2042
</div>
2143
<div className="quadrant">
@@ -25,7 +47,7 @@ const Splash = () => {
2547
</div>
2648
</div>
2749
</section>
28-
)
29-
}
50+
);
51+
};
3052

31-
export default Splash
53+
export default Splash;

src/styles/index.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
@import "./theme";
22

3+
sl-qr-code {
4+
padding: 0.75rem;
5+
border-radius: 0.25rem;
6+
background: white;
7+
8+
&::part(base) {
9+
/* Removes line-height from canvas element */
10+
display: block;
11+
}
12+
}
13+
314
.agendaWrapper {
415
display: flex;
516
justify-content: center;
@@ -45,4 +56,5 @@
4556
h2 {
4657
color: rgba(255, 255, 255, 0.59);
4758
}
48-
}
59+
}
60+

0 commit comments

Comments
 (0)