Compare commits
3 commits
4d8b9d4ed9
...
fb291aa9a3
Author | SHA1 | Date | |
---|---|---|---|
Akemi Izuko | fb291aa9a3 | ||
Akemi Izuko | 286ddbb0dc | ||
Akemi Izuko | bbf850d5c7 |
|
@ -30,24 +30,36 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
|
||||||
you (>ω^)!
|
you (>ω^)!
|
||||||
</p>
|
</p>
|
||||||
<img id="pfp" src="/images/home/akemi-silly-transparent.avif" />
|
<img id="pfp" src="/images/home/akemi-silly-transparent.avif" />
|
||||||
|
<div class="footer"><Footer /></div>
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
main a {
|
/*****************************************
|
||||||
|
* Global styles
|
||||||
|
****************************************/
|
||||||
|
main a {
|
||||||
color: var(--accent-color);
|
color: var(--accent-color);
|
||||||
}
|
}
|
||||||
|
main .footer {
|
||||||
|
margin-top: -30px;
|
||||||
|
grid-row: 7 / 8;
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 760px) {
|
/*****************************************
|
||||||
|
* Desktop, iPad horizontal and vertical
|
||||||
|
****************************************/
|
||||||
|
@media (min-width: 760px) {
|
||||||
main {
|
main {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto 20px 50%;
|
grid-template-columns: 1fr auto 20px 50%;
|
||||||
grid-template-rows: repeat(6, 1fr);
|
grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
#name-title {
|
#name-title {
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
|
@ -59,16 +71,6 @@ main a {
|
||||||
grid-row-end: 4;
|
grid-row-end: 4;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
@media (min-width: 1300px) {
|
|
||||||
#name-title {
|
|
||||||
font-size: 96px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media not (min-width: 1300px) {
|
|
||||||
#name-title {
|
|
||||||
font-size: 64px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#title-circle {
|
#title-circle {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -76,21 +78,19 @@ main a {
|
||||||
height: 200px;
|
height: 200px;
|
||||||
box-shadow: 0 40px 50px -10px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 40px 50px -10px rgba(0, 0, 0, 0.1);
|
||||||
/* Grid styles */
|
/* Grid styles */
|
||||||
grid-column: 1 / 2;
|
|
||||||
grid-row: 2 / 4;
|
grid-row: 2 / 4;
|
||||||
justify-self: right;
|
|
||||||
margin-right: -120px;
|
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
|
align-self: center;
|
||||||
}
|
}
|
||||||
#about {
|
#about {
|
||||||
|
margin-top: 20px;
|
||||||
max-width: 520px;
|
max-width: 520px;
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
/* Grid styles */
|
/* Grid styles */
|
||||||
grid-column-start: 2;
|
grid-column-start: 2;
|
||||||
grid-row-start: 4;
|
grid-row: 4 / 7;
|
||||||
grid-row-end: 7;
|
|
||||||
justify-self: right;
|
justify-self: right;
|
||||||
align-self: start;
|
align-self: start;
|
||||||
}
|
}
|
||||||
|
@ -113,16 +113,81 @@ main a {
|
||||||
#pfp {
|
#pfp {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
/* Grid styles */
|
/* Grid styles */
|
||||||
grid-column-start: 4;
|
grid-column: 4 / 5;
|
||||||
grid-column-end: 5;
|
grid-row: 1 / 7;
|
||||||
grid-row-start: 1;
|
|
||||||
grid-row-end: 7;
|
|
||||||
justify-self: right;
|
justify-self: right;
|
||||||
align-self: bottom;
|
align-self: bottom;
|
||||||
margin-right: -15%;
|
margin-right: -15%;
|
||||||
}
|
}
|
||||||
}
|
/*****************************************
|
||||||
@media not (min-width: 760px) {
|
* iPad vertical
|
||||||
|
****************************************/
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
main {
|
||||||
|
grid-template-columns: 1fr auto 0px 40%;
|
||||||
|
grid-template-rows: 1fr 1fr 1fr 1fr auto;
|
||||||
|
}
|
||||||
|
main .footer {
|
||||||
|
grid-row: 5 / 6;
|
||||||
|
}
|
||||||
|
#name-title {
|
||||||
|
grid-row-start: 1;
|
||||||
|
grid-row-end: 3;
|
||||||
|
}
|
||||||
|
#title-circle {
|
||||||
|
grid-row: 1 / 3;
|
||||||
|
}
|
||||||
|
#about {
|
||||||
|
grid-row: 3 / 6;
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*****************************************
|
||||||
|
* iPad horizontal
|
||||||
|
****************************************/
|
||||||
|
@media not (min-width: 1350px) {
|
||||||
|
#name-title {
|
||||||
|
font-size: 64px;
|
||||||
|
}
|
||||||
|
#title-circle {
|
||||||
|
justify-self: center;
|
||||||
|
margin-right: 0;
|
||||||
|
grid-column: 1 / 3;
|
||||||
|
margin-left: -120px;
|
||||||
|
margin-top: -30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*****************************************
|
||||||
|
* Desktop
|
||||||
|
****************************************/
|
||||||
|
@media (min-width: 1350px) {
|
||||||
|
#name-title {
|
||||||
|
font-size: 96px;
|
||||||
|
}
|
||||||
|
#title-circle {
|
||||||
|
justify-self: right;
|
||||||
|
margin-right: -120px;
|
||||||
|
grid-column: 1 / 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*****************************************
|
||||||
|
* Shift over big circle for iPad
|
||||||
|
****************************************/
|
||||||
|
@media (max-width: 1350px) and (min-width: 901px) {
|
||||||
|
#big-circle-wrapper {
|
||||||
|
width: calc(100% - 56%);
|
||||||
|
left: 56%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************
|
||||||
|
* Phones
|
||||||
|
*
|
||||||
|
* Completely changes the layout to flex
|
||||||
|
****************************************/
|
||||||
|
@media not (min-width: 760px) {
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -142,5 +207,5 @@ main a {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue