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
<div class="hello-world"> | |
<h1>H</h1> | |
<h1>E</h1> | |
<h1>L</h1> | |
<h1>L</h1> | |
<h1>O</h1> | |
<br/> | |
<h2>W</h2> | |
<h2>O</h2> | |
<h2>R</h2> |
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
body { | |
background-color: black; | |
margin: 5rem 4rem; | |
text-align: center; | |
font-family: 'Poppins', 'sans-serif'; | |
} | |
h1, h2 { | |
margin: 0; | |
padding: 0; | |
color: white; |
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
body { | |
font-family: Arial, sans-serif; | |
background-color: white; | |
} | |
.centering-element{ | |
margin: 0; | |
min-height: 100vh; | |
height: 100%; | |
display: grid; | |
justify-content: center; |
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
<section> | |
<div class="container"> | |
<div class="row"> | |
<div class="mx-auto"> | |
<div class="col-lg-12 position-relative" style="overflow:visible !important;"> | |
<div class="centering-element"> | |
<div class="w-75"> | |
<h1 class="display-1 heading-big heading-big-square text-left" style="word-wrap:visible">CSS<br/>is<br/>Awesome</h1> | |
</div> | |
</div> |
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
module.exports = { | |
serverRuntimeConfig: { | |
// Will only be available on the server side | |
mySecret: 'secret', | |
secretKey: 'secretKey', | |
jwtToken: 'JwtToken', | |
}, | |
publicRuntimeConfig: { | |
// Will be available on both server and client | |
// Pass through env variables |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Your Website Title</title> | |
<meta name="description" content="Your Website Description"> | |
</head> | |
<body> | |
<header class="header"> |
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
generator client { | |
provider = "prisma-client-js" | |
} | |
datasource db { | |
provider = "postgresql" | |
url = env("DATABASE_URL") | |
} | |
model Job { |
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
/* next.js head */ | |
import Head from 'next/head'; | |
/* components */ | |
import Header from '../header/Header'; | |
import Footer from '../footer/Footer'; | |
export default function Layout({ | |
children, | |
title = 'Next.js with JWT Authentication | A boilerplate JWT Authentication and Next.js from dyarfi.github.io', |
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
function FormLogin({ props }) { | |
const { | |
onSubmitHandler, | |
onChangeHandler, | |
stateFormData, | |
stateFormError, | |
stateFormMessage, | |
} = props; | |
return ( | |
<form className="form-login card" method="POST" onSubmit={onSubmitHandler}> |