Skip to content

Instantly share code, notes, and snippets.

View mehmetnyarar's full-sized avatar

mehmetnyarar mehmetnyarar

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

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 July 26, 2018 20:36
Creates a JSON file for fontawesome icons.
/**
* 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 July 20, 2018 07:19
Loading FontAwesome with SCSS in NextJS

Loading FontAwesome with SCSS in NextJS

Install Plugins

Install these two plugins:

Edit Configuration File