Giter Club home page Giter Club logo

sd_fintech_website_revamp's Introduction

Prerequisites

  1. Node.js
  2. yarn

Key packages and dependencies

  1. Tailwind CSS
  2. Chakra UI
  3. TypeScript
  4. ReactJs
  5. Next.js

Getting Started

  1. Clone this repo locally.
  2. Install dependencies by running yarn install in the root folder of your cloned repo.
  3. Run yarn dev to launch the server locally.
  4. Open http://localhost:3000 with your browser to see the result.

Project Structure

  • /pages: only for navigation, should render a top-level component
  • /components: most of the code goes here,
    • each page should have its own folder e.g. all components for homepage should be in /components/homepage
    • /components/helpers: shared components should be put here e.g. accordion used in both recruitment and deparments page
  • /interface: declare types here, mirrors components structure
  • /data: data used in the website

(Note: Please use absolute imports instead of relative imports unless it is CSS modules)

Styling Standard

  1. Use TailwindCSS for majority of styling
    • Themes are set in tailwind.config.js.
    • You can add to this file if necessary (for more custom styling). Do this only for repeating styles not present in TailWind.
  2. Use Chakra UI for its reusable components.
  3. Use CSS Module only as last resort i.e. either some third party package needs it, etc.
    • for a component with css Module, please put it in a standalone folder e.g. a folder /Dropdown that contains /Dropdown/Dropdown.tsx and /Dropdown/Dropdown.module.css
  4. can use inline-style if it is very little and doesn't warrant creating a css module file or setting a tailwindCSS config.

Please download eslint and prettier plugin for vscode to enable style checking and auto formatting

About Responsive design

All development should be done mobile-first. Currently our design files only provide us with desktop design. We need everyone to exercise their own judgement in terms of its design and layout in mobile view (just make sure it looks good).

TailwindCSS supports mobile first design out of the box, please read more here: https://tailwindcss.com/docs/responsive-design.

Workflow

We follow a branching workflow where developers create a new branch and then make changes to it directly on the main repo.

There is no need to fork! (that's the forking workflow)

Making a branch:

  • please create a branch in this format: [yourname]/[branchname]
    • so for creating a branch called homepage, create branch named zhiwei/homepage

Before making a PR:

  • Rebase your branch onto master
  • Make sure that lint passes (run yarn lint)

vs code plugins

  • Eslint
  • TailwindCSS intelliSense
  • Prettier

Deployment

The deployment repo is a forked repo under the nusfintech github account. (Deployment from org in vercel requires payment). To deploy changes, make a PR to the forked repo main branch.

sd_fintech_website_revamp's People

Contributors

9temare avatar bryantjandra avatar btaykb avatar geraldngjx avatar jnjy avatar justinpeng13 avatar leehungtien avatar longjian99 avatar nielsencu avatar nusfintech avatar ong6 avatar rmj1405 avatar triciiaaa avatar vigonometry avatar zendenleong avatar zhermin avatar zzhiwei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.