This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import React, { useEffect, useState } from 'react'; | |
import { setCookie, hasCookie } from 'cookies-next'; | |
function Consent() { | |
const [consent, setConsent] = useState(true); | |
useEffect(() => { | |
setConsent(hasCookie('localConsent')); | |
}, []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './globals.css'; | |
import { Inter } from 'next/font/google'; | |
import Script from 'next/script'; | |
import Consent from './components/Consent'; | |
const inter = Inter({ subsets: ['latin'] }); | |
export const metadata = { | |
title: 'Create Next App', | |
description: 'Generated by create next app', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './globals.css'; | |
import { Inter } from 'next/font/google'; | |
import Script from 'next/script'; | |
import { cookies } from 'next/headers'; | |
import Consent from './components/Consent'; | |
const inter = Inter({ subsets: ['latin'] }); | |
export const metadata = { | |
title: 'Create Next App', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import React, { useEffect, useState } from 'react'; | |
import { setCookie, hasCookie } from 'cookies-next'; | |
function Consent() { | |
const [consent, setConsent] = useState(true); | |
useEffect(() => { | |
setConsent(hasCookie('localConsent')); | |
}, []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './globals.css'; | |
import { Inter } from 'next/font/google'; | |
import Script from 'next/script'; | |
const inter = Inter({ subsets: ['latin'] }); | |
export const metadata = { | |
title: 'Create Next App', | |
description: 'Generated by create next app', | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const secret = "very_secret_key"; | |
const repo = "/var/www/example.com"; | |
const http = require('http'); | |
const crypto = require('crypto'); | |
const exec = require('child_process').exec; | |
const BUILD_CMD = 'npm install && NODE_ENV=production npm run build'; | |
const PM2_CMD = 'pm2 restart <NODE APP NAME>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import localFont from 'next/font/local' | |
// Font files can be colocated inside of `app` | |
const myFont = localFont({ | |
src: './my-font.woff2', | |
display: 'swap', | |
... | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
content: [ | |
'./pages/**/*.{js,ts,jsx,tsx,mdx}', | |
'./components/**/*.{js,ts,jsx,tsx,mdx}', | |
'./app/**/*.{js,ts,jsx,tsx,mdx}', | |
], | |
theme: { | |
extend: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Roboto_Condensed, Inter, Ubuntu_Mono } from 'next/font/google'; | |
const roboto_c = Roboto_Condensed({ | |
subsets: ['latin'], | |
weight: ['400', '700'], | |
variable: '--font-roboto_c', | |
}); | |
const ubuntu_m = Ubuntu_Mono({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Roboto_Condensed, Inter, Ubuntu_Mono } from 'next/font/google'; | |
import '@/styles/globals.css'; | |
const roboto_c = Roboto_Condensed({ | |
subsets: ['latin'], | |
weight: ['400', '700'], | |
}); | |
const ubuntu_m = Ubuntu_Mono({ | |
subsets: ['latin'], | |
weight: ['400'], |