Skip to content

Commit

Permalink
Card Responsiveness attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
LU347 committed Sep 7, 2024
1 parent b6e1dbd commit ac74245
Showing 1 changed file with 42 additions and 41 deletions.
83 changes: 42 additions & 41 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
:root {
/* TODO: Dark Mode & Light Mode */
--primary-color: #e0e0e0d6;
--background: #00000000;
--primary-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
--header-font: Georgia, "Times New Roman", Times, serif;
--header-color: #f5f5f5ea;
--card-background-color: #f5f5f5;
--card-shadow: 10px 5px 5px rgba(0, 0, 0, 0.285);
/* TODO: Dark Mode & Light Mode */
--primary-color: #e0e0e0d6;
--background: #00000000;
--primary-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
--header-font: Georgia, "Times New Roman", Times, serif;
--header-color: #f5f5f5ea;
--card-background-color: #f5f5f5;
--card-shadow: 10px 5px 5px rgba(0, 0, 0, 0.285);
}
html,
body {
Expand Down Expand Up @@ -35,19 +35,23 @@ section {
scroll-behavior: smooth; /* not working? */
}

h1 {
font-family: var(--header-font);
color: var(--header-color);
}

strong {
font-family: var(--primary-font);
font-weight: 600;
color: var(--header-color);
}

ul {
list-style-type: none;
margin: 0;
padding: 0;
}

.nav-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

nav {
width: 100%;
}
Expand All @@ -64,13 +68,6 @@ nav li:first-of-type {
margin-right: auto;
}

.nav-title {
font-family: var(--header-font);
font-weight: 100;
font-size: 2rem;
color: #f5f5f5ea;
}

nav li {
float: right;
font-family: var(--primary-font);
Expand All @@ -92,6 +89,20 @@ nav a:hover {
transform: scale(1.1);
}

.nav-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.nav-title {
font-family: var(--header-font);
font-weight: 100;
font-size: 2rem;
color: var(--header-color);
}

.bio-wrapper {
display: grid;
grid-template-columns: auto 50%;
Expand Down Expand Up @@ -130,27 +141,17 @@ nav a:hover {
z-index: -1;
}

strong {
font-family: var(--primary-font);
font-weight: 600;
color: var(--header-color);
}

.about-wrapper {
display: grid;
grid-template-columns: 60% 50%;
grid-template-columns: 60% 40%;
gap: 1rem;
padding-bottom: 2rem;
}

.about-bio {
z-index: 6;
margin: auto;
padding: 2rem;
}

.about-bio h1 {
font-family: var(--header-font);
margin: 0;
padding: 1rem;
}

.about-bio p {
Expand All @@ -161,7 +162,7 @@ strong {
display: flex;
justify-content: center;
align-items: center;
scale: 0.9;
scale: 0.8;
}

#card-1 {
Expand Down Expand Up @@ -326,15 +327,15 @@ footer {
}

.about-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
grid-template-columns: auto;
width: 100%;
}

.card-container {
scale: 0.7;
padding-bottom: 10vh;
display: flex;
flex-direction: row;
}
}

Expand Down

0 comments on commit ac74245

Please sign in to comment.