Skip to content

Commit

Permalink
make favicon and manifest dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
jchaselubitz committed Nov 4, 2024
1 parent 4f61768 commit 84f0394
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 10 deletions.
14 changes: 12 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ export default class MyDocument extends Document {
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="shortcut icon" href="/site-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<link
rel="shortcut icon"
href={`${
process.env.NEXT_PUBLIC_CLIENT === 'reizen' ? '/site-icon-reizen.png' : '/site-icon-cooperativ.png'
}`}
/>
<link
rel="manifest"
href={`${
process.env.NEXT_PUBLIC_CLIENT === 'reizen' ? '/reizen/site.webmanifest' : `/cooperativ/site.webmanifest`
}`}
/>
</Head>
<body>
<Main />
Expand Down
8 changes: 4 additions & 4 deletions pages/api/auth/next-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const options: AuthOptions = {
},
},
providers: [
GoogleProvider({
clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID as string,
clientSecret: process.env.NEXT_GOOGLE_SECRET as string,
}),
// GoogleProvider({
// clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID as string,
// clientSecret: process.env.NEXT_GOOGLE_SECRET as string,
// }),

EmailProvider({
server: process.env.NEXT_PUBLIC_EMAIL_SERVER,
Expand Down
1 change: 1 addition & 0 deletions public/cooperativ/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","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"}
Binary file added public/favicon-coop copy.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 public/favicon-coop.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 public/favicon.ico
Binary file not shown.
Binary file added public/reizen-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/reizen/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "",
"short_name": "",
"icons": [{ "src": "/reizen-192x192.png", "sizes": "192x192", "type": "image/png" }],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
File renamed without changes
Binary file added public/site-icon-reizen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/components/account/CreateAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,20 @@ const CreateAccount: FC = () => {
{magicLinkForm}
<div className="flex items-center">
<hr className="my-4 w-full border-gray-500" />
<div className="m-4">or</div> <hr className="my-4 w-full border-gray-500" />
{/* <div className="m-4">or</div> <hr className="my-4 w-full border-gray-500" /> */}
</div>
<SSOButton onClick={handleGoogleLogin} iconPrefix="fab" icon="google" text="Continue with Google" />
{/* <SSOButton onClick={handleGoogleLogin} iconPrefix="fab" icon="google" text="Continue with Google" /> */}
{/* <SSOButton onClick={handleMicrosoftLogin} iconPrefix="fab" icon="microsoft" text="Continue with Microsoft" /> */}
{/* <SSOButton onClick={handleLinkedInLogin} iconPrefix="fab" icon="linkedin" text="Continue with LinkedIn" /> */}
</div>
)}
{/* <div>{testCredentials}</div> */}
<div className="flex text-sm text-cGold text-center mt-10 justify-center">
<Link href="https://cooperativ.io/terms">
<Link href={`${process.env.NEXT_PUBLIC_TERMS_URL}`}>
<div className="w-max">Terms of Service</div>
</Link>
<div className="mx-4">|</div>
<Link href="https://cooperativ.io/privacy">
<Link href={`${process.env.NEXT_PUBLIC_PRIVACY_URL}`}>
<div className="w-max">Privacy Policy</div>
</Link>
</div>
Expand Down

0 comments on commit 84f0394

Please sign in to comment.