All Projects โ†’ j0lv3r4 โ†’ jolvera.dev

j0lv3r4 / jolvera.dev

Licence: other
Personal blog built with Next.js & Rebass

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jolvera.dev

React Next Boilerplate
๐Ÿš€ A basis for reducing the configuration of your projects with nextJS, best development practices and popular libraries in the developer community.
Stars: โœญ 129 (+258.33%)
Mutual labels:  nextjs, css-in-js
Twin.macro
๐Ÿฆนโ€โ™‚๏ธ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, stitches and goober) at build time.
Stars: โœญ 5,137 (+14169.44%)
Mutual labels:  css-in-js, emotionjs
Css In Js
A thorough analysis of all the current CSS-in-JS solutions with SSR & TypeScript support for Next.js
Stars: โœญ 127 (+252.78%)
Mutual labels:  nextjs, css-in-js
Next Dark Mode
๐ŸŒ‘ Enable dark mode for Next.js apps
Stars: โœญ 133 (+269.44%)
Mutual labels:  nextjs, css-in-js
winampify
โšก A Spotify web client with an OS-looking interface and a reimplementation of the classic audio player Winamp.
Stars: โœญ 180 (+400%)
Mutual labels:  css-in-js, emotionjs
visage
Visage design system
Stars: โœญ 12 (-66.67%)
Mutual labels:  css-in-js, emotionjs
tsstyled
A small, fast, and simple CSS-in-JS solution for React.
Stars: โœญ 52 (+44.44%)
Mutual labels:  css-in-js, emotionjs
react-awesome-reveal
React components to add reveal animations using the Intersection Observer API and CSS Animations.
Stars: โœญ 564 (+1466.67%)
Mutual labels:  css-in-js, emotionjs
next-mdx
next-mdx provides a set of helper functions for fetching and rendering local MDX files. It handles relational data, supports custom components, is TypeScript ready and really fast.
Stars: โœญ 176 (+388.89%)
Mutual labels:  nextjs
nextjs-shopify-auth
Authenticate your Next.js app with Shopify.
Stars: โœญ 54 (+50%)
Mutual labels:  nextjs
now-course
Proyecto para el curso de Now.sh en Platzi
Stars: โœญ 19 (-47.22%)
Mutual labels:  nextjs
Adding-Storyblok-to-NextJS-like-a-Pro
Adding Headless CMS to NextJS like a Pro, this repository contains code examples and guide on how to integrate Storyblok, a headless CMS to NextJS.
Stars: โœญ 23 (-36.11%)
Mutual labels:  nextjs
addtobasic.github.io
CUI Portfolio like ubuntu terminal.
Stars: โœญ 18 (-50%)
Mutual labels:  nextjs
dev-cover
๐ŸŒ Get and publish your developer portfolio with just your username
Stars: โœญ 155 (+330.56%)
Mutual labels:  nextjs
hn
๐Ÿ’ป A personal Hacker News reader using Next.js
Stars: โœญ 43 (+19.44%)
Mutual labels:  nextjs
next-serverless
โ˜๏ธ next-serverless deploys your next.js application to AWS Lambda with minimal or even no configuration.
Stars: โœญ 80 (+122.22%)
Mutual labels:  nextjs
gbkel-portfolio
๐Ÿ’Ž My personal website that's mainly powered by Next.js, my own style guide and a lot of other technologies.
Stars: โœญ 12 (-66.67%)
Mutual labels:  nextjs
nextjs-ecommerce
Next.js & Keystone.js E-commerce example with TypeScript
Stars: โœญ 59 (+63.89%)
Mutual labels:  nextjs
yearn-comms
Collection of communication, announcements, tweets, newsletters, and other articles about Yearn and a hosted blog for all translation contributors.
Stars: โœญ 16 (-55.56%)
Mutual labels:  nextjs
airbnb-ish
Airbnb UI clone using Next.js + styled-components.
Stars: โœญ 122 (+238.89%)
Mutual labels:  nextjs

This project was bootstrapped with Create Next App.

Find the most recent version of this guide at here. And check out Next.js repo for the most up-to-date info.

Table of Contents

FOSSA Status

Questions? Feedback?

Check out Next.js FAQ & docs or let us know your feedback.

Folder Structure

After creating an app, it should look something like:

.
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ components
โ”‚   โ”œโ”€โ”€ head.js
โ”‚   โ””โ”€โ”€ nav.js
โ”œโ”€โ”€ next.config.js
โ”œโ”€โ”€ node_modules
โ”‚   โ”œโ”€โ”€ [...]
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ pages
โ”‚   โ””โ”€โ”€ index.js
โ”œโ”€โ”€ static
โ”‚   โ””โ”€โ”€ favicon.ico
โ””โ”€โ”€ yarn.lock

Routing in Next.js is based on the file system, so ./pages/index.js maps to the / route and ./pages/about.js would map to /about.

The ./static directory maps to /static in the next server, so you can put all your other static resources like images or compiled CSS in there.

Out of the box, we get:

  • Automatic transpilation and bundling (with webpack and babel)
  • Hot code reloading
  • Server rendering and indexing of ./pages
  • Static file serving. ./static/ is mapped to /static/

Read more about Next's Routing

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any errors in the console.

npm run build

Builds the app for production to the .next folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

npm run start

Starts the application in production mode. The application should be compiled with `next build` first.

See the section in Next docs about deployment for more information.

Using CSS

styled-jsx is bundled with next to provide support for isolated scoped CSS. The aim is to support "shadow CSS" resembling of Web Components, which unfortunately do not support server-rendering and are JS-only.

export default () => (
  <div>
    Hello world
    <p>scoped!</p>
    <style jsx>{`
      p {
        color: blue;
      }
      div {
        background: red;
      }
      @media (max-width: 600px) {
        div {
          background: blue;
        }
      }
    `}</style>
  </div>
)

Read more about Next's CSS features.

Adding Components

We recommend keeping React components in ./components and they should look like:

./components/simple.js

const Simple = () => <div>Simple Component</div>

export default Simple // don't forget to export default!

./components/complex.js

import { Component } from 'react'

class Complex extends Component {
  state = {
    text: 'World'
  }

  render() {
    const { text } = this.state
    return <div>Hello {text}</div>
  }
}

export default Complex // don't forget to export default!

Fetching Data

You can fetch data in pages components using getInitialProps like this:

./pages/stars.js

const Page = props => <div>Next stars: {props.stars}</div>

Page.getInitialProps = async ({ req }) => {
  const res = await fetch('https://api.github.com/repos/zeit/next.js')
  const json = await res.json()
  const stars = json.stargazers_count
  return { stars }
}

export default Page

For the initial page load, getInitialProps will execute on the server only. getInitialProps will only be executed on the client when navigating to a different route via the Link component or using the routing APIs.

Note: getInitialProps can not be used in children components. Only in pages.

Read more about fetching data and the component lifecycle

Custom Server

Want to start a new app with a custom server? Run create-next-app --example customer-server custom-app

Typically you start your next server with next start. It's possible, however, to start a server 100% programmatically in order to customize routes, use route patterns, etc

This example makes /a resolve to ./pages/b, and /b resolve to ./pages/a:

const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')

const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()

app.prepare().then(() => {
  createServer((req, res) => {
    // Be sure to pass `true` as the second argument to `url.parse`.
    // This tells it to parse the query portion of the URL.
    const parsedUrl = parse(req.url, true)
    const { pathname, query } = parsedUrl

    if (pathname === '/a') {
      app.render(req, res, '/b', query)
    } else if (pathname === '/b') {
      app.render(req, res, '/a', query)
    } else {
      handle(req, res, parsedUrl)
    }
  }).listen(3000, err => {
    if (err) throw err
    console.log('> Ready on http://localhost:3000')
  })
})

Then, change your start script to NODE_ENV=production node server.js.

Read more about custom server and routing

Syntax Highlighting

To configure the syntax highlighting in your favorite text editor, head to the relevant Babel documentation page and follow the instructions. Some of the most popular editors are covered.

Deploy to Now

now offers a zero-configuration single-command deployment.

  1. Install the now command-line tool either via the recommended desktop tool or via node with npm install -g now.

  2. Run now from your project directory. You will see a now.sh URL in your output like this:

    > Ready! https://your-project-dirname-tpspyhtdtk.now.sh (copied to clipboard)
    

    Paste that URL into your browser when the build is complete, and you will see your deployed app.

You can find more details about now here.

Something Missing?

If you have ideas for how we could improve this readme or the project in general, let us know or contribute some!

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].