Skip to content

Commit

Permalink
Merge pull request #55 from hackclub/website-improvements
Browse files Browse the repository at this point in the history
Website improvements
  • Loading branch information
cskartikey authored Aug 14, 2024
2 parents 3e89ca5 + 67093b5 commit 3ea5271
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
25 changes: 24 additions & 1 deletion website/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,31 @@ export default function App({ Component, pageProps }: AppProps) {
return (
<div className={`${dm_mono.variable}`}>
<Head>
<title>Nest</title>
<title key="title">Nest</title>
<link rel="icon" type="image/png" href="/favicon.png" />

<meta
key="meta-title"
name="title"
content="Nest - a free Linux server from Hack Club"
/>
<meta
name="description"
content="Nest is a free Linux server for high-schoolers to host their projects on, from Hack Club."
/>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content="hack club,nest,linux,server" />

<meta name="apple-mobile-web-app-title" content="Nest" />

<meta property="og:type" content="website" />
<meta property="og:site_name" content="Nest" />
<meta
key="og:title"
property="og:title"
content="Nest - a free Linux server from Hack Club"
/>
</Head>
<Component {...pageProps} />
</div>
Expand Down
2 changes: 2 additions & 0 deletions website/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export const getStaticProps = async () => {
featured: p.get("Featured"),
})) as Project[],
},
// Revalidate every hour
revalidate: 60 * 60,
};
};

Expand Down
8 changes: 8 additions & 0 deletions website/pages/projects.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Airtable from "airtable";
import { Masonry } from "masonic";
import { useState, useEffect } from "react";
import Head from "next/head";

import Nav from "@/components/nav";
import ProjectCard from "@/components/projectCard";
Expand Down Expand Up @@ -33,6 +34,8 @@ export const getStaticProps = async () => {
featured: p.get("Featured") ?? false,
})) as Project[],
},
// Revalidate every hour
revalidate: 60 * 60,
};
};

Expand All @@ -47,6 +50,11 @@ export default function Projects(

return (
<main className="min-h-screen overflow-hidden bg-bg font-dm-mono text-white">
<Head>
<title key="title">Nest - Projects</title>
<meta key="meta-title" name="title" content="Nest - Projects" />
<meta key="og:title" property="og:title" content="Nest - Projects" />
</Head>
<Nav />
<p className="my-8 px-2 text-center text-3xl font-medium lg:px-4 2xl:text-4xl">
Nest Projects
Expand Down

0 comments on commit 3ea5271

Please sign in to comment.