GithubHelp home page GithubHelp logo

flamingo's Introduction

Figma | Trello


Styling


Global Styles

chuck anything into styles/globals.scss

All colors etc. should be assigned in here, component styling should be limited to layout and responsiveness.


Styling per Component/Page

you will need to either use JS inside the file (i.e. styled components) or create an individual css file that must be a module. i.e. footerStyles.module.css


Bootstrap

import the file into _app.js

// pages/_app.js
import 'bootstrap/dist/css/bootstrap.css';

export default function MyApp({ Component, pageProps }) {
    return <Component {...pageProps} />;
}


Icons


React Icons has been imported into the Package and gives us access to a lot of common icons very easily. React Icons

How To

Step 1. import the icon into the file: js import {AiOutlineInstagram} from 'react-icons/ai'

step 2. use it js <AiOutlineInstagram />



Importing fonts/ StyleSheets


Put these inside pages/_document.js

class MyDocument extends Document {
  static async getInitialProps(ctx) {
    const initialProps = await Document.getInitialProps(ctx)
    return { ...initialProps }
  }

  render() {
    return (
      <Html lang="ja">
        <Head>
          <link rel="preconnect" href="https://fonts.gstatic.com" />
          <link href="https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap" rel="stylesheet" />
        </ Head>
        <body>


Environment Variables


Save these inside .env.local example=thisIsASecret and reference them inside your code i.e.

process.env.example;

DOCS - loading-environment-variables


Learn More


To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!



Deployment


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.

flamingo's People

Contributors

codercarl1 avatar manami-d 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.