From a43f09c3f3501bf7f5597fbf8c9bce5da765f226 Mon Sep 17 00:00:00 2001 From: VinayJangotra <109384165+VinayJangotra@users.noreply.github.com> Date: Mon, 24 Jun 2024 00:34:24 +0530 Subject: [PATCH] Update the UI of About page In this I have added the cards for the differnt sections and the animations and the jump effect headings and improve the alignment for the text seprate sections for "How to Play" and improve the UI --- about.html | 259 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 190 insertions(+), 69 deletions(-) diff --git a/about.html b/about.html index 44f638f..656f6c8 100644 --- a/about.html +++ b/about.html @@ -379,7 +379,137 @@ transform: translateY(0); } + + } + /* Heading style with animation */ +@keyframes fadeIn { + from { + opacity: 0; + transform: translateY(-20px); } + to { + opacity: 1; + transform: translateY(0); + } +} + +h1 { + animation: fadeIn 2s ease-out; + text-align: center; + color: #333; + cursor: pointer; +} + +/* Hover effect */ +h1:hover { + color: #f47f0a; + text-shadow: 0 0 10px rgba(244, 127, 10, 0.5); +} +@keyframes jumpAnimation { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-20px); } +} + +.jump { + animation: jumpAnimation 0.5s ease-in-out; +} +/* General Card Styling */ +ul.explore, ul.features, ul.why { + list-style-type: none; + padding: 30px; /* Increased padding */ + border: 1px solid #f0f3ff; + border-radius: 25px; + margin: 20px auto; + background-color: #151515; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Added shadow for depth */ + transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */ + animation: cardLoad 0.5s ease-out forwards; /* Animation for card appearance */ +} + +/* Hover Effect */ +ul.explore:hover, ul.features:hover, ul.why:hover { + transform: scale(1.03); /* Slight scale up */ + box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increased shadow for "lift" effect */ +} + +/* Animation for Card Appearance */ +@keyframes cardLoad { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} +.how-to-play { + max-width: 800px; + margin: 0 auto; + padding: 20px; +} + +.title { + text-align: center; + color: red; /* Title color */ +} +.play { + display: flex; + flex-direction: column; + gap: 20px; /* Adjust gap as needed */ + align-items: center; /* Center the cards horizontally */ +} + +.play .step { + width: 80%; /* Good width for each card */ + height: 500px; /* Specified height for each card */ + display: grid; /* Using grid to easily manage layout */ + grid-template-rows: 70% 30%; /* 70% height for image, 30% for text */ + align-items: center; /* Aligns items vertically in the center */ + text-align: center; /* Centers text */ + gap: 10px; /* Adjust gap between elements inside the card */ + margin: 0 auto; /* Center the card in the page */ +} + +.play img { + width: 100%; /* Ensures image covers the width */ + height: 100%; /* Ensures image covers the allocated 70% height */ + object-fit: cover; /* Ensures images cover the area nicely without distortion */ +} + +.play div { + padding: 15px; + color: white; /* Maintains updated text color to white */ +} + +.highlight { + position: absolute; /* Adjust if necessary based on your layout */ + top: 0; + width: 100%; + background-color: black; /* Background to make text stand out */ + color: white; + font-size: 1.5em; /* Increases the font size */ + font-weight: bold; /* Makes the font bold */ + padding: 10px 0; /* Adds some padding */ +} +footer { + background-color: #333; /* Dark background for the footer */ + color: #fff; /* White text color */ + text-align: center; /* Center-align the text */ + padding: 20px 0; /* Padding around the footer content */ +} + +.footer-content { + margin: auto; + width: 80%; /* Adjust the width as needed */ +} + +.high { + color: #4CAF50; /* A bright color for emphasis */ + font-weight: bold; /* Make the text bold */ + display: block; /* Display as block to ensure it takes its own line */ + margin: 10px 0; /* Margin for spacing */ +} @@ -389,7 +519,7 @@
-- Start your journey now and see how many elements you can - discover! -
+ + +