Skip to content

Commit b365c4a

Browse files
committed
Add links
1 parent 226c5d8 commit b365c4a

File tree

3 files changed

+33
-28
lines changed

3 files changed

+33
-28
lines changed

site/src/landing/showcase.js

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,58 +12,43 @@ function Showcase() {
1212
<MiniDocsDemo />
1313
<TutorialDemo />
1414
</Carousel>
15-
{/* <div className={s.rect}>
16-
<TalkDemo />
17-
</div>
18-
<div className={s.rect}>
19-
<MiniDocsDemo />
20-
</div>
21-
<div className={s.rect}>
22-
<TutorialDemo />
23-
</div> */}
2415
</section>
2516
)
2617
}
2718

2819
function TalkDemo() {
2920
return (
30-
<div className={s.demo}>
21+
<a
22+
className={s.demo}
23+
href="https://egghead.io/lessons/mdx-the-x-in-mdx"
24+
>
3125
<Browser>
3226
<img src="talk-cover.png" />
3327
</Browser>
3428
<h3>A Conference Talk</h3>
35-
</div>
36-
)
37-
}
38-
39-
function Browser({ children }) {
40-
return (
41-
<div className={s.browser}>
42-
<div className={s.menuBar}>
43-
<div className={s.circle} />
44-
<div className={s.circle} />
45-
<div className={s.circle} />
46-
</div>
47-
{children}
48-
</div>
29+
</a>
4930
)
5031
}
5132

5233
function TutorialDemo() {
5334
return (
54-
<div className={s.demo}>
35+
<a
36+
className={s.demo}
37+
href="https://pomb.us/nextjs-static-props/"
38+
>
5539
<Browser>
5640
<img src="tutorial-cover.png" />
5741
</Browser>
5842
<h3>A Tutorial</h3>
59-
</div>
43+
</a>
6044
)
6145
}
6246

6347
function MiniDocsDemo() {
6448
return (
65-
<div
49+
<a
6650
className={s.demo}
51+
href="https://swr-minidocs.codehike.org/"
6752
style={{
6853
display: "flex",
6954
justifyContent: "center",
@@ -77,6 +62,19 @@ function MiniDocsDemo() {
7762
A <br />
7863
Landing <br /> Page
7964
</h3>
65+
</a>
66+
)
67+
}
68+
69+
function Browser({ children }) {
70+
return (
71+
<div className={s.browser}>
72+
<div className={s.menuBar}>
73+
<div className={s.circle} />
74+
<div className={s.circle} />
75+
<div className={s.circle} />
76+
</div>
77+
{children}
8078
</div>
8179
)
8280
}

site/src/landing/showcase.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
/* height: calc(100 * var(--w)); */
1515
transform-style: preserve-3d;
1616
/* outline: 1px solid red; */
17+
color: inherit;
18+
color: var(--accent-100);
19+
text-decoration: none;
20+
}
21+
22+
.demo:hover {
23+
text-decoration: none;
1724
}
1825

1926
.demo h3 {

site/src/landing/sponsors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Sponsors({ sponsors }) {
88
<section>
99
<ul className={s.sponsors}>
1010
{sponsors.map(sponsor => (
11-
<li key={s.login}>
11+
<li key={sponsor.login}>
1212
<a className={s.sponsor} href={sponsor.url}>
1313
<img src={sponsor.avatarUrl} />
1414
<div className={s.details}>

0 commit comments

Comments
 (0)