Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize favicon and open graph data across Nebula #175

Merged
merged 4 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/Jupiter.png
Binary file not shown.
Binary file modified 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 modified 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 modified 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.
9 changes: 0 additions & 9 deletions public/browserconfig.xml

This file was deleted.

Binary file modified 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 modified 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 public/favicon.ico
Binary file not shown.
Binary file added public/logoIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/logoIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/mstile-150x150.png
Binary file not shown.
35 changes: 0 additions & 35 deletions public/safari-pinned-tab.svg

This file was deleted.

38 changes: 19 additions & 19 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"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"
}
{
"name": "Nebula Jupiter",
"short_name": "Jupiter",
"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"
}
2 changes: 1 addition & 1 deletion src/components/ContactIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ export const logo: logoProps = {
</svg>
),

other: '/Jupiter.png',
other: '/nebula-logo.png',
};
33 changes: 27 additions & 6 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Head from 'next/head';
import { type AppType } from 'next/app';
import { type Session } from 'next-auth';
import { SessionProvider } from 'next-auth/react';
Expand All @@ -11,12 +12,32 @@ const MyApp: AppType<{ session: Session | null }> = ({
pageProps: { session, ...pageProps },
}) => {
return (
<SessionProvider {...session}>
<Sidebar />
<div className="max-h-screen overflow-y-scroll">
<Component {...pageProps} />
</div>
</SessionProvider>
<>
<Head>
<title>Jupiter</title>
<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="icon" href="/logoIcon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
</Head>
<SessionProvider {...session}>
<Sidebar />
<div className="max-h-screen overflow-y-scroll">
<Component {...pageProps} />
</div>
</SessionProvider>
</>
);
};

Expand Down
38 changes: 38 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Html, Head, Main, NextScript } from 'next/document';
import React from 'react';

export default function Document() {
return (
<Html lang="en">
<Head prefix="og: http://ogp.me/ns#">
<meta
name="description"
content="A student organization portal to connect organizations on campus with interested students at UTD."
/>
<meta name="theme-color" content="#573DFF" />

<meta property="og:title" content="Jupiter" />
<meta
property="og:description"
content="A student organization portal to connect organizations on campus with interested students at UTD."
/>
<meta property="og:type" content="website" />
<meta
property="og:image"
content="https://jupiter.utdnebula.com/logoIcon.png"
/>
<meta property="og:image:type" content="image/png" />
<meta property="og:image:alt" content="Nebula Labs Icon." />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />

<meta name="twitter:card" content="summary" />
<meta name="twitter:domain" content="jupiter.utdnebula.com" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
8 changes: 6 additions & 2 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ const About = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com/about"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com/about" />
<meta name="description" content="About - Jupiter" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="h-full md:pl-72">
<Header />
Expand Down
7 changes: 6 additions & 1 deletion src/pages/directory/[clubId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ const OrganizationPage = ({
<>
<Head>
<title>{club.name} - Jupiter</title>
<link
rel="canonical"
href={'https://jupiter.utdnebula.com/' + club.name}
key="canonical"
/>
<meta property="og:url" content={'https://jupiter.utdnebula.com/' + club.name} />
<meta name="description" content={`${club.name} - Jupiter`} />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="w-full md:pl-72">
<Header />
Expand Down
6 changes: 6 additions & 0 deletions src/pages/event/[eventId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ const EventPage = ({
<>
<Head>
<title>{event.name} - Jupiter</title>
<link
rel="canonical"
href={'https://jupiter.utdnebula.com/' + event.name}
key="canonical"
/>
<meta property="og:url" content={'https://jupiter.utdnebula.com/' + event.name} />
<meta name="description">{event.name} - Jupiter</meta>
</Head>
<main className="w-full md:pl-72">
Expand Down
8 changes: 6 additions & 2 deletions src/pages/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ const Events = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com/events"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com/events" />
<meta name="description" content="Events - Jupiter" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="md:pl-72">
<EventHeader />
Expand Down
8 changes: 6 additions & 2 deletions src/pages/feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ const Feedback = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com/feedback"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com/feedback" />
<meta name="description" content="Feedback - Jupiter" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="h-full md:pl-72">
<Header />
Expand Down
8 changes: 6 additions & 2 deletions src/pages/history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ const History = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com/history"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com/history" />
<meta name="description" content="History - Jupiter" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="h-full md:pl-72">
<Header />
Expand Down
8 changes: 6 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ const Home = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com" />
<meta name="description" content="Jupiter - Nebula Labs" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="md:pl-72 ">
<Header />
Expand Down
8 changes: 6 additions & 2 deletions src/pages/liked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ const Liked = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com/liked"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com/liked" />
<meta name="description" content="Liked - Jupiter" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="h-full md:pl-72">
<Header />
Expand Down
8 changes: 6 additions & 2 deletions src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ const Settings = () => {
return (
<>
<Head>
<title>Jupiter</title>
<link
rel="canonical"
href="https://jupiter.utdnebula.com/settings"
key="canonical"
/>
<meta property="og:url" content="https://jupiter.utdnebula.com/settings" />
<meta name="description" content="Settings - Jupiter" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="h-full md:pl-72">
<Header />
Expand Down