Skip to content

Commit

Permalink
Merge pull request #18 from danrusu/image-cards
Browse files Browse the repository at this point in the history
homepage fun
  • Loading branch information
danrusu authored Jan 20, 2025
2 parents 4049238 + 8c9c191 commit 262695e
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions src/html/public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
/* vars */
--main-text-color: black;
--main-background-color: white;
--link-color: darkblue;

--header-background: white;
--footer-background: white;

--small-padding: 2vh;
--small-padding: 0.3rem;

box-sizing: border-box;
}
Expand All @@ -21,19 +20,20 @@
}

body {
color: var(--main-text-color);
min-height: 100vh;
font-family: "Libre Franklin", sans-serif;
line-height: 1.5;
color: var(--main-text-color);
display: grid;
grid-template-rows: auto 1fr auto;
}

header {
min-height: 10vh;
min-height: 5vh;
background: var(--header-background);
border-bottom: 1px solid var(--main-text-color);
padding-top: calcvar(--small-padding);
padding: var(--small-padding) 0;
margin-bottom: var(--small-padding);
}

footer {
Expand All @@ -50,10 +50,13 @@ footer address {
display: inline-block;
}

footer address a {
color: black;
}

section {
display: inline-block;
margin: var(--small-padding);
/* padding: 0 var(--small-padding); */
border: 2px solid var(--main-text-color);
border-radius: 5px;
text-align: center;
Expand All @@ -75,32 +78,34 @@ a {
cursor: pointer;
}

@media (max-width: 400px) {
main {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
}

/* card */
.card-title {
font-size: 1.1rem;
font-weight: bold;
display: grid;
grid-template-columns: 1fr 3fr;
grid-template-columns: auto 1fr;
gap: 0;
align-items: end;
justify-items: start;
padding-right: var(--small-padding);
}

.card-subtitle {
padding-bottom: 5px;
padding-bottom: 0.2rem;
}

section a {
display: block;
background-color: var(--main-text-color);
color: var(--main-background-color);
border-top: 1px solid yellow;
padding: var(--small-padding);
}

@media (max-width: 400px) {
main {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
}

0 comments on commit 262695e

Please sign in to comment.