manami-d / flamingo

Home Page:flamingo-phi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

flamingo-phi.vercel.app

License:MIT License


Languages

Language:JavaScript 90.2%Language:SCSS 5.9%Language:CSS 3.9%