Skip to content

Commit 5aefd56

Browse files
committed
feat: add favicon
1 parent 05dcdfc commit 5aefd56

13 files changed

+48
-4
lines changed

app/public/android-chrome-192x192.png

21 KB
Loading

app/public/android-chrome-512x512.png

105 KB
Loading

app/public/apple-touch-icon.png

18.8 KB
Loading

app/public/favicon-16x16.png

664 Bytes
Loading

app/public/favicon-32x32.png

1.47 KB
Loading

app/public/favicon.ico

-10.3 KB
Binary file not shown.

app/public/next.svg

-1
This file was deleted.

app/public/site.webmanifest

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "CLIC webiste",
3+
"short_name": "CLIC",
4+
"icons": [
5+
{
6+
"src": "/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#ffffff",
17+
"background_color": "#ffffff",
18+
"display": "standalone"
19+
}

app/public/vercel.svg

-1
This file was deleted.

app/src/components/Gallery.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function Gallery({
2323

2424
let count_5 = 0;
2525
let count_3 = 0;
26+
let key = 0;
2627
imgs.map((img) => {
2728
let is_long_5 = Math.random() > 0.5 && count_5 < 4;
2829
count_5 += is_long_5 ? 2 : 1;
@@ -42,8 +43,10 @@ export default function Gallery({
4243
${is_long_3 ? styles.long_3 : ""}
4344
${is_long_5 ? styles.long_5 : ""}
4445
`}
46+
key={key}
4547
/>
4648
);
49+
key += 1;
4750
});
4851

4952
return (

app/src/components/NavigationBar.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ function SideMenu({
4646
className?: string;
4747
}) {
4848
const router = useRouter();
49+
50+
if (!langs) {
51+
return <></>;
52+
}
53+
4954
return (
5055
<>
5156
<Burger

app/src/components/SocialsList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function SocialsList({
1717
var list: any = [];
1818
socials.forEach((s) => {
1919
list.push(
20-
<Link href={s.link || ""} id={s.id?.toString()}>
20+
<Link href={s.link || ""} id={s.id?.toString()} key={s.id?.toString()}>
2121
<DirectusImage
2222
img={s.logo}
2323
name={s.media_name}

app/src/pages/_document.tsx

+20-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,26 @@ import { Head, Html, Main, NextScript } from "next/document";
33
export default function Document() {
44
return (
55
<Html lang="en">
6-
<Head />
6+
<Head>
7+
<link
8+
rel="apple-touch-icon"
9+
sizes="180x180"
10+
href="/dev/apple-touch-icon.png"
11+
/>
12+
<link
13+
rel="icon"
14+
type="image/png"
15+
sizes="32x32"
16+
href="/dev/favicon-32x32.png"
17+
/>
18+
<link
19+
rel="icon"
20+
type="image/png"
21+
sizes="16x16"
22+
href="/dev/favicon-16x16.png"
23+
/>
24+
<link rel="manifest" href="/dev/site.webmanifest" />
25+
</Head>
726
<body>
827
<Main />
928
<NextScript />

0 commit comments

Comments
 (0)