Skip to content

Instantly share code, notes, and snippets.

View raflyfahrezi's full-sized avatar
🔥

Farhan Rafly Fahrezi S raflyfahrezi

🔥
View GitHub Profile
@raflyfahrezi
raflyfahrezi / globals.css
Last active December 28, 2020 07:32
Custom Scroll CSS
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
@raflyfahrezi
raflyfahrezi / date.js
Created December 18, 2020 02:48
Javascript Date Full Month
const dateFormat = paramsDate => {
const month = new Array()
let temp = paramsDate
month[0] = 'January'
month[1] = 'February'
month[2] = 'March'
month[3] = 'April'
month[4] = 'May'
month[5] = 'June'
{
"presets": ["next/babel"],
"plugins": [["styled-components", {
"ssr" : true
}]]
}
@raflyfahrezi
raflyfahrezi / _document.js
Last active December 28, 2020 07:33
_document.js configuration when using Styled Components in Next.js
import Document from 'next/document'
import { ServerStyleSheet } from 'styled-components'
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const sheet = new ServerStyleSheet()
const originalRenderPage = ctx.renderPage
try {
ctx.renderPage = () =>