From db8a30d8f3b4558cd5922d055692e1d5fa685f1f Mon Sep 17 00:00:00 2001 From: roryjshelton <76418221+roryjshelton@users.noreply.github.com> Date: Sat, 29 Apr 2023 12:33:15 -0700 Subject: [PATCH] css fix --- src/components/P1/Meme/Meme.astro | 31 +++++++++ src/components/P1/Meme/MemeStyles.css | 99 +++++++++++++++++++++++++++ src/index.css | 32 +++------ src/pages/index.astro | 2 + 4 files changed, 143 insertions(+), 21 deletions(-) create mode 100644 src/components/P1/Meme/Meme.astro create mode 100644 src/components/P1/Meme/MemeStyles.css diff --git a/src/components/P1/Meme/Meme.astro b/src/components/P1/Meme/Meme.astro new file mode 100644 index 0000000..2eee7c3 --- /dev/null +++ b/src/components/P1/Meme/Meme.astro @@ -0,0 +1,31 @@ +--- +import "./MemeStyles.css"; +--- + +
+
+
+
+

+ TITLE +

+

+ Building a new world for your data +

+

+ Right now, Lume has only one full-time developer and limited + helper staff! We need help from developers, fundraisers, + funders, and contributors to bring the new internet to the + masses. +

+
+
+
+
+
diff --git a/src/components/P1/Meme/MemeStyles.css b/src/components/P1/Meme/MemeStyles.css new file mode 100644 index 0000000..60208a1 --- /dev/null +++ b/src/components/P1/Meme/MemeStyles.css @@ -0,0 +1,99 @@ +.meme-container { + align-self: flex-start; + position: relative; + width: 100%; + justify-content: center; + margin-block: 5vh; + padding-block: 5vh; +} + +.meme-bp { + padding-right: 45%; +} + +.meme-wrapper { + background-image: url("../../../assets/tilted-rectangle.webp"); + background-size: 100% 100%; + background-position: center; + background-repeat: no-repeat; + width: 100%; + padding-block: 2.1em; + justify-content: center; + align-items: center; + overflow: hidden; + display: flex; + padding-left: 6.5%; + height: 80vh; + transition: 0.5s; +} + +.meme-bg { + background-image: url("../../../assets/meme.webp"); + background-position: 100% 50%; + background-size: contain; + background-repeat: no-repeat; + margin-left: -0.8vw; + height: calc(100% + 0.3vh); + transition: 0.5s; +} + +.meme-columns { + display: grid; + position: relative; + margin-block: calc(10% + 1.5625vh); +} + +@media screen and (width <=1050px) { + .meme-container { + z-index: 999 !important; + width: 100%; + transition: 0.5s; + } + + .meme-bp { + padding-right: 0%; + } + + .meme-wrapper { + width: 100%; + padding-inline: 15%; + padding-left: 20%; + height: 80vh; + transition: 0.5s; + } + + .meme-translucent { + max-width: 100%; + transition: 0.5s; + background-color: #020e10ac; + border-radius: 15px; + } + + .meme-bg { + background-position: 50% 50%; + z-index: 999 !important; + } + + .meme-columns { + display: grid; + position: relative; + margin-block: calc(25% + 1.5625vh); + transition: 0.5s; + } +} + +@media screen and (width >=2200px) { + .meme-container { + width: 100%; + justify-content: center; + display: inline-block; + transition: 0.5s; + } + + .meme-translucent { + max-width: 30%; + transition: 0.5s; + background-color: none; + border-radius: 15px; + } +} \ No newline at end of file diff --git a/src/index.css b/src/index.css index 0f5c4dd..aa7ebe7 100644 --- a/src/index.css +++ b/src/index.css @@ -1,26 +1,22 @@ @import url("https://fonts.googleapis.com/css?family=Jaldi:400|JetBrains+Mono:400,700|IBM+Plex+Sans+Devanagari:400"); :root { - --primary-dark: #000; - --primary-light: #fff; -} - -:root { + --primary-dark: rgba(0 0 0 100%); + --primary-light: rgba(255 255 255 100%); --black: - rgba(0, 0, 0, 1); + rgba(0 0 0); --blue-charcoal: - rgba(1, 14, 16, 1); + rgba(1 14 16); --blue-charcoal-2: - rgba(3, 21, 24, 1); + rgba(3 21 24); --aquamarine: - rgba(122, 252, 187, 1); + rgba(122 252 187); --cloud: - rgba(199, 199, 199, 1); + rgba(199 199 199); --alto: - rgba(217, 217, 217, 1); + rgba(217 217 217); --white: - rgba(255, 255, 255, 1); - + rgba(255 255 255); --font-size-s: 20px; --font-size-m: 21px; --font-size-l: 25px; @@ -28,8 +24,7 @@ --font-size-xxl: 32px; --font-size-xxxl: 45px; --font-size-xxxxl: 100px; - - --font-family-ibm_plex_sans_devanagari: "IBM Plex Sans Devanagari"; + --font-family-ibm-plex-sans-devanagari: "IBM Plex Sans Devanagari"; --font-family-jaldi: "Jaldi"; --font-family-jetbrains-mono: "JetBrains Mono"; } @@ -87,10 +82,6 @@ body { white-space: nowrap; } -a { - text-decoration: none; -} - h1 { font-size: calc(26px + (82 - 26) * ((100vw - 300px) / (1600 - 300))); font-weight: 100; @@ -114,7 +105,6 @@ h4 { font-size: calc(15px + (21 - 15) * ((100vw - 300px) / (1600 - 300))); color: var(--cloud); font-family: var(--font-family-jaldi); - font-size: var(--font-size-m); font-weight: 400; font-style: normal; max-width: 550px; @@ -151,7 +141,7 @@ ul { padding: 0 1rem; } -@media screen and (max-width: 1050px) { +@media screen and (width <=1050px) { .left { display: flex; position: relative; diff --git a/src/pages/index.astro b/src/pages/index.astro index 0ac0f0c..ff4e043 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,7 @@ --- import Navbar from "../components/Navbar/Navbar.jsx"; import Header from "../components/P1/Header/Header.astro"; +import Meme from "../components/P1/Meme/Meme.astro"; import Powered from "../components/P1/Powered/Powered.astro"; import Vision from "../components/P1/Vision/Vision.astro"; import Whatisweb3 from "../components/P1/Whatisweb3/Whatisweb3.astro"; @@ -29,5 +30,6 @@ import "../index.css"; +