All Projects → ixkaito → nextsss

ixkaito / nextsss

Licence: other
Next.js static site starter including full setup for TypeScript, Tailwind CSS, Google Analytics, Next SEO, etc.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to nextsss

React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (+1253.75%)
Mutual labels:  postcss, prettier
Fabium
+100 for productivity
Stars: ✭ 108 (+35%)
Mutual labels:  postcss, autoprefixer
Webpack Es6 Sass Setup
A basic setup for Webpack with ES6, Babel, Sass and stylelint
Stars: ✭ 63 (-21.25%)
Mutual labels:  postcss, autoprefixer
React Ssr Setup
React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties
Stars: ✭ 678 (+747.5%)
Mutual labels:  postcss, prettier
Vanilla Back To Top
Simple and smooth Back To Top button
Stars: ✭ 179 (+123.75%)
Mutual labels:  postcss, autoprefixer
Turretcss
Turret is a styles and browser behaviour normalisation framework for rapid development of responsive and accessible websites.
Stars: ✭ 729 (+811.25%)
Mutual labels:  postcss, autoprefixer
React Boilerplate
This project is deprecated. Please use CRA instead.
Stars: ✭ 88 (+10%)
Mutual labels:  postcss, prettier
webpack-typescript-react
Webpack 5 boilerplate with support of most common loaders and modules (see tags and description)
Stars: ✭ 185 (+131.25%)
Mutual labels:  postcss, prettier
Deventy
A minimal 11ty starting point for building static websites with modern tools.
Stars: ✭ 157 (+96.25%)
Mutual labels:  postcss, autoprefixer
Fast
Develop, build, deploy, redeploy, and teardown frontend projects fast.
Stars: ✭ 126 (+57.5%)
Mutual labels:  postcss, autoprefixer
Gulp Autoprefixer
Prefix CSS
Stars: ✭ 676 (+745%)
Mutual labels:  postcss, autoprefixer
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (-58.75%)
Mutual labels:  postcss, prettier
Next.js Typescript Starter Kit
🌳 [email protected], Styled-jsx, TypeScript, Jest, SEO
Stars: ✭ 342 (+327.5%)
Mutual labels:  postcss, google-analytics
Stencil Postcss
Autoprefixer plugin for Stencil
Stars: ✭ 19 (-76.25%)
Mutual labels:  postcss, autoprefixer
ying-template
这是一个基于 `webpack@^5.27.2` + `typescript@^4.2.3` + `@babel/core@^7.2.2` + `jest@^26.6.3` + `eslint@^7.22.0` 的多页面脚手架。
Stars: ✭ 125 (+56.25%)
Mutual labels:  postcss, prettier
Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (-18.75%)
Mutual labels:  postcss, autoprefixer
webpack-html-boilerplate
Boilerplate for building html templates
Stars: ✭ 17 (-78.75%)
Mutual labels:  postcss, prettier
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (-23.75%)
Mutual labels:  postcss, prettier
Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (+53.75%)
Mutual labels:  postcss, autoprefixer
Next Starter Tailwind
Next.js starter styled with Tailwind CSS
Stars: ✭ 225 (+181.25%)
Mutual labels:  postcss, autoprefixer

NextSSS Logo

NextSSS is a Next.js starter template especially for static site including full setup for TypeScript, Tailwind CSS, Google Analytics, Next SEO, active link component, etc.

How to Use

Execute create-next-app with npm or Yarn to bootstrap the template:

npx create-next-app --example https://github.com/ixkaito/nextsss

or

yarn create next-app --example https://github.com/ixkaito/nextsss

Google Analytics

Edit GA_TRACKING_ID in /lib/gtag.ts.

Example:

export const GA_TRACKING_ID = 'G-XXXXXXXXXX'

Active className on a link

Example:

import Link from '../components/ActiveLink'

const Nav: React.FC = () => {
  return (
    <nav>
      <Link href="/">
        <a>Home</a>
      </Link>
      <Link href="/about/">
        <a>About</a>
      </Link>
    </nav>
  )
}

export default Nav

This will dynamically add the active class name to each links. You can also change the activeClassName like this:

import Link from '../components/ActiveLink'

const Nav: React.FC = () => {
  return (
    <nav>
      <Link href="/" activeClassName="current">
        <a>Home</a>
      </Link>
      <Link href="/about/" activeClassName="current">
        <a>About</a>
      </Link>
    </nav>
  )
}

export default Nav

Image Component

You can use the same syntax of next/image with static export.

Example:

import Image from '../components/Image'
import example1 from '../public/example1.png'

const Home: React.FC = () => {
  return (
    <Image src={example} alt="Example 1" />
    <Image src="/example2.png" width={600} height={400} alt="Example 2" />
  )
}

export default Home

Note: If you want to deploy the project to Vercel, remove the custom loader from next.config.js and components/Image.tsx.

next.config.js

 ...
-  images: {
-    loader: 'custom',
-    path: '/',
-  },
 ...

components/Image.tsx

 ...
-const customLoader = ({ src }: { src: string }) => {
-  return src
-}

 const Image = (props: ImageProps) => {
-  return <NextImage {...props} loader={customLoader} />
+  return <NextImage {...props} />
 }
 ...

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!

License

MIT

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].