Updated to Next.js 13
This commit is contained in:
126
styles/Blog.module.css
Normal file
126
styles/Blog.module.css
Normal file
@@ -0,0 +1,126 @@
|
||||
.blog h1 {
|
||||
margin-bottom: 0.7rem;
|
||||
}
|
||||
|
||||
.blog__hero {
|
||||
max-height: 300px;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.blog__hero img {
|
||||
margin-bottom: 0;
|
||||
object-fit: cover;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
.blog__info {
|
||||
padding: 1.5rem 1.25rem;
|
||||
width: 100%;
|
||||
max-width: 768px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.blog__info h1 {
|
||||
margin-bottom: 0.66rem;
|
||||
}
|
||||
.blog__info h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.blog__body {
|
||||
width: 100%;
|
||||
padding: 0 1.25rem;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.blog__body a {
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
.blog__body:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.blog__body h1 h2 h3 h4 h5 h6 p {
|
||||
font-weight: normal;
|
||||
}
|
||||
.blog__body p {
|
||||
color: inherit;
|
||||
}
|
||||
.blog__body ul {
|
||||
list-style: initial;
|
||||
}
|
||||
.blog__body ul ol {
|
||||
margin-left: 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
padding-left: 1.45rem;
|
||||
}
|
||||
|
||||
.blog__footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1.5rem 1.25rem;
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.blog__footer h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.blog__footer a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.blog__footer a svg {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.blog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.blog__body {
|
||||
max-width: 800px;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
.blog__body span {
|
||||
width: 100%;
|
||||
margin: 1.5rem auto;
|
||||
}
|
||||
.blog__body ul ol {
|
||||
margin-left: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.blog__hero {
|
||||
min-height: 600px;
|
||||
height: 75vh;
|
||||
}
|
||||
.blog__info {
|
||||
text-align: center;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
.blog__info h1 {
|
||||
max-width: 500px;
|
||||
margin: 0 auto 0.66rem auto;
|
||||
}
|
||||
.blog__footer {
|
||||
padding: 2.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1440px) {
|
||||
.blog__hero {
|
||||
height: 70vh;
|
||||
}
|
||||
.blog__info {
|
||||
padding: 3rem 0;
|
||||
}
|
||||
.blog__footer {
|
||||
padding: 2rem 2rem 3rem 2rem;
|
||||
}
|
||||
}
|
||||
88
styles/BlogList.module.css
Normal file
88
styles/BlogList.module.css
Normal file
@@ -0,0 +1,88 @@
|
||||
.blog__link {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.blog__link:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
li .blog__link:hover div.hero_image img {
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
li .blog__link:hover .blog__info h2,
|
||||
li .blog__link:hover .blog__info h3,
|
||||
li .blog__link:hover .blog__info p {
|
||||
transform: translateX(10px);
|
||||
transition: transform 0.5s ease-out;
|
||||
}
|
||||
.hero_image {
|
||||
width: 100%;
|
||||
height: 33vh;
|
||||
overflow: hidden;
|
||||
background-color: #000;
|
||||
}
|
||||
.hero_image img {
|
||||
object-fit: cover;
|
||||
opacity: 1;
|
||||
min-height: 100%;
|
||||
width: 100%;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
.blog__info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 1.5rem 1.25rem;
|
||||
transform: translateX(0px);
|
||||
transition: transform 0.3s ease-in;
|
||||
border-bottom: 1px solid #ebebeb;
|
||||
}
|
||||
.blog__info h2,
|
||||
.blog__info h3,
|
||||
.blog__info p {
|
||||
transform: translateX(0px);
|
||||
transition: transform 0.5s ease-out;
|
||||
}
|
||||
li .blog__link {
|
||||
opacity: inherit;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
min-height: 38vh;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.blog__info h2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.blog__info h3 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.blog__info p {
|
||||
max-width: 900px;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
li .blog__link {
|
||||
min-height: 250px;
|
||||
height: 33.333vh;
|
||||
flex-direction: row;
|
||||
}
|
||||
.hero_image {
|
||||
height: 100%;
|
||||
}
|
||||
.hero_image img {
|
||||
min-width: 100%;
|
||||
height: 100%;
|
||||
width: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
.blog__info {
|
||||
min-width: 70%;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1280px) {
|
||||
.blog__info {
|
||||
padding: 3rem;
|
||||
}
|
||||
.blog__info h3 {
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
}
|
||||
32
styles/Header.module.css
Normal file
32
styles/Header.module.css
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
.nav {
|
||||
padding: 1.5rem 1.25rem;
|
||||
border-bottom: 1px solid #ebebeb;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.nav h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.nav h1:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.header {
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.nav {
|
||||
padding: 2rem;
|
||||
width: 30vw;
|
||||
height: 100%;
|
||||
border-right: 1px solid #ebebeb;
|
||||
border-bottom: none;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
16
styles/Info.module.css
Normal file
16
styles/Info.module.css
Normal file
@@ -0,0 +1,16 @@
|
||||
.info_blurb {
|
||||
max-width: 800px;
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.info_blurb {
|
||||
padding: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1440px) {
|
||||
.info_blurb {
|
||||
padding: 3rem;
|
||||
}
|
||||
}
|
||||
22
styles/Layout.module.css
Normal file
22
styles/Layout.module.css
Normal file
@@ -0,0 +1,22 @@
|
||||
.layout {
|
||||
overflow-x: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.layout .info_page {
|
||||
color: #ebebeb;
|
||||
}
|
||||
.content {
|
||||
flex-grow: 1;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.layout {
|
||||
display: block;
|
||||
}
|
||||
.content {
|
||||
flex-grow: none;
|
||||
width: 70vw;
|
||||
margin-left: 30vw;
|
||||
}
|
||||
}
|
||||
204
styles/globals.css
Normal file
204
styles/globals.css
Normal file
@@ -0,0 +1,204 @@
|
||||
* {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
a:hover {
|
||||
transition: opacity 0.2s ease;
|
||||
opacity: 0.5;
|
||||
text-decoration-color: inherit;
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
list-style-position: outside;
|
||||
list-style-image: none;
|
||||
}
|
||||
ol {
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
list-style-position: outside;
|
||||
list-style-image: none;
|
||||
}
|
||||
ul, ol, p {
|
||||
margin-bottom: 1.45rem;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
img, figure, table, fieldset {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-top: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
margin-bottom: 1.45rem;
|
||||
}
|
||||
pre {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.45rem;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.42;
|
||||
background: hsla(0, 0%, 0%, 0.04);
|
||||
border-radius: 3px;
|
||||
overflow: auto;
|
||||
word-wrap: normal;
|
||||
padding: 1.45rem;
|
||||
}
|
||||
table {
|
||||
font-size: 1rem;
|
||||
line-height: 1.45rem;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
blockquote {
|
||||
margin-left: 1.45rem;
|
||||
margin-right: 1.45rem;
|
||||
margin-top: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
margin-bottom: 1.45rem;
|
||||
}
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
li {
|
||||
margin-bottom: calc(1.45rem / 2);
|
||||
}
|
||||
ol li {
|
||||
padding-left: 0;
|
||||
}
|
||||
ul li {
|
||||
padding-left: 0;
|
||||
}
|
||||
li > ol {
|
||||
margin-left: 1.45rem;
|
||||
margin-bottom: calc(1.45rem / 2);
|
||||
margin-top: calc(1.45rem / 2);
|
||||
}
|
||||
li > ul {
|
||||
margin-left: 1.45rem;
|
||||
margin-bottom: calc(1.45rem / 2);
|
||||
margin-top: calc(1.45rem / 2);
|
||||
}
|
||||
blockquote *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
li *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
p *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
li > p {
|
||||
margin-bottom: calc(1.45rem / 2);
|
||||
}
|
||||
code {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.45rem;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-top: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
margin-bottom: 1.45rem;
|
||||
color: inherit;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
letter-spacing: -1px;
|
||||
line-height: 1.1875;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.7rem;
|
||||
letter-spacing: -0.75px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.2rem;
|
||||
letter-spacing: -0.5px;
|
||||
line-height: 1.1875;
|
||||
color: #a0a0a0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1.2rem;
|
||||
letter-spacing: -0.5px;
|
||||
line-height: 1.5;
|
||||
color: #464646;
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
letter-spacing: -1px;
|
||||
line-height: 1.1875;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
letter-spacing: -0.75px;
|
||||
line-height: 1.1667;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1rem;
|
||||
letter-spacing: -0.5px;
|
||||
line-height: 1.1875;
|
||||
color: #a0a0a0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.4375;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user