From 0025a98ef0dda7ee77e7bf129fab709d4b68e3fc Mon Sep 17 00:00:00 2001 From: sau-mili <146661411+sau-mili@users.noreply.github.com> Date: Sat, 29 Jun 2024 03:01:08 +0530 Subject: [PATCH 1/2] Counter added --- counter.css | 81 ++++++++++++++++++++++++++++++++ index.html | 131 ++++++++++++++++++++++++---------------------------- index.js | 1 + style.css | 4 +- styles.css | 2 + 5 files changed, 148 insertions(+), 71 deletions(-) create mode 100644 counter.css diff --git a/counter.css b/counter.css new file mode 100644 index 00000000..454e5c38 --- /dev/null +++ b/counter.css @@ -0,0 +1,81 @@ + + + /* counter */ + .wrapper { + + width: 80%; + + margin-left: auto; + margin-right: auto; + align-items: center; + display: flex; + justify-content: space-between; + + } + .countitem { + width: 28vmin; + height: 28vmin; + display: flex; + flex-direction: column; + justify-content: space-around; + padding: 1em 0; + font-size: 16px; + border-width: 0.5px ; + border-color: solid purple; + border-radius: 0.5em; + background: linear-gradient(white,rgb(153, 139, 251)); + border-bottom: 10px solid #40349c; + } + i { + color: #06006e; + font-size: 2.5em; + text-align: center; + } + span.num { + color: #32316a; + display: grid; + place-items: center; + font-weight: 600; + font-size: 3em; + } + span.text { + color: #6c2121; + font-size: 1.2em; + text-align: center; + padding: 0em 00em; + font-weight: 400; + margin-bottom: 1em; + line-height: 0; + } + @media screen and (max-width: 1024px) { + .wrapper { + width: 85vw; + } + .countitem{ + height: 26vmin; + width: 26vmin; + font-size: 12px; + } + } + @media screen and (max-width: 768px) { + .wrapper { + width: 90vw; + flex-wrap: wrap; + gap: 30px; + } + .countitem { + width: calc(50% - 40px); + height: 30vmin; + font-size: 14px; + } + } + @media screen and (max-width: 480px) { + .wrapper { + gap: 15px; + } + .countitem { + width: 100%; + height: 25vmin; + font-size: 8px; + } + } \ No newline at end of file diff --git a/index.html b/index.html index a4193583..743186fe 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,9 @@ crossorigin="anonymous" referrerpolicy="no-referrer" /> + + @@ -316,80 +318,69 @@
- Guides
-