From d953ce654d91d9dfd7c5fec1618913e88c9064a0 Mon Sep 17 00:00:00 2001 From: Helldragon67 Date: Sat, 19 Oct 2024 18:14:18 +0800 Subject: [PATCH] hero for mobile --- assets/css/hero.css | 90 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 74 insertions(+), 16 deletions(-) diff --git a/assets/css/hero.css b/assets/css/hero.css index 3306fde..f26946e 100644 --- a/assets/css/hero.css +++ b/assets/css/hero.css @@ -38,11 +38,14 @@ .hero-button { background-color: white; color: #E72E77; - padding: 1rem 2rem; - text-decoration: none; + padding: 15px 30px; + border: none; border-radius: 5px; - font-size: 1.2rem; - transition: background-color 0.3s, color 0.3s; + font-size: 1.4rem; + font-weight: bold; + cursor: pointer; + transition: background-color 0.3s; + text-transform: uppercase; } .hero-button:hover { @@ -54,33 +57,88 @@ .hero-screenshots { display: flex; flex-direction: column; - gap: 1rem; + gap: 3rem; width: 100%; align-items: center; } .screenshot img { - max-width: 90%; + max-width: 80vmin; height: auto; border-radius: 10px; + border: 4px solid black; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } /* Responsive layout for larger screens */ @media screen and (min-width: 768px) { + .hero { + position: relative; + width: 100%; + margin: 0 auto; /* Centering the hero section */ + display: flex; + justify-content: space-between; + align-items: center; + padding-top: 80px; + padding-bottom: 80px; + padding-left: 40px; + padding-right: 40px; + background: linear-gradient(to bottom right, #F9B208, #E72E77); + } + .hero-inner { - flex-direction: row; /* Side-by-side layout on larger screens */ - justify-content: space-between; - align-items: center; + display: flex; + justify-content: space-between; + width: 100%; } - + .hero-content { - align-items: flex-start; - text-align: left; + text-align: center; + padding: 20px; + margin-right: none; } - + + .hero-logo { + width: 200px; + margin: 0 auto 20px; + margin-bottom: 40px; + } + + .hero-title { + font-size: 2.5rem; + color: white; + margin-bottom: 40px; + } + + .hero-button:hover { + background-color: white; + /* color: #2ee797; */ + color: #ff3988; + opacity: 1; + box-shadow: 0 0px 16px rgba(0, 0, 0, 0.3); + } + .hero-screenshots { - flex-direction: row; /* Display screenshots side-by-side */ - gap: 1.5rem; + max-width: 50%; + display: flex; + gap: 40px; + margin-left: 0px; + padding-left: 0px; } -} + + .screenshot { + width: 100%; + height: 330px; + background-color: white; + border: 5px solid black; + box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); + border-radius: 13px; + overflow: hidden; + } + + .screenshot img { + width: 100%; + height: 100%; + object-fit: cover; + } +} \ No newline at end of file