From e2cdbc55fa7e5073bc9127cb636be7e4d8ffbdb4 Mon Sep 17 00:00:00 2001 From: Rosia E Evans Date: Wed, 30 Apr 2025 22:41:11 +0100 Subject: [PATCH] css rework --- effects.css | 11 +++++++ fontScaler.css | 32 +++++++++++++++++++++ gallery.css | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ home.css | 29 +++++++++++++++++++ socials.css | 15 ++++++++++ 5 files changed, 165 insertions(+) create mode 100644 effects.css create mode 100644 fontScaler.css create mode 100644 gallery.css create mode 100644 home.css create mode 100644 socials.css diff --git a/effects.css b/effects.css new file mode 100644 index 0000000..e3bab13 --- /dev/null +++ b/effects.css @@ -0,0 +1,11 @@ +a{ + color: var(--text); + transition: color 0.5s; +} +a:visited{ + color: var(--text); +} +a:hover{ + color: black; +} + diff --git a/fontScaler.css b/fontScaler.css new file mode 100644 index 0000000..2c35403 --- /dev/null +++ b/fontScaler.css @@ -0,0 +1,32 @@ +.font_scaler{ + position: fixed; + bottom: 0; + left: 0; +} + +.font_scaler button{ + background: none; + background-color: var(--backing); + border: none; + margin-left: 10px; + margin-bottom: 10px; + padding: 5px; + transition: background-color 0.5s; +} + +.font_scaler img{ + width: 3vw; + height: 3vw; +} + +.font_scaler button::hover, .font_scaler img::hover{ + background-color: grey; +} + +@media (orientation: portrait) { + .font_scaler img{ + width: 15vw; + height: 15vw; + } + +} diff --git a/gallery.css b/gallery.css new file mode 100644 index 0000000..e341552 --- /dev/null +++ b/gallery.css @@ -0,0 +1,78 @@ +.gallery{ + display: flex; + flex-wrap: wrap; + justify-content: space-evenly; +} + +.gallery figure{ + width: 200px; + height: 250px; + background-color: var(--backing); + + transition: transform 0.5s; +} + +.gallery figure:hover:not(.maximised){ + transform: rotate(-5deg); +} + +.gallery figure img{ + width: 90%; + height: 75%; + object-fit: fill; + margin: 5%; +} + +.gallery figcaption{ + text-align: center; + padding: 5px; +} + + +.maximised{ + position: fixed; + left: 50%; + top: 50%; + /* left: 0; */ + /* top: 0; */ + + z-index: 10; + + height: 90vh !important; + width: 80vh !important; + + transform: translate(-50%, -50%); + font-size: 3rem; + margin: 0; +} +.maximised:before{ + background-color: var(--backing); + content: "click the photo again to close it"; + font-size: 2rem; +} + +@media screen and (max-width:1000px){ + + .maximised{ + position: fixed; + left: 50%; + top: 50%; + /* left: 0; */ + /* top: 0; */ + + + z-index: 10; + + height: 90vw !important; + width: 80vw !important; + + transform: translate(-50%, -50%); + font-size: 3rem; + margin: 0; + } + + .gallery figure{ + width: 350px; + height: 400px; + } +} diff --git a/home.css b/home.css new file mode 100644 index 0000000..34b05e0 --- /dev/null +++ b/home.css @@ -0,0 +1,29 @@ +#home_page_content{ + display: grid; + gap: 7px; + grid-template-areas: + "head open" + "qual book"; + grid-template-columns: 3fr 1fr; +} + +#times{ + text-align: center; + grid-area: open +} + +#head{ + grid-area: head; +} + +#qual{ + grid-area: qual +} + +#book{ + grid-area: book; +} + +@media screen and (max-width:1000px){ + +} diff --git a/socials.css b/socials.css new file mode 100644 index 0000000..cdaf83f --- /dev/null +++ b/socials.css @@ -0,0 +1,15 @@ +.socials{ + display: flex; + flex-direction: row; + justify-content: center; + padding: 0 10% 0 10%; +} + +.socials img{ + width: 100px; + height: 100px; +} + +main .socials{ + margin: auto; +}