Back

Card

1 
2<div class="card">
3 <svg fill="none" viewBox="0 0 342 175" height="175" width="342" xmlns="http://www.w3.org/2000/svg" class="background">
4 <path fill="url(#paint0_linear_103_640)" d="M0 66.4396C0 31.6455 0 14.2484 11.326 5.24044C22.6519 -3.76754 39.6026 0.147978 73.5041 7.97901L307.903 62.1238C324.259 65.9018 332.436 67.7909 337.218 73.8031C342 79.8154 342 88.2086 342 104.995V131C342 151.742 342 162.113 335.556 168.556C329.113 175 318.742 175 298 175H44C23.2582 175 12.8873 175 6.44365 168.556C0 162.113 0 151.742 0 131V66.4396Z"></path>
5 <defs>
6 <linearGradient gradientUnits="userSpaceOnUse" y2="128" x2="354.142" y1="128" x1="0" id="paint0_linear_103_640">
7 <stop stop-color="#5936B4"></stop>
8 <stop stop-color="#362A84" offset="1"></stop>
9 </linearGradient>
10 </defs>
11 </svg>
12 <div class="cloud">
13 <svg fill="#000000" preserveAspectRatio="xMidYMid meet" class="iconify iconify--emojione" role="img" aria-hidden="true" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
14 <g stroke-width="0" id="SVGRepo_bgCarrier"></g>
15 <g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g>
16 <g id="SVGRepo_iconCarrier">
17 <g fill="#75d6ff">
18 <path d="M10.8 42.9c-.5 1.5-.1 3 1 3.4c1.1.4 2.4-.5 3-2c.6-1.8.7-4.1.2-6.9c-2.1 1.9-3.6 3.8-4.2 5.5"> </path>
19 <path d="M13.2 57.4c.6-1.8.7-4.1.2-6.9c-2.1 1.8-3.6 3.7-4.2 5.5c-.5 1.5-.1 3 1 3.4c1.1.4 2.5-.5 3-2"> </path>
20 <path d="M51.5 37.4c-2.1 1.8-3.6 3.7-4.2 5.5c-.5 1.5-.1 3 1 3.4c1.1.4 2.4-.5 3-2c.5-1.7.6-4.1.2-6.9"> </path>
21 <path d="M38.2 55.9c-.5 1.5-.1 3 1 3.4s2.4-.5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V18c0-3.4-1.8-6.5-4.5-8.3C30.8 6.9 33.8 5 37.1 5m0-3C33 2 29.2 4.1 27 7.6h-.3c-.6-.1-1.2-.1-1.7-.1c-5.3 0-10 3.5-11.4 8.6l-.3 1.2c-.4.2-.7.5-1.1.8c-2 1.7-3.1 4.2-3.1 6.9c0 4 2.5 7.4 6.3 8.7c.9.3 1.9.5 2.9.5h26.2c.8 0 1.6-.1 2.4-.3c4.8-1.1 8.2-5.3 8.2-10.3c0-3.8-2-7.3-5.3-9.1c-.2-.1-.3-.2-.5-.3v-.1C49.2 7.4 43.8 2 37.1 2z"> </path>
28 </g>
29 </svg>
30 </div>
31 <p class="main-text">24°</p>
32 <div class="info">
33 <div class="info-left">
34 <p class="text-gray">H:32° L: 16°</p>
35 <p>Kathmandu, Nepal</p>
36 </div>
37 <p class="info-right">Mid Rain</p>
38 </div>
39</div>
1 
2.card {
3 width: 342px;
4 height: 184px;
5 position: relative;
6 padding: 20px;
7 color: #fff;
8 display: flex;
9 flex-direction: column;
10 justify-content: space-between;
11}
12 
13.background {
14 fill: linear-gradient(90deg, #5936B4 0%, #362A84 100%);
15 position: absolute;
16 inset: 0;
17 z-index: -1;
18}
19 
20.cloud {
21 position: absolute;
22 right: 0;
23 top: -12px;
24}
25 
26.cloud svg {
27 height: 120px;
28}
29 
30.card .main-text {
31 font-size: 48px;
32 z-index: 2;
33}
34 
35.card .info {
36 display: flex;
37 justify-content: space-between;
38}
39 
40.card .info .text-gray {
41 color: rgba(235, 235, 245, 0.60);
42}
43 
44.card .info .info-right {
45 align-self: flex-end;
46}

MIT License

Copyright © 2026 sahilxkhadka (Sahil Khadka)


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.