Skip to content

Commit

Permalink
enhancement(app): Sort CSS; Other minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
djsiddz committed Feb 7, 2024
1 parent a414158 commit a94f3b2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const currentYear = new Date().getFullYear();
</footer>
<style>
footer {
display: flex;
padding: 1rem 0;
color: whitesmoke;
display: flex;
flex-wrap: wrap;
font-size: 0.75rem;
gap: 1.5rem;
flex-wrap: wrap;
padding: 1rem 0;
}
@media (orientation: portrait) {
footer {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
</nav>
<style>
nav {
border: 2px solid whitesmoke;
border-radius: 2rem;
font-size: 1rem;
border: 2px solid whitesmoke;
display: flex;
font-size: 1rem;
gap: 4rem;
padding: 0.25rem 3rem;
margin-top: 1rem;
padding: 0.25rem 3rem;
}
nav > a {
color: whitesmoke;
Expand Down
13 changes: 8 additions & 5 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ const hobbies = ["Space Exploration", "Writing", "Space Photography"];
</MainLayout>
<style>
.pageContent {
text-align: center;
padding: 2rem 0;
text-align: center;
}
.hobbies {
list-style-position: inside;
display: inline-flex;
flex-wrap: wrap;
gap: 1rem;
list-style-position: inside;
margin-top: 0;
}
/* .hobbies li {
.hobbies li {
padding: 0 0 0 1rem;
} */
}
.hobbies li::marker {
content: "🚀";
}
Expand All @@ -57,8 +57,11 @@ const hobbies = ["Space Exploration", "Writing", "Space Photography"];
}
@media (orientation: portrait) {
.pageContent {
text-align: left;
padding: 2rem 0;
text-align: left;
}
.hobbies li {
padding: 0;
}
}
</style>
17 changes: 8 additions & 9 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
html, body {
font-size: 24px;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
width: 100%;
}

a {
Expand All @@ -75,19 +75,18 @@ a:hover {
}

body {
background: rgb(22,1,59);
background: radial-gradient(at bottom, rgba(22,1,59,1) 55%, rgba(251,99,131,1) 72%, rgba(229,210,90,1) 80%, rgba(0,0,0,1) 90%);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 0 100%;
background-repeat: no-repeat;
color: whitesmoke;
background-attachment: fixed;
}
section {
min-height: 90%;
align-items: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
min-height: 90%;
padding: 1rem;
}
h1 {
Expand All @@ -101,15 +100,15 @@ p {
@media (orientation: portrait) {
body {
background: radial-gradient(at left, rgba(22,1,59,1) 60%, rgba(251,99,131,1) 70%, rgba(229,210,90,1) 77%, rgba(0,0,0,1) 87%);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 0 100%;
background-repeat: no-repeat;
color: whitesmoke;
background-attachment: fixed;
}
section {
align-items: start;
display: flex;
justify-content: space-between;
align-items: start;
}
h1 {
font-size: 2.5rem;
Expand Down

0 comments on commit a94f3b2

Please sign in to comment.