Skip to content

Instantly share code, notes, and snippets.

View Showrin's full-sized avatar
🎯
Focusing

Showrin Barua Showrin

🎯
Focusing
View GitHub Profile
@Showrin
Showrin / MetaWrapper.jsx
Last active April 19, 2023 05:17
A component that implements basic SEO to any NextJS app
import Head from 'next/head';
import PropTypes from 'prop-types';
const MetaWrapper = (props) => {
const {
title,
description,
type,
imageUrl,
contentUrl,
let printHello = true;
printHello && console.log("Hello");
printHello = false;
printHello && console.log("Hello");
@Showrin
Showrin / README.md
Created December 4, 2020 05:48 — forked from justincy/README.md
Configure Storybook to work with Next.js, TypeScript, and CSS Modules

In addition to the Storybook for React setup, you'll also need to install these packages:

npm i -D @babel/core babel-loader css-loader style-loader
@Showrin
Showrin / reset.css
Created December 3, 2020 16:08 — forked from DavidWells/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,