Giter Club home page Giter Club logo

hackathon2-team3's Introduction

This is a Next.js project bootstrapped with create-next-app.

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd my-project

Install dependencies

  npm install
  # or
  yarn

Start the dev server

  npm run dev
  # or
  yarn dev

Open http://localhost:3001 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3001/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Tech Stack

Client: React, Next, TailwindCSS

Server: Node, Express

Dependencies

Dev Dependencies

Optimizations

Pass main layout props

  Page.mainLayoutProps = MainLayoutProps

The following table simplifies the main layout props

Prop Type Description required default value
title string Required. Your Page title true Talents Valley
pageDescription string Your Page Description false Talents Valley platform
withoutNavbar boolean show or hide the navbar false false

Use nested layouts

  Page.getNestedLayout = (page) => {
    return <NestedLayout>{page}</NestedLayout>;
  }

When using any of these pages features, you should use the following type for that specific page:

import { NextPageWithLayout } from "types";

const Login: NextPageWithLayout = () => {
    return (
      Login page content....
    )
}

NoSsr component

To dynamically load a component on the client side, you can use the NoSsr component to disable server-rendering. This is useful if an external dependency or component relies on browser APIs like window.

import { NoSsr } from "components";

 <NoSsr>
  // children will be rendered on the client side only
 </NoSsr>

Color Reference

You can check the default theme within tailwind.config.js file

Color Hex
blue-DEFAULT #0044FF #0044FF
blue-light #4375FF #4375FF
blue-dark #002a9d #002a9d
gray-DEFAULT #00000029 #00000029
gray-dark #707070 #707070
gray-light #F3F4F6 #F3F4F6

๐Ÿš€ About Me

I'm a front-end developer... wait for more details later....

hackathon2-team3's People

Contributors

mahmoudksultan avatar mohammedalzayyan avatar maha-ahmad1 avatar ghadeerabed avatar

Watchers

 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.