Skip to content

Commit

Permalink
update meta titles
Browse files Browse the repository at this point in the history
  • Loading branch information
waalbert committed Nov 24, 2024
1 parent a163f9a commit 74cbd50
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 68 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: Deploy Preview

on:
pull_request:
pull_request:

permissions:
contents: read
pull-requests: write
contents: read
pull-requests: write

jobs:
Site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v25
with:
vercel-version: 32.6.1
github-comment: |
<table>
<tr>
<td><strong>Name</strong></td>
<td>IrvineHacks 2024 Site</td>
</tr>
<tr>
<td><strong>Preview</strong></td>
<td><a href='{{deploymentUrl}}'>Visit Preview</a></td>
</tr>
<tr>
<td><strong>Commit</strong></td>
<td>{{deploymentCommit}}</td>
</tr>
</table>
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ vars.VERCEL_ORG_ID}}
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}}
Studio:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'sanity')
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v25
with:
vercel-version: 32.6.1
github-comment: |
<table>
<tr>
<td><strong>Name</strong></td>
<td>Sanity Studio</td>
</tr>
<tr>
<td><strong>Preview</strong></td>
<td><a href='{{deploymentUrl}}'>Visit Preview</a></td>
</tr>
<tr>
<td><strong>Commit</strong></td>
<td>{{deploymentCommit}}</td>
</tr>
</table>
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ vars.VERCEL_ORG_ID}}
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_STUDIO}}
Site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v25
with:
vercel-version: 32.6.1
github-comment: |
<table>
<tr>
<td><strong>Name</strong></td>
<td>IrvineHacks Site</td>
</tr>
<tr>
<td><strong>Preview</strong></td>
<td><a href='{{deploymentUrl}}'>Visit Preview</a></td>
</tr>
<tr>
<td><strong>Commit</strong></td>
<td>{{deploymentCommit}}</td>
</tr>
</table>
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ vars.VERCEL_ORG_ID}}
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}}
Studio:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'sanity')
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v25
with:
vercel-version: 32.6.1
github-comment: |
<table>
<tr>
<td><strong>Name</strong></td>
<td>Sanity Studio</td>
</tr>
<tr>
<td><strong>Preview</strong></td>
<td><a href='{{deploymentUrl}}'>Visit Preview</a></td>
</tr>
<tr>
<td><strong>Commit</strong></td>
<td>{{deploymentCommit}}</td>
</tr>
</table>
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ vars.VERCEL_ORG_ID}}
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_STUDIO}}
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# irvinehacks-site-2024
# irvinehacks-site

## Overview

This monorepo uses [turborepo](https://turbo.build/repo) with [pnpm](https://pnpm.io/) as a package manager. It contains the following:

### `apps/site`

A [Next.js](https://nextjs.org/) 13 project that uses the new app router.

This app contains the IrvineHacks site.

The development server runs at `http://localhost:3000`. If this port is taken, the next available port will be used.

### `apps/api`

A [FastAPI](https://fastapi.tiangolo.com/) project.

This app contains the api for the IrvineHacks site.
Expand Down Expand Up @@ -52,6 +55,7 @@ When running commands, use `pnpm` rather than `npm`.
### Python API

1. Ensure you are in `apps/api` with

```shell
cd apps/api
```
Expand All @@ -70,6 +74,7 @@ When running commands, use `pnpm` rather than `npm`.
```shell
source .venv/bin/activate
```

and for Windows, run

```shell
Expand All @@ -91,13 +96,13 @@ This project uses Docker for testing API methods locally.

A local MongoDB application will start running at `http://localhost:8081` after running `pnpm dev`.

*Note*: Because the Python files have been copied over to the Docker container, hot reload is no longer possible. Stopping the container and rerunning `pnpm dev` is the best option.
_Note_: Because the Python files have been copied over to the Docker container, hot reload is no longer possible. Stopping the container and rerunning `pnpm dev` is the best option.

### Build

To build all apps and packages, run the following command in the project root.

*Note*: You would run this BEFORE opening a PR as a sanity check for errors.
_Note_: You would run this BEFORE opening a PR as a sanity check for errors.

```bash
pnpm build
Expand All @@ -114,6 +119,7 @@ pnpm dev
```

## Helpful VSCode Extensions

- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) for Python linting, intellisense, etc.
- [Mypy](https://marketplace.visualstudio.com/items?itemName=ms-python.mypy-type-checker) for Python type checking
- [Black](https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter) for Python code formatting
Expand All @@ -132,9 +138,8 @@ This Turborepo includes the following packages/apps:
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `tsconfig`: `tsconfig.json`s used throughout the monorepo


### Utilities

- [TypeScript](https://www.typescriptlang.org/) for static type checking
- [ESLint](https://eslint.org/) for code linting
- [Prettier](https://prettier.io) for code formatting
- [Prettier](https://prettier.io) for code formatting
2 changes: 1 addition & 1 deletion apps/site/src/app/(main)/guest-login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Guest Login | IrvineHacks 2024",
title: "Guest Login | IrvineHacks 2025",
};

export { default as default } from "./GuestLogin";
2 changes: 1 addition & 1 deletion apps/site/src/app/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import NavbarParent from "@/lib/components/Navbar/NavbarParent";
import "./globals.css";

export const metadata: Metadata = {
title: "IrvineHacks 2024",
title: "IrvineHacks 2025",
description:
"IrvineHacks is Hack at UCI's premier hackathon for collegiate students.",
};
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/app/(main)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Metadata } from "next";

export const metadata: Metadata = {
title: "Log In | IrvineHacks 2024",
title: "Log In | IrvineHacks 2025",
};

export { default as default } from "./Login";
2 changes: 1 addition & 1 deletion apps/site/src/app/(main)/portal/@applicant/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "Portal | IrvineHacks 2024",
title: "Portal | IrvineHacks 2025",
};

export { default as default } from "./ApplicantPortal";
2 changes: 1 addition & 1 deletion apps/site/src/app/(main)/resources/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getResources } from "./getResources";
export const revalidate = 60;

export const metadata: Metadata = {
title: "Resources | IrvineHacks 2024",
title: "Resources | IrvineHacks 2025",
};

export default async function Resources() {
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/app/(main)/schedule/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SchedulePage from "./sections/SchedulePage";
export const revalidate = 60;

export const metadata: Metadata = {
title: "Schedule | IrvineHacks 2024",
title: "Schedule | IrvineHacks 2025",
};

export default async function Schedule() {
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/app/admin/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Metadata } from "next/types";
import "@cloudscape-design/global-styles/index.css";

export const metadata: Metadata = {
title: "Admin | IrvineHacks 2024",
title: "Admin | IrvineHacks 2025",
};

export { default as default } from "./layout/AdminLayout";

0 comments on commit 74cbd50

Please sign in to comment.