豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f160d31

Browse files
committed
fix: moved partners down to footer
1 parent 4a9df72 commit f160d31

File tree

2 files changed

+39
-41
lines changed

2 files changed

+39
-41
lines changed

src/components/Footer.jsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,47 @@ import { NavLink } from '@/components/NavLink'
77

88
import DiscordLogo from '@/images/logos/discord.svg'
99
import GitHubLogo from '@/images/logos/github.svg'
10+
import WeMakeDevs from '@/images/logos/WeMakeDevs.jpg'
11+
import ContentCreators4Cs from '@/images/logos/ContentCreators4Cs.jpg'
1012

1113
export function Footer() {
1214
return (
1315
<footer className="bg-slate-50">
1416
<Container>
17+
<div className="text-center">
18+
<p className="font-display text-base text-slate-900">
19+
Community Partners: Other great communities we collaborate with
20+
</p>
21+
<ul
22+
role="list"
23+
className="mt-8 flex items-center justify-center gap-x-8 sm:flex-col sm:gap-x-0 sm:gap-y-10 xl:flex-row xl:gap-x-12 xl:gap-y-0"
24+
>
25+
{[
26+
[
27+
{ name: 'WeMakeDevs', logo: WeMakeDevs },
28+
{ name: '4C', logo: ContentCreators4Cs },
29+
],
30+
].map((group, groupIndex) => (
31+
<li key={groupIndex}>
32+
<ul
33+
role="list"
34+
className="flex flex-col items-center gap-y-8 sm:flex-row sm:gap-x-12 sm:gap-y-0"
35+
>
36+
{group.map((company) => (
37+
<li key={company.name} className="flex">
38+
<Image
39+
src={company.logo}
40+
alt={company.name}
41+
unoptimized
42+
width="50"
43+
/>
44+
</li>
45+
))}
46+
</ul>
47+
</li>
48+
))}
49+
</ul>
50+
</div>
1551
<div className="py-16">
1652
<Logo className="mx-auto h-10 w-auto" />
1753
<nav className="mt-10 text-sm" aria-label="quick links">

src/components/Hero.jsx

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
import Image from 'next/image'
2-
31
import { Button } from '@/components/Button'
42
import { Container } from '@/components/Container'
5-
import WeMakeDevs from '@/images/logos/WeMakeDevs.jpg'
6-
import ContentCreators4Cs from '@/images/logos/ContentCreators4Cs.jpg'
73

84
export function Hero() {
95
return (
106
<Container className="pb-16 pt-20 text-center lg:pt-32">
117
<h1 className="mx-auto max-w-4xl font-display text-5xl font-medium tracking-tight text-slate-900 sm:text-7xl">
128
Open Source{' '}
13-
<span className="text-primary-600 relative whitespace-nowrap">
9+
<span className="relative whitespace-nowrap text-primary-600">
1410
<svg
1511
aria-hidden="true"
1612
viewBox="0 0 418 42"
17-
className="fill-primary-300/70 absolute left-0 top-2/3 h-[0.58em] w-full"
13+
className="absolute left-0 top-2/3 h-[0.58em] w-full fill-primary-300/70"
1814
preserveAspectRatio="none"
1915
>
2016
<path d="M203.371.916c-26.013-2.078-76.686 1.963-124.73 9.946L67.3 12.749C35.421 18.062 18.2 21.766 6.004 25.934 1.244 27.561.828 27.778.874 28.61c.07 1.214.828 1.121 9.595-1.176 9.072-2.377 17.15-3.92 39.246-7.496C123.565 7.986 157.869 4.492 195.942 5.046c7.461.108 19.25 1.696 19.17 2.582-.107 1.183-7.874 4.31-25.75 10.366-21.992 7.45-35.43 12.534-36.701 13.884-2.173 2.308-.202 4.407 4.442 4.734 2.654.187 3.263.157 15.593-.78 35.401-2.686 57.944-3.488 88.365-3.143 46.327.526 75.721 2.23 130.788 7.584 19.787 1.924 20.814 1.98 24.557 1.332l.066-.011c1.201-.203 1.53-1.825.399-2.335-2.911-1.31-4.893-1.604-22.048-3.261-57.509-5.556-87.871-7.36-132.059-7.842-23.239-.254-33.617-.116-50.627.674-11.629.54-42.371 2.494-46.696 2.967-2.359.259 8.133-3.625 26.504-9.81 23.239-7.825 27.934-10.149 28.304-14.005.417-4.348-3.529-6-16.878-7.066Z" />
@@ -35,47 +31,13 @@ export function Hero() {
3531
>
3632
<svg
3733
aria-hidden="true"
38-
className="fill-primary-600 h-3 w-3 flex-none group-active:fill-current"
34+
className="h-3 w-3 flex-none fill-primary-600 group-active:fill-current"
3935
>
4036
<path d="m9.997 6.91-7.583 3.447A1 1 0 0 1 1 9.447V2.553a1 1 0 0 1 1.414-.91L9.997 5.09c.782.355.782 1.465 0 1.82Z" />
4137
</svg>
4238
<span className="ml-3">Watch video</span>
4339
</Button>
4440
</div>
45-
<div className="mt-36 lg:mt-44">
46-
<p className="font-display text-base text-slate-900">
47-
Community Partners: Other great communities we collaborate with
48-
</p>
49-
<ul
50-
role="list"
51-
className="mt-8 flex items-center justify-center gap-x-8 sm:flex-col sm:gap-x-0 sm:gap-y-10 xl:flex-row xl:gap-x-12 xl:gap-y-0"
52-
>
53-
{[
54-
[
55-
{ name: 'WeMakeDevs', logo: WeMakeDevs },
56-
{ name: '4C', logo: ContentCreators4Cs },
57-
],
58-
].map((group, groupIndex) => (
59-
<li key={groupIndex}>
60-
<ul
61-
role="list"
62-
className="flex flex-col items-center gap-y-8 sm:flex-row sm:gap-x-12 sm:gap-y-0"
63-
>
64-
{group.map((company) => (
65-
<li key={company.name} className="flex">
66-
<Image
67-
src={company.logo}
68-
alt={company.name}
69-
unoptimized
70-
width="50"
71-
/>
72-
</li>
73-
))}
74-
</ul>
75-
</li>
76-
))}
77-
</ul>
78-
</div>
7941
</Container>
8042
)
8143
}

0 commit comments

Comments
 (0)