Skip to content

Commit

Permalink
Satisfy linter; Add default og:image; Update all title to 'xxx | now-…
Browse files Browse the repository at this point in the history
…u' from 'now-u | xxx'

 'xxx | now-u' is going to provide user better UX vs 'now-u | xxx' because it's easier for user to tell the current path of the page from a compact browser tab title.
  • Loading branch information
clementinelove committed Nov 10, 2024
1 parent 2f0b657 commit c700b08
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = {
},
],
"@typescript-eslint/naming-convention": 1,
"@typescript-eslint/strict-boolean-expressions": "warn"
},
settings: {
react: { version: "18.2.0" },
Expand Down
4 changes: 2 additions & 2 deletions src/app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Header } from "@/components/Header";
import { BlogTile, type BlogTileProps } from "@/components/BlogTile";
import { Newsletter } from "@/components/Newsletter";
import { getBlogPosts } from "@/services/api";
import { Metadata } from "next";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Blog"
title: "Blog | now-u"
}

async function Blog(): Promise<JSX.Element> {
Expand Down
2 changes: 1 addition & 1 deletion src/app/causes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { type Cause, getCauses } from "@/services/api";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Causes"
title: "Causes | now-u"
}

const CauseTile = (props: { cause: Cause }): JSX.Element => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/charity-partnership/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LinkButton } from "@/components/Button";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Charity Partnership"
title: "Charity Partnership | now-u"
}


Expand Down
2 changes: 1 addition & 1 deletion src/app/collaborations/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getOrganisations } from "@/services/api";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Collaborations"
title: "Collaborations | now-u"
}

const PartnersPage = async (): Promise<JSX.Element> => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/faq/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FAQBlock } from "@/app/faq/FAQBlock";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | FAQs"
title: "FAQs | now-u"
}


Expand Down
2 changes: 1 addition & 1 deletion src/app/get-in-touch/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ContactTile } from "./ContactTile";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Get In Touch"
title: "Get In Touch | now-u"
}

const contacts = [
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/cookie-policy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import md from "markdown-it";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Cookie Policy"
title: "Cookie Policy | now-u"
}

export default async function Page(): Promise<JSX.Element> {
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/privacy-notice/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import md from "markdown-it";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Privacy Notice"
title: "Privacy Notice | now-u"
}

export default async function Page(): Promise<JSX.Element> {
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/terms-and-conditions-for-users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import md from "markdown-it";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Terms and Conditions for Users"
title: "Terms and Conditions for Users | now-u"
}

export default async function Page(): Promise<JSX.Element> {
Expand Down
10 changes: 9 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { Footer } from "@/components/Footer";
import { getRequiredEnvironmentVariable } from "@/utils/getRequiredEnvironmentVariable";
import { Toaster } from "@/components/ui/toaster";
import { ScrollHack } from "@/components/ScrollHack";
import { Metadata } from "next";
import OGImage from "assets/graphics/og-image.png"
import type { Metadata } from "next";

const Analytics = lazy(async () => await import("@/components/Analytics"));

Expand Down Expand Up @@ -42,9 +43,16 @@ const ppPangram = localFont({
})

export const metadata: Metadata = {
metadataBase: new URL('https://www.now-u.com'),
title: "now-u",
description: "Learn more about this non-profit with a mission to inform, involve and inspire people to help tackle some of the world's most pressing social and environmental issues.",
openGraph: {
siteName: "now-u",
images: [
{
url: OGImage.src,
}
],
type: "website"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Newsletter } from "@/components/Newsletter";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Home"
title: "Drive Changes | now-u"
}


Expand Down
2 changes: 1 addition & 1 deletion src/app/press/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { type PressArticle, pressArticles } from "./pressArticles";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "now-u | Press"
title: "Press | now-u"
}

interface PressPack {
Expand Down
Binary file added src/assets/graphics/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c700b08

Please sign in to comment.