Skip to content

Commit 3d6958c

Browse files
committed
Add links bar
1 parent b365c4a commit 3d6958c

File tree

4 files changed

+25
-87
lines changed

4 files changed

+25
-87
lines changed

demos/swr-minidocs-demo

site/src/landing-new.js

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import s from "./landing.module.css"
33
import { CodeHikeHead } from "./code-hike-head"
44
import Link from "next/link"
55
import { Header } from "./header"
6-
import { Footer } from "./footer"
76
import { Description } from "./landing/description"
87
import { Showcase } from "./landing/showcase"
98
import { Sponsors } from "./landing/sponsors"
@@ -14,6 +13,15 @@ function LandingPage({ sponsors }) {
1413
return (
1514
<div className={s.main}>
1615
<CodeHikeHead title="Marvellous code walkthroughs - Code Hike" />
16+
<div className={s.linksBar}>
17+
<a href="https://github.com/code-hike/codehike">
18+
GitHub
19+
</a>
20+
<a href="https://twitter.com/codehike_">Twitter</a>
21+
<a href="https://opencollective.com/codehike">
22+
Open Collective
23+
</a>
24+
</div>
1725
<section>
1826
<Header className={s.header} />
1927
<Description />
@@ -32,43 +40,11 @@ function LandingPage({ sponsors }) {
3240
Building Blocks
3341
</SectionTitle>
3442
<Tools />
35-
<Footer />
3643
</section>
3744
</div>
3845
)
3946
}
4047

41-
function ShowcaseX() {
42-
return (
43-
<div className={s.demos}>
44-
<h2>Showcase</h2>
45-
<div className={s.listContainer}>
46-
<ul className={s.list}>
47-
<li>
48-
<Link href="demo/hooks-talk">
49-
<a className={s.box}>
50-
<h3>Player Demo</h3>
51-
<img
52-
src="/video-tutorial.png"
53-
style={{ padding: "2.32% 0" }}
54-
/>
55-
</a>
56-
</Link>
57-
</li>
58-
<li className={s.box}>
59-
<Link href="demo/blog-post">
60-
<a className={s.box}>
61-
<h3>Blog Demo</h3>
62-
<img src="/post-thumb.png" />
63-
</a>
64-
</Link>
65-
</li>
66-
</ul>
67-
</div>
68-
</div>
69-
)
70-
}
71-
7248
function Tools() {
7349
return (
7450
<div className={s.tools} id="building-blocks">

site/src/landing.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import s from "./landing.module.css"
33
import { CodeHikeHead } from "./code-hike-head"
44
import Link from "next/link"
55
import { Header } from "./header"
6-
import { Footer } from "./footer"
76

87
export { LandingPage }
98

@@ -42,7 +41,6 @@ function LandingPage() {
4241
</div>
4342
<Demos />
4443
<Tools />
45-
<Footer />
4644
</div>
4745
)
4846
}

site/src/landing.module.css

Lines changed: 15 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* background: #aaa; */
33
/* max-width: 1024px; */
44
margin: 0 auto;
5+
position: relative;
56
}
67

78
.main > section {
@@ -26,6 +27,17 @@
2627
);
2728
}
2829

30+
.linksBar {
31+
position: absolute;
32+
right: 32px;
33+
top: 16px;
34+
display: flex;
35+
}
36+
37+
.linksBar > * {
38+
margin: 8px;
39+
}
40+
2941
.header {
3042
margin-top: 96px;
3143
padding: 32px;
@@ -52,57 +64,6 @@
5264
margin: 0 64px;
5365
}
5466

55-
.demos {
56-
/* background: #ece; */
57-
padding: 32px;
58-
}
59-
60-
.demos .listContainer {
61-
position: relative;
62-
}
63-
64-
.demos a {
65-
color: inherit;
66-
}
67-
.demos button svg {
68-
display: block;
69-
}
70-
.demos .prev {
71-
left: 0;
72-
}
73-
74-
.demos .next {
75-
right: 0;
76-
}
77-
78-
.demos .list {
79-
display: flex;
80-
justify-content: center;
81-
flex-wrap: wrap;
82-
}
83-
84-
.demos .box {
85-
display: block;
86-
box-sizing: border-box;
87-
padding: 0 8px;
88-
}
89-
90-
.demos .box:hover {
91-
color: var(--accent-500);
92-
}
93-
94-
.demos .box h3 {
95-
margin: 0;
96-
font-size: 1.5em;
97-
text-align: center;
98-
}
99-
100-
.demos .box img {
101-
width: 100%;
102-
min-width: 300px;
103-
max-width: 450px;
104-
}
105-
10667
.tools {
10768
/* background: #cee; */
10869
padding: 32px 32px 16px;
@@ -193,4 +154,7 @@
193154
.title {
194155
font-size: 1.4em;
195156
}
157+
.linksBar {
158+
font-size: 0.8em;
159+
}
196160
}

0 commit comments

Comments
 (0)