Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mehmet NY mehmetnyarar

🏠
Working from home
View GitHub Profile
@mehmetnyarar
mehmetnyarar / next-routes.md
Last active Jan 22, 2021
NextJS with Custom Routes (forked from [next-routes](https://github.com/fridays/next-routes))
View next-routes.md

NextJS with Custom Routes (next-routes.tsx)

<project_root>/src/routes/types.ts:

export interface IRoute {
  name: string
  page: string
  pattern: string
}
@mehmetnyarar
mehmetnyarar / fontawesome-to-array.js
Created Jul 26, 2018
Creates a JSON file for fontawesome icons.
View fontawesome-to-array.js
/**
* Creates a JSON file for fontawesome icons. Results is an array of following object shape:
* {
* id: "<library>-<iconName>",
* name: "<iconName>",
* label: "<iconLabel>",
* tags: ["tags", "for", "search"],
* css: "<css-class>"
* }
*
@mehmetnyarar
mehmetnyarar / fontawesome-scss-in-nextjs.md
Created Jul 20, 2018
Loading FontAwesome with SCSS in NextJS
View fontawesome-scss-in-nextjs.md

Loading FontAwesome with SCSS in NextJS

Install Plugins

Install these two plugins:

Edit Configuration File