Skip to content

A site dedicated to our amazing 2021 seniors. You all will be missed dearly ❤️

Notifications You must be signed in to change notification settings

UCLA-Creative-Labs/tears

Repository files navigation

tears

Netlify Status

Welcome to the 2020 - 2021 Creative Labs Dedications (deds)! Deds is a yearly ritual at CL where we write to all our seniors about why we love them. This repository is a website that encapsulates our love to our amazing seniors.

We will miss you all 😢

Getting Started

This project is built with Next.js, Typescript, and Sass. We prefer yarn as our package manager.

The basic commands to get this repository and start are:

$ git clone https://github.com/BryanPan342/tears.git
$ cd tears
$ yarn install
$ yarn dev

Organization

Below is the organization for this repository.

root
├── components
│   ├── Button.tsx
│   ├── Envelope.tsx
│   ├── Layout.tsx
│   └── RecordPlayer.tsx
├── pages
│   ├── _app.tsx
│   ├── [person].tsx
|   └── index.tsx
├── public
│   ├── songs
│   │   ├── [person]
│   │   │   ├── music.mp3
│   │   │   └── vinyl-image.png
│   │   └── ...
├── utils
│   ├── node
│   │   ├── index.ts
│   │   └── node.ts
│   └── ...
├── styles
│   ├── globals.scss
│   └── ...
└── ...

Components

All reusuable components go inside the components/ directory.

Notable components:

  • Layout.tsx: The Layout component houses the layout for each page. Every page must use the Layout component
  • RecordPlayer: The RecordPlayer component is used on every screen and features the playing music and positioning itself on the webpage

Pages

All pages are registered in the pages/ directory.

Notable pages:

  • [person].tsx: This component is a dynamic route that creates a page for each senior (i.e. /arjun)
  • index.tsx: This component is the root route (i.e. /)

Public

All assets are registered in the public/ directory.

Notable assets:

  • songs/: The songs for each senior is organized by the first name (i.e. arjun/)
    • music.mp3: The song dedicated to each senior
    • vinyl-image.png: The album cover for the song

Utils

All utility functions are registered in the utils/ directory.

Notable utilities:

  • node/: This subdirectory is necessary to get an import of ../utils to function properly. If a page calls a node.js function, it will crash. Therefore, we need to separate all the node.js calls into a different section.
  • node/notion.ts: This file contains all our Notion API calls to get the data to populate our pages

About

A site dedicated to our amazing 2021 seniors. You all will be missed dearly ❤️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published