Skip to content

Commit

Permalink
homepage centering
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL committed Aug 24, 2024
1 parent 2dee8db commit b952b4a
Showing 1 changed file with 79 additions and 11 deletions.
90 changes: 79 additions & 11 deletions src/styles/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,87 @@
// reduced workload to css.scss

html {
display: flex;
justify-content: center;
position: fixed;
height: 100vh;
max-width: 75ch;
line-height: 1.6;
font-size: 1.1em;
font-family: Recursive, monospace;
align-items: center;
}

// body {
// position: fixed;
// top: 50%;
// left: 50%;
// max-width: 75ch;
// height: auto;
// -webkit-transform: translate(-50%,-50%);
// -moz-transform: translate(-50%,-50%);
// -ms-transform: translate(-50%,-50%);
// -o-transform: translate(-50%,-50%);
// transform: translate(-50%,-50%);
// }

/* Base styles for the body */
body {
// position: absolute;
// top: 50%;
// left: 50%;
// transform: translate(-50%, -50%);
// width: 50%;
// height: 50%;
// widthr: 100px;
position: fixed;
max-width: 100%;
max-height: 100%;
top: 50%;
left: 50%;
width: 75ch;
height: auto;
-webkit-transform: translate(-50%,-50%);
-moz-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
-o-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
}

// /* Medium screens */
// @media screen and (min-width: 768px) {
// body {
// width: 80%;
// }
// }

// /* Large screens */
// @media screen and (min-width: 1024px) {
// body {
// width: 70%;
// }
// }

// /* Extra large screens */
// @media screen and (min-width: 1440px) {
// body {
// width: 60%;
// }
// }

// /* Ensure the body doesn't get too small on very narrow screens */
// // @media screen and (max-width: 640px) {
// // body {
// // width: 95%;
// // padding: 10px;
// // }
// // html, body {
// // height: 100%;
// // overflow: auto;
// // }
// // }

// /* Additional styles to handle overflow */
// html, body {
// height: 100vh;
// overflow: auto;
// }

.header{
display: flex;
flex-direction: row;
Expand All @@ -47,7 +107,15 @@ body {
font-weight: 500;
}

@media screen and (max-width: 700px) {
body {
position: relative;
}
}

@media screen and (max-width: 650px) {


html{
font-size: 100%;
}
Expand All @@ -57,7 +125,7 @@ body {
flex-direction: column;
}
.name{
margin-top: 0rem;
margin-top: 0em;
padding-top: 0rem;
padding-bottom: 0rem;
margin-bottom: 0.75rem;
Expand Down

0 comments on commit b952b4a

Please sign in to comment.