Skip to content

Commit 0162865

Browse files
authored
feat: update references and add powered by (#415)
1 parent fe49d31 commit 0162865

File tree

9 files changed

+79
-37
lines changed

9 files changed

+79
-37
lines changed

pwa/app/(common)/components/ReferenceLogoItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function LogoItem({
7171
src={`/images/references/oss/${reference.logo}.png`}
7272
height={50}
7373
width={200}
74-
className="cursor-pointer h-full w-auto brightness-0 invert"
74+
className="h-full w-auto brightness-0 invert"
7575
/>
7676
</a>
7777
);

pwa/app/(common)/components/References.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ export default function References({ refs, ossRefs }: ReferencesProps) {
2121
<Heading size="xl" overline="References" level="h2">
2222
They <strong>use</strong> API Platform
2323
</Heading>
24-
<div className="relative py-12 flex flex-row items-center justify-center pointer-events-none">
24+
<div className="relative py-12 flex flex-row items-center justify-center">
2525
<Image
2626
src="/images/web.svg"
2727
alt=""
2828
width={1000}
2929
height={1000}
30-
className="absolute z-0 top-1/2 left-0 -translate-y-1/2 -translate-x-1/2 opacity-75 | sm:left-1/3 | lg:left-1/2"
30+
className="absolute pointer-events-none z-0 top-1/2 left-0 -translate-y-1/2 -translate-x-1/2 opacity-75 | sm:left-1/3 | lg:left-1/2"
3131
/>
3232
<div className="hidden flex-1 justify-center items-end flex-col pr-12 | lg:flex">
3333
{firstHalf.map((ref, index) => (
@@ -42,7 +42,7 @@ export default function References({ refs, ossRefs }: ReferencesProps) {
4242
</div>
4343
<div className="p-3 shadow-2xl rounded-full bg-blue -rotate-90 inline-flex absolute left-0 top-1/2 -translate-y-1/2 -translate-x-1/2 | sm:relative sm:translate-y-0 sm:translate-x-0 sm:rotate-0 | md:p-4 z-20">
4444
<div className="bg-white dark:bg-blue-black flex items-end justify-center uppercase font-bold text-xl p-8 text-blue text-center shadow-md w-48 aspect-square rounded-full | sm:text-2xl sm:items-center">
45-
<span className="leading-none">Open source</span>
45+
<span className="leading-none">Free software</span>
4646
</div>
4747
</div>
4848
<div className="hidden w-1/2 flex-1 flex-wrap basis-0 justify-center items-start flex-col pl-12 | lg:flex">

pwa/app/(common)/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import Heading from "components/common/typography/Heading";
1010

1111
export default async function Page() {
1212
const ossRefs = openSourceData.filter((ref) => ref.highlight);
13-
const refs = otherData.filter((ref) => ref.highlight);
13+
const refs = otherData
14+
.filter((ref) => ref.highlight)
15+
.sort((a, b) => (a.highlight as number) - (b.highlight as number));
1416

1517
return (
1618
<>

pwa/app/(common)/references/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default async function Page() {
3838
size="lg"
3939
className="w-full border-b-2 border-b-blue mb-4"
4040
>
41-
Open source projects
41+
Free software
4242
</Heading>
4343
</div>
4444
<div className="grid gap-6 grid-cols-[repeat(auto-fill,minmax(120px,1fr))] sm:grid-cols-[repeat(auto-fill,minmax(150px,1fr))] w-full place-content-center">

pwa/components/layout/Footer.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Footer() {
3030
<div className="container">
3131
<div
3232
className={classNames(
33-
"w-[600px] p-4 max-w-[90%] translate-y-1/2 bg-blue text-white mx-auto flex flex-col items-center shadow-xl",
33+
"w-[650px] p-4 max-w-[90%] translate-y-1/2 bg-blue text-white mx-auto flex flex-col items-center shadow-xl",
3434
"lg:flex-row",
3535
"dark:brightness-90 dark:text-blue-black"
3636
)}
@@ -50,8 +50,17 @@ export default function Footer() {
5050
)}
5151
>
5252
<p className="text-sm mb-4">
53-
Les-Tilleuls.coop offers a wide range of API Platform solutions:
54-
migration, trainings, coaching or web development.
53+
<a
54+
href="https://les-tilleuls.coop/en"
55+
target="_blank"
56+
rel="noreferer noopener"
57+
className="font-bold"
58+
>
59+
Les-Tileuls.coop
60+
</a>{" "}
61+
can help you design and develop your APIs and web projects, and
62+
train your teams in API Platform, Symfony, Next.js, Kubernetes and
63+
a wild range of other technologies.
5564
</p>
5665
<Button
5766
size="medium"

pwa/components/layout/Nav.tsx

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,39 +128,65 @@ export default function Nav({ withPreheader = false }) {
128128
</NavLink>
129129
<NavLink href="/events">Events</NavLink>
130130
<NavLink href="/help">Need&nbsp;help?</NavLink>
131-
<div className="lg:border-l-2 lg:pl-6 lg:border-current flex flex-row gap-2">
131+
<div
132+
className={classNames(
133+
"lg:border-x-2 py-1 lg:px-4 flex flex-row gap-4 lg:gap-2.5",
134+
withBg
135+
? "text-blue dark:text-blue-light lg:border-gray-300 lg:dark:border-white/50"
136+
: "text-white lg:border-white/50 dark:text-blue-black dark:lg:border-blue-black/25"
137+
)}
138+
>
132139
<a
133140
href="https://github.com/api-platform/api-platform"
134141
target="_blank"
135142
rel="noreferrer noopener"
136143
>
137-
<Github className="h-8 w-8 lg:h-5 lg:w-5" />
144+
<Github className="h-7 w-7 lg:h-4 lg:w-4" />
138145
</a>
139146
<a
140147
href="https://fosstodon.org/@ApiPlatform"
141148
target="_blank"
142149
rel="noreferrer noopener"
143150
>
144-
<Mastodon className="h-8 w-8 lg:h-5 lg:w-5" />
151+
<Mastodon className="h-7 w-7 lg:h-4 lg:w-4" />
145152
</a>
146153
<a
147154
href="https://twitter.com/ApiPlatform"
148155
target="_blank"
149156
rel="noreferrer noopener"
150157
>
151-
<Twitter className="h-8 w-8 lg:h-5 lg:w-5" />
158+
<Twitter className="h-7 w-7 lg:h-4 lg:w-4" />
152159
</a>
153160
</div>
161+
<a
162+
href="https://les-tilleuls.coop/en"
163+
target="_blank"
164+
rel="noreferer noopener"
165+
className="hidden flex-col justify-center items-center text-center xl:flex"
166+
>
167+
<p className="text-xs opacity-70 -mt-1">Powered by</p>
168+
<LogoTilleuls className="w-28" red={withBg} />
169+
</a>
154170
</div>
155-
<NavLink
156-
href="/"
171+
<div
157172
className={classNames(
158-
"bg-blue text-white dark:text-blue-black py-16 w-full px-12 block lg:hidden"
173+
"bg-blue text-white dark:text-blue-black py-16 w-full px-12 block text-center lg:hidden"
159174
)}
160175
title="API Platform"
161176
>
162-
<Logo className="w-full" inline />
163-
</NavLink>
177+
<NavLink href="/" title="API Platform">
178+
<Logo className="w-full" inline />
179+
</NavLink>
180+
<p className="text-sm font-light mt-4">powered by</p>
181+
<a
182+
href="https://les-tilleuls.coop/en"
183+
target="_blank"
184+
rel="noreferer noopener"
185+
className="font-bold"
186+
>
187+
<LogoTilleuls className="max-w-[170px] mx-auto" />
188+
</a>
189+
</div>
164190
</div>
165191
<ThemeToggle withBgNav={withBg} />
166192
<div

pwa/data/logos.ts

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,25 @@ export const openSourceData: Reference[] = [
1010
name: "Bolt",
1111
logo: "bolt",
1212
link: "https://boltcms.io/",
13-
highlight: true,
13+
highlight: 1,
1414
},
1515
{
1616
name: "CoopCycle",
1717
logo: "coopcycle",
1818
link: "https://github.com/coopcycle/coopcycle-web",
19-
highlight: true,
19+
highlight: 1,
2020
},
2121
{
2222
name: "Digital State",
2323
logo: "digital-state",
2424
link: "http://digitalstate.io/",
25-
highlight: true,
25+
highlight: 1,
26+
},
27+
{
28+
name: "Kbin",
29+
logo: "kbin",
30+
link: "https://kbin.pub/en",
31+
highlight: 1,
2632
},
2733
{
2834
name: "QOwnNotes",
@@ -38,19 +44,18 @@ export const openSourceData: Reference[] = [
3844
name: "Mobicoop",
3945
logo: "mobicoop",
4046
link: "https://gitlab.com/mobicoop/mobicoop-platform",
41-
highlight: true,
47+
highlight: 1,
4248
},
4349
{
4450
name: "PartKeepr",
4551
logo: "partkeepr",
4652
link: "https://partkeepr.org/",
47-
highlight: true,
53+
highlight: 1,
4854
},
4955
{
5056
name: "Sylius",
5157
logo: "sylius",
5258
link: "https://sylius.com/",
53-
highlight: true,
5459
},
5560
{
5661
name: "French Government",
@@ -74,13 +79,11 @@ export const otherData: Reference[] = [
7479
name: "24 Sèvres",
7580
logo: "24-sevres",
7681
link: "https://www.24sevres.com/",
77-
highlight: true,
7882
},
7983
{
8084
name: "Adeo",
8185
logo: "adeo",
8286
link: "https://www.adeo.com/",
83-
highlight: true,
8487
},
8588
{
8689
name: "Agence Koul",
@@ -91,18 +94,18 @@ export const otherData: Reference[] = [
9194
name: "Alstom",
9295
logo: "alstom",
9396
link: "https://www.alstom.com/",
94-
highlight: true,
9597
},
9698
{
9799
name: "Arte",
98100
logo: "arte",
99101
link: "https://www.arte.tv/fr/",
100-
highlight: true,
102+
highlight: 7,
101103
},
102104
{
103105
name: "beIN SPORTS",
104106
logo: "bein-sports",
105107
link: "https://www.beinsports.com/",
108+
highlight: 8,
106109
},
107110
{
108111
name: "Biig",
@@ -113,7 +116,7 @@ export const otherData: Reference[] = [
113116
name: "BNP",
114117
logo: "bnp",
115118
link: "https://mabanque.bnpparibas/",
116-
highlight: true,
119+
highlight: 6,
117120
},
118121
{
119122
name: "Bonjour",
@@ -129,11 +132,13 @@ export const otherData: Reference[] = [
129132
name: "Cartier",
130133
logo: "cartier",
131134
link: "https://www.cartier.com/",
135+
highlight: 5,
132136
},
133137
{
134138
name: "Decathlon",
135139
logo: "decathlon",
136140
link: "https://www.decathlon.fr/",
141+
highlight: 10,
137142
},
138143
{
139144
name: "Deutsche Institution für Schiedsgerichtsbarkeit",
@@ -169,13 +174,12 @@ export const otherData: Reference[] = [
169174
name: "France TV",
170175
logo: "france-tv",
171176
link: "https://www.france.tv/",
172-
highlight: true,
177+
highlight: 9,
173178
},
174179
{
175180
name: "General Electric",
176181
logo: "general-electric",
177182
link: "https://www.ge.com/",
178-
highlight: true,
179183
},
180184
{
181185
name: "Instamed",
@@ -206,7 +210,6 @@ export const otherData: Reference[] = [
206210
name: "Libération",
207211
logo: "liberation",
208212
link: "https://www.liberation.fr/",
209-
highlight: true,
210213
},
211214
{
212215
name: "The London Internet Exchange",
@@ -252,7 +255,7 @@ export const otherData: Reference[] = [
252255
name: "Orange",
253256
logo: "orange",
254257
link: "https://www.orange.fr/",
255-
highlight: true,
258+
highlight: 2,
256259
},
257260
{
258261
name: "Oskab",
@@ -283,6 +286,7 @@ export const otherData: Reference[] = [
283286
name: "Renault",
284287
logo: "renault",
285288
link: "https://www.renault.fr/",
289+
highlight: 11,
286290
},
287291
{
288292
name: "Ville de Roubaix",
@@ -303,13 +307,11 @@ export const otherData: Reference[] = [
303307
name: "SensioLabs",
304308
logo: "sensio-labs",
305309
link: "https://sensiolabs.com/",
306-
highlight: true,
307310
},
308311
{
309312
name: "Sezane",
310313
logo: "sezane",
311314
link: "https://www.sezane.com/",
312-
highlight: true,
313315
},
314316
{
315317
name: "SGS",
@@ -320,6 +322,7 @@ export const otherData: Reference[] = [
320322
name: "Siemens",
321323
logo: "siemens",
322324
link: "https://www.siemens.com/",
325+
highlight: 1,
323326
},
324327
{
325328
name: "Simplon",
@@ -370,17 +373,19 @@ export const otherData: Reference[] = [
370373
name: "US Government",
371374
logo: "us-government",
372375
link: "https://data.usbr.gov/rise/api",
376+
highlight: 4,
373377
},
374378
{
375379
name: "Vestiaire collective",
376380
logo: "vestiaire-collective",
377381
link: "https://vestiairecollective.com/",
382+
highlight: 12,
378383
},
379384
{
380385
name: " Volvo",
381386
logo: "volvo",
382387
link: "https://www.volvocars.com/",
383-
highlight: true,
388+
highlight: 3,
384389
},
385390
{
386391
name: "whatwedo",
4.62 KB
Loading

pwa/types/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface Reference {
66
name: string;
77
logo: string;
88
link: string;
9-
highlight?: boolean;
9+
highlight?: number;
1010
}
1111

1212
export interface GuideFrontMatter {

0 commit comments

Comments
 (0)