initial commit
This commit is contained in:
116
styles/Home.module.css
Normal file
116
styles/Home.module.css
Normal file
@@ -0,0 +1,116 @@
|
||||
.container {
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
.main {
|
||||
min-height: 100vh;
|
||||
padding: 4rem 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
padding: 2rem 0;
|
||||
border-top: 1px solid #eaeaea;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.title a {
|
||||
color: #0070f3;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.title a:hover,
|
||||
.title a:focus,
|
||||
.title a:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
line-height: 1.15;
|
||||
font-size: 4rem;
|
||||
}
|
||||
|
||||
.title,
|
||||
.description {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 4rem 0;
|
||||
line-height: 1.5;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.code {
|
||||
background: #fafafa;
|
||||
border-radius: 5px;
|
||||
padding: 0.75rem;
|
||||
font-size: 1.1rem;
|
||||
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
||||
Bitstream Vera Sans Mono, Courier New, monospace;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 1rem;
|
||||
padding: 1.5rem;
|
||||
text-align: left;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
border: 1px solid #eaeaea;
|
||||
border-radius: 10px;
|
||||
transition: color 0.15s ease, border-color 0.15s ease;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.card:hover,
|
||||
.card:focus,
|
||||
.card:active {
|
||||
color: #0070f3;
|
||||
border-color: #0070f3;
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.card p {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 1em;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.grid {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
282
styles/globals.css
Normal file
282
styles/globals.css
Normal file
@@ -0,0 +1,282 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400&display=swap');
|
||||
|
||||
:root {
|
||||
--color-bg: #eef0f1;
|
||||
--color-text: #08090a;
|
||||
--color-blue: #3b49df;
|
||||
--color-red: #df3b3b;
|
||||
--color-green: #3bdf72;
|
||||
--color-gray: #b5bdc4;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: 'Noto Sans', sans-serif;
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
main {
|
||||
padding: 1rem 10vw;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
input {
|
||||
display: inline-block;
|
||||
outline: none;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
width: 100%;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: none;
|
||||
padding: 1rem 0;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
code {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
|
||||
.navbar {
|
||||
height: 70px;
|
||||
width: 100%;
|
||||
background: white;
|
||||
color: var(--colors-text);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
padding: 0 10vw;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid var(--color-gray);
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.navbar ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.navbar img {
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.navbar li {
|
||||
border-radius: 50%;
|
||||
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.btn,
|
||||
button {
|
||||
background-color: var(--color-gray);
|
||||
border: none;
|
||||
color: var(--color-text);
|
||||
padding: 1rem 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
font-family: 'Noto Sans', sans-serif;
|
||||
font-weight: bold;
|
||||
border-radius: 0.25rem;
|
||||
cursor: pointer;
|
||||
margin: 0.5rem 1rem 0.5rem 0;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
button {
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
button:hover {
|
||||
filter: brightness(90%);
|
||||
}
|
||||
|
||||
button:disabled,
|
||||
button[disabled] {
|
||||
filter: brightness(80%);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
button.btn-blue {
|
||||
background-color: var(--color-blue);
|
||||
color: white;
|
||||
}
|
||||
|
||||
button.btn-red {
|
||||
background-color: var(--color-red);
|
||||
color: white;
|
||||
}
|
||||
|
||||
button.btn-green {
|
||||
background-color: var(--color-green);
|
||||
color: white;
|
||||
}
|
||||
|
||||
button.btn-google {
|
||||
background-color: white;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.btn-google img {
|
||||
width: 30px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
button.btn-logo {
|
||||
background-color: var(--color-text);
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
font-size: 1.5rem;
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
|
||||
.card {
|
||||
padding: 2rem;
|
||||
margin: 1rem 0;
|
||||
background-color: white;
|
||||
border: 1px solid var(--color-gray);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.card footer {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.card-img-center {
|
||||
width: 20%;
|
||||
display: block;
|
||||
margin: auto;
|
||||
border-radius: 50%;
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
.card-info {
|
||||
color: white;
|
||||
background: var(--color-blue);
|
||||
}
|
||||
|
||||
/* Loader */
|
||||
|
||||
.loader {
|
||||
border: 10px solid var(--color-bg);
|
||||
border-top: 10px solid var(--color-blue);
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
animation: spin 2s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* File uploads */
|
||||
|
||||
input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.upload-snippet {
|
||||
width: 75%;
|
||||
margin-left: auto;
|
||||
background: white;
|
||||
padding: 5px;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
|
||||
.push-left {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.text-danger {
|
||||
font-weight: bold;
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
.text-success {
|
||||
font-weight: bold;
|
||||
color: var(--color-green);
|
||||
}
|
||||
|
||||
.text-info {
|
||||
font-weight: bold;
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.box-center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user