Coder Social home page Coder Social logo

skydiver / nextjs-semantic Goto Github PK

View Code? Open in Web Editor NEW
68.0 3.0 27.0 6.89 MB

Next.js + Fomantic-UI + Styled Components

Home Page: https://next-semantic-starter.now.sh/

License: MIT License

JavaScript 60.75% Less 39.25%
nextjs nextjs-starter semantic-ui styled-components react reactjs starter starter-template fomantic-ui

nextjs-semantic's Introduction

Logo

Notice

Since version 2.0.0 (of this package), Semantic UI was replaced by Fomantic-UI.

Current Versions

  • Next.js 12
  • React 17
  • Fomantic-UI 2.8
  • Styled Components 5.3

Setup

  1. clone repo
  2. npm install
  3. npm run semantic:build
  4. npm run dev

Semantic UI React

Semantic UI

  • you can remove components to reduce css size on semantic.json
  • .semantic folder includes source file, from here it's possible to customize default theme
  • change default Google font (Lato) on .semantic/src/themes/default/globals/site.variables
  • run npm run semantic:watch to watch for changes while customizing theme

Why switching to Fomantic-UI?

Here are some reasons for the change:

  • Semantic UI requires Node 10
  • Fomantic-UI is actively developed
  • Adds more components
  • Fixes several security vulnerabilities

If you still want to use Semantic UI, get release 1.1.0

Deploy with Vercel

Deploy with Vercel

nextjs-semantic's People

Contributors

dependabot[bot] avatar skydiver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nextjs-semantic's Issues

Change Font

Hi, I'm using your boilerplate to build my own project and I'm stuck on changing the font name, could you help me!
image

Icons not working

Brand new installation and one that is about 2 weeks old have issues displaying icons.

Followed README

  1. clone repo
  2. npm install
  3. npm run semantic:build
  4. npm run dev

Then just add
import { Icon } from "semantic-ui-react";

Then on the return

<Icon name="users" />

Icon does not show. I tried with many other icons.

Icon not loaded

Hi,

After update version my icon (icons.woff2) not loaded.

Before
{
"name": "nextjs-semantic",
"description": "Next.js + Semantic UI + Styled Components",
"version": "2.0.0",
"author": "Martín M.",
"license": "MIT",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"now-build": "npm run semantic:build && next build",
"semantic:build": "cd .semantic && gulp build-css build-assets",
"semantic:watch": "cd .semantic && npm run semantic:build && gulp watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"dotenv": "^8.2.0",
"es6-promise": "^4.2.8",
"isomorphic-fetch": "^2.2.1",
"js-sha256": "^0.9.0",
"next": "^9.0.3",
"next-compose-plugins": "^2.2.0",
"react": "^16.8.6",
"react-datepicker": "^2.10.1",
"react-dom": "^16.8.6",
"react-number-format": "^4.3.1",
"semantic-ui-react": "^0.87.3",
"styled-components": "^4.3.2"
},
"devDependencies": {
"babel-eslint": "^10.0.2",
"eslint": "^6.1.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-config-prettier": "^6.0.0",
"eslint-config-wesbos": "0.0.19",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^1.6.1",
"file-loader": "^4.1.0",
"fomantic-ui": "^2.7.7",
"prettier": "^1.18.2",
"url-loader": "^2.1.0"
}
}

After
{
"name": "nextjs-semantic",
"description": "Next.js + Semantic UI + Styled Components",
"version": "2.0.0",
"author": "Martín M.",
"license": "MIT",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"now-build": "npm run semantic:build && next build",
"semantic:build": "cd .semantic && gulp build-css build-assets",
"semantic:watch": "cd .semantic && npm run semantic:build && gulp watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"dotenv": "^8.2.0",
"es6-promise": "^4.2.8",
"isomorphic-fetch": "^2.2.1",
"js-sha256": "^0.9.0",
"next": "^9.1.6",
"next-compose-plugins": "^2.2.0",
"react": "^16.12.0",
"react-datepicker": "^2.10.1",
"react-dom": "^16.12.0",
"react-number-format": "^4.3.1",
"semantic-ui-react": "^0.88.2",
"styled-components": "^4.4.1"
},
"devDependencies": {
"babel-eslint": "^10.0.3",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.9.0",
"eslint-config-wesbos": "0.0.19",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^2.3.0",
"file-loader": "^5.0.2",
"fomantic-ui": "^2.8.3",
"prettier": "^1.19.1",
"url-loader": "^3.0.0"
}
}

Thank you

How do you add global fonts to this

It seems when I use styled components (first time using it) it uses the BOLD type of fonts instead of regular.

  const heroText = {
    marginTop: "60px",
    fontSize: "70pt",
    color: "white",
    fontFamily: "Montserrat"
  };

Same as your example

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.