Skip to content

Commit

Permalink
improved responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis09-yann committed Jul 24, 2024
1 parent cbe5134 commit 81ed836
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,12 @@ <h2>Lorem Ipsum</h2>
<h2>Lorem, ipsum dolor.</h2>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dicta
accusamus ad cum hic eos consectetur id doloremque fugiat ducimus
quibusdam.
accusamus ad cum hic eos consectetur
</p>
</div>
</a>
</div>
<p class="note-text">Click anywhere to go to the project's page</p>
<p class="note-text">Click on the cards to go to the project's page</p>
</section>
<section class="third-page">
<div class="secondary-title">
Expand Down
85 changes: 85 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ body {
box-sizing: border-box;
scroll-behavior: smooth;
scroll-snap-type: y mandatory;

overflow-x: hidden;
}

ul {
Expand Down Expand Up @@ -318,3 +320,86 @@ footer {
flex-direction: column;
font-size: 18px;
}

@media only screen and (max-width: 1920px) {
#bg-video {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: -1;
}
.first-page h1,
.second-page h1 {
font-size: 48px;
}

.subtitle {
font-size: 24px;
}

.about-me-container p {
font-size: 16px;
}
.projects-container {
margin: 0;
gap: 20px;
}

.project {
width: 150px;
height: 96px;
padding: 5px;
font-size: 10px;
}

.about-me-container {
flex-direction: column;
gap: 10px;
}

.about-me-text-container {
margin: 2px;
font-size: 8px;
text-wrap: wrap;
}
.about-me-button {
width: 80px;
height: 24px;
font-size: 18px;
}

.profile-picture {
width: 256px;
}
.secondary-title h1 {
font-size: 48px;
}

.about-me-buttons-container {
gap: 20px;
}

.about-me-text-container {
gap: 15px;
}

.about-me-buttons-container {
justify-content: center;
flex-wrap: wrap;
}
.about-me-text-container p {
font-size: 2vh;
}

footer {
font-size: 10px;
}

.qna-container {
width: 100%;
font-size: 16px;
}
}

0 comments on commit 81ed836

Please sign in to comment.