Skip to content

Commit

Permalink
feat: add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
NoeTerrier committed Mar 29, 2024
1 parent 05dcdfc commit 5aefd56
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 4 deletions.
Binary file added app/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/public/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion app/public/next.svg

This file was deleted.

19 changes: 19 additions & 0 deletions app/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "CLIC webiste",
"short_name": "CLIC",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
1 change: 0 additions & 1 deletion app/public/vercel.svg

This file was deleted.

3 changes: 3 additions & 0 deletions app/src/components/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function Gallery({

let count_5 = 0;
let count_3 = 0;
let key = 0;
imgs.map((img) => {
let is_long_5 = Math.random() > 0.5 && count_5 < 4;
count_5 += is_long_5 ? 2 : 1;
Expand All @@ -42,8 +43,10 @@ export default function Gallery({
${is_long_3 ? styles.long_3 : ""}
${is_long_5 ? styles.long_5 : ""}
`}
key={key}
/>
);
key += 1;
});

return (
Expand Down
5 changes: 5 additions & 0 deletions app/src/components/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ function SideMenu({
className?: string;
}) {
const router = useRouter();

if (!langs) {
return <></>;
}

return (
<>
<Burger
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/SocialsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function SocialsList({
var list: any = [];
socials.forEach((s) => {
list.push(
<Link href={s.link || ""} id={s.id?.toString()}>
<Link href={s.link || ""} id={s.id?.toString()} key={s.id?.toString()}>
<DirectusImage
img={s.logo}
name={s.media_name}
Expand Down
21 changes: 20 additions & 1 deletion app/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,26 @@ import { Head, Html, Main, NextScript } from "next/document";
export default function Document() {
return (
<Html lang="en">
<Head />
<Head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/dev/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/dev/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/dev/favicon-16x16.png"
/>
<link rel="manifest" href="/dev/site.webmanifest" />
</Head>
<body>
<Main />
<NextScript />
Expand Down

0 comments on commit 5aefd56

Please sign in to comment.