Skip to content

Commit 98097b5

Browse files
committed
wip
1 parent 9802bcf commit 98097b5

23 files changed

+453
-850
lines changed

astro.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export default defineConfig({
104104
Footer: "./src/components/overrides/Footer.astro",
105105
Head: "./src/components/overrides/Head.astro",
106106
Header: "./src/components/overrides/Header.astro",
107-
Hero: "./src/components/overrides/Hero.astro",
108107
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
109108
Sidebar: "./src/components/overrides/Sidebar.astro",
110109
PageTitle: "./src/components/overrides/PageTitle.astro",

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"react-icons": "5.5.0",
9393
"react-instantsearch": "7.15.4",
9494
"react-markdown": "10.0.1",
95+
"react-tabs": "6.1.0",
9596
"redirects-in-workers": "0.0.5",
9697
"rehype": "13.0.2",
9798
"rehype-autolink-headings": "7.1.0",

src/assets/network-map.svg

Lines changed: 9 additions & 0 deletions
Loading

src/components/FourCardGrid.astro

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/components/HomepageHero.astro

Lines changed: 0 additions & 156 deletions
This file was deleted.

src/components/astro/ListCard.astro

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
const groups = [
3+
{
4+
heading: "Community",
5+
description:
6+
"Share ideas, answers, code and compare notes with the Cloudflare community",
7+
links: [
8+
{
9+
label: "Discord",
10+
href: "https://discord.gg/cloudflaredev",
11+
},
12+
{
13+
label: "Twitter",
14+
href: "https://twitter.com/cloudflaredev",
15+
},
16+
{
17+
label: "Community forum",
18+
href: "https://community.cloudflare.com/",
19+
},
20+
],
21+
},
22+
{
23+
heading: "Open Source",
24+
description:
25+
"Cloudflare contributes to the open-source ecosystem in a variety of ways, including:",
26+
links: [
27+
{
28+
label: "GitHub projects",
29+
href: "https://github.com/cloudflare/",
30+
},
31+
{
32+
label: "Sponsorship projects",
33+
href: "/sponsorships/",
34+
},
35+
{
36+
label: "Style guide",
37+
href: "/style-guide/",
38+
},
39+
],
40+
},
41+
{
42+
heading: "Blog",
43+
description:
44+
"Get the latest news on Cloudflare products, technologies, and culture.",
45+
links: [
46+
{
47+
label: "Read the blog",
48+
href: "https://blog.cloudflare.com/",
49+
},
50+
],
51+
},
52+
];
53+
---
54+
55+
{
56+
groups.map((group) => (
57+
<div>
58+
<p class="text-xs font-medium uppercase">{group.heading}</p>
59+
<p class="mt-1 text-sm">{group.description}</p>
60+
<ul class="mt-4 list-none pl-0">
61+
{group.links.map((item) => (
62+
<li>
63+
<a
64+
href={item.href}
65+
class="text-sm font-medium !text-black no-underline"
66+
>
67+
{item.label}
68+
</a>
69+
</li>
70+
))}
71+
</ul>
72+
</div>
73+
))
74+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
import { Tabs, TabItem } from "@astrojs/starlight/components";
3+
import Render from "~/components/Render.astro";
4+
---
5+
6+
<div class="flex justify-between">
7+
<h2>Build with Cloudflare</h2>
8+
<a href="https://developers.cloudflare.com/workers/">
9+
Learn more about Workers
10+
</a>
11+
</div>
12+
<div>
13+
<Tabs>
14+
<TabItem label="Return HTML">
15+
<Render file="return-html-example-js" product="workers" />
16+
</TabItem>
17+
<TabItem label="Return JSON">
18+
<Render file="return-json-example-js" product="workers" />
19+
</TabItem>
20+
<TabItem label="Fetch HTML">
21+
<Render file="fetch-html-example-js" product="workers" />
22+
</TabItem>
23+
<TabItem label="Redirect">
24+
<Render file="redirect-example-js" product="workers" />
25+
</TabItem>
26+
<TabItem label="Respond with another site">
27+
<Render file="respond-another-site-example-js" product="workers" />
28+
</TabItem>
29+
</Tabs>
30+
</div>

0 commit comments

Comments
 (0)