Skip to content

Commit

Permalink
rushed media queries (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahmorrison committed Aug 30, 2023
1 parent e916602 commit c670d40
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
15 changes: 15 additions & 0 deletions src/app/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@ h4 {
h5 {
font-size: $heading5;
}

@media (max-width: 1000px) {
h1 {
font-size: $heading2;
}
h2 {
font-size: $heading3;
}
h3 {
font-size: $heading4;
}
h4 {
font-size: $heading5;
}
}
8 changes: 8 additions & 0 deletions src/app/nav.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@
padding: 0;
}
}
}
@media (max-width: 530px){
.nav{
justify-content: center;
align-items: center;
flex-direction: column;
gap: 20px;
}
}
21 changes: 20 additions & 1 deletion src/app/page.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
height: 100vh;
padding: 50px;

.name{
.fullName{
position: absolute;
bottom: 15%;

Expand Down Expand Up @@ -39,6 +39,7 @@
.project{
height: 100vh;

background-color: $pseudo-black;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
Expand Down Expand Up @@ -124,4 +125,22 @@
0% { transform: translateY(-100%); }
50% { transform: translateY(-100%); }
100% { transform: translateY(0%); }
}

@media (max-width: 750px){
.name{
left: 20px;
}
.project{
height: 500px;
.projectInfo{
width: 100%;
}
}
}

@media (max-width: 530px){
.fullName{
font-size: $heading3;
}
}
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Home() {
<div>
<main className={styles.hero}>
<Nav/>
<h1 className={styles.name}>
<h1 className={styles.fullName}>
<span className={styles.firstName}><p>Abdullah</p></span>
<span className={styles.lastName}><p>Morrison</p></span>
</h1>
Expand All @@ -19,7 +19,7 @@ export default function Home() {
<p className={styles.description}>A Twitch extension that helps an animal sanctuary educate viewers about animal conservation</p>

<ul className={styles.links}>
<li><a href="https://www.twitch.tv/alveussanctuary">view project</a></li>
<li><a href="https://www.twitch.tv/alveussanctuary" target='_blank'>view project</a></li>
<li><a href="https://github.com/alveusgg/extension" target="_blank">git repo</a></li>
</ul>
</div>
Expand Down

0 comments on commit c670d40

Please sign in to comment.