Feature: created top-cards desktop/mobile

This commit is contained in:
Thaís Ferreira Caetano de Jesus 2022-10-11 16:19:39 -03:00
parent 16b40a96db
commit 75d1dec63d
5 changed files with 125 additions and 12 deletions

6
Assets/SVG/Coin-icon.svg Normal file
View File

@ -0,0 +1,6 @@
<svg width="102" height="103" viewBox="0 0 102 103" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M71.4307 52.972C81.8615 52.972 90.3174 44.4332 90.3174 33.9001C90.3174 23.367 81.8615 14.8282 71.4307 14.8282C60.9998 14.8282 52.5439 23.367 52.5439 33.9001C52.5439 44.4332 60.9998 52.972 71.4307 52.972Z" fill="#0336DB"/>
<path d="M71.4307 63.8353C87.7768 63.8353 101.075 50.4065 101.075 33.9003C101.075 17.3939 87.7768 3.96512 71.4307 3.96512C55.0846 3.96512 41.7861 17.3939 41.7861 33.9003C41.7861 50.4065 55.0846 63.8353 71.4307 63.8353ZM71.4307 7.98856C85.5796 7.98856 97.0909 19.6125 97.0909 33.9003C97.0909 48.1879 85.5798 59.8118 71.4307 59.8118C57.2818 59.8118 45.7705 48.1879 45.7705 33.9003C45.7705 19.6125 57.2816 7.98856 71.4307 7.98856Z" fill="black"/>
<path d="M68.085 38.9238C67.3947 38.0586 66.1408 37.9224 65.2837 38.6193C64.4269 39.3163 64.292 40.5827 64.9821 41.4479C66.0804 42.8246 67.6548 43.6067 69.2231 43.9815C69.3066 45.0149 70.1636 45.8272 71.2085 45.8272C72.204 45.8272 73.029 45.09 73.177 44.1265C75.9828 43.6208 77.9517 41.7344 78.2746 39.1662C78.6499 36.1831 76.7336 33.3222 73.6147 32.2089C73.4726 32.1582 73.3348 32.1087 73.2007 32.0602V28.1845C73.3666 28.2913 73.4904 28.408 73.5689 28.5206C74.2004 29.4301 75.4429 29.6504 76.344 29.0119C77.2446 28.3738 77.4624 27.1191 76.8303 26.2096C76.1057 25.1665 74.8403 24.2815 73.1995 23.917C73.164 22.8373 72.2863 21.9731 71.2085 21.9731C70.1082 21.9731 69.2163 22.8737 69.2163 23.9848V24.0522C69.094 24.0846 68.9709 24.1194 68.847 24.1572C66.7556 24.7935 65.1774 26.8388 65.009 29.1314C64.8417 31.4097 66.0358 33.3858 68.2031 34.4178C68.4394 34.5304 68.7846 34.6777 69.2161 34.8513V39.7555C68.7593 39.5479 68.3625 39.2717 68.085 38.9238ZM74.3219 38.6593C74.2478 39.2485 73.8527 39.6985 73.2007 39.9653V36.4707C74.0759 37.0916 74.4086 37.9713 74.3219 38.6593ZM68.9828 29.4289C69.0018 29.1694 69.087 28.9123 69.2165 28.6878V30.261C69.0362 30.025 68.9591 29.749 68.9828 29.4289Z" fill="white"/>
<path d="M101.992 72.3911C101.887 69.9491 100.766 67.8492 98.8342 66.4786C95.6513 64.2197 91.3553 64.612 88.6187 67.4111C88.531 67.5008 88.4517 67.5986 88.3822 67.7034L84.0117 74.2787C82.7881 71.3623 79.9453 69.3136 76.6424 69.3136L45.1993 69.2922H45.198C44.721 69.2922 44.2602 69.4648 43.8988 69.7789L36.0217 76.6221H30.2733V74.854C30.2733 73.743 29.3812 72.8423 28.2811 72.8423H19.5095V72.5671C19.5095 71.456 18.6174 70.5554 17.5173 70.5554H1.99219C0.891902 70.5554 0 71.456 0 72.5671V96.1601C0 97.2712 0.891902 98.1719 1.99219 98.1719H17.5173C18.6174 98.1719 19.5095 97.2712 19.5095 96.1601V95.8849H28.2809C29.381 95.8849 30.2731 94.9843 30.2731 93.8732V92.0156H36.8786L42.846 98.4034C43.2227 98.8066 43.747 99.0347 44.2951 99.0347C44.3045 99.0347 44.3138 99.0347 44.3232 99.0345L85.4646 98.4517C86.1065 98.4426 86.7048 98.1218 87.0715 97.5899L100.143 78.6347C100.152 78.6228 100.16 78.6107 100.168 78.5988C101.433 76.6766 102.081 74.472 101.992 72.3911ZM15.5251 94.1484H3.98438V74.5788H15.5251V94.1484ZM26.2887 91.8617H19.5095V76.8657H26.2887V91.8617ZM96.8612 76.3538L84.3863 94.4433L45.1434 94.9992L39.1875 88.6236C38.811 88.2207 38.2869 87.9924 37.7384 87.9924H30.2733V80.6456H36.7608C37.2378 80.6456 37.6986 80.473 38.0599 80.1589L45.9365 73.3163L76.6411 73.3372C78.8617 73.3372 80.6685 75.1952 80.6685 77.4791C80.6685 79.7628 78.8619 81.6206 76.6411 81.6206C76.6359 81.6206 76.6307 81.6208 76.6255 81.6208H59.4449C58.8982 81.6208 58.3755 81.8478 57.9992 82.2485L53.808 86.7125C53.051 87.5188 53.0846 88.792 53.8831 89.5565C54.2684 89.9252 54.7612 90.1083 55.2533 90.1083C55.7811 90.1083 56.3078 89.8979 56.6995 89.4806L60.3013 85.6443L80.1927 85.6451H80.1933C80.8571 85.6451 81.4775 85.3111 81.8474 84.7545L91.5757 70.119C92.9429 68.8324 95.0052 68.6787 96.5432 69.7706C98.6193 71.2438 98.275 74.1936 96.8612 76.3538Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,6 @@
<svg width="103" height="83" viewBox="0 0 103 83" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M73.2652 44.4426H96.068V65.7642H73.2652V44.4426Z" fill="#0336DB"/>
<path d="M6.93198 44.4426H29.7348V65.7642H6.93198V44.4426Z" fill="#0336DB"/>
<path d="M40.8369 44.4426H62.1631V79.3342H40.8369V44.4426Z" fill="#0336DB"/>
<path d="M95.3669 0.9888H7.63306C3.42415 0.9888 0 4.41315 0 8.62186V23.3092C0 27.012 1.97169 30.2627 4.92026 32.067V79.9995C4.92026 81.1105 5.82091 82.0112 6.93198 82.0112H96.068C97.1791 82.0112 98.0797 81.1105 98.0797 79.9995V32.067C101.028 30.2627 103 27.012 103 23.3092V8.62186C103 4.41315 99.5757 0.9888 95.3669 0.9888ZM82.4805 23.3092C82.4805 26.7479 79.683 29.5453 76.2441 29.5453C72.8053 29.5453 70.0078 26.7479 70.0078 23.3092V5.01224H82.4805V23.3092ZM65.9844 23.3092C65.9844 26.7479 63.1869 29.5453 59.748 29.5453C56.3092 29.5453 53.5117 26.7479 53.5117 23.3092V5.01224H65.9844V23.3092ZM49.4883 23.3092C49.4883 26.7479 46.6908 29.5453 43.252 29.5453C39.8131 29.5453 37.0156 26.7479 37.0156 23.3092V5.01224H49.4883V23.3092ZM32.9922 23.3092C32.9922 26.7479 30.1947 29.5453 26.7559 29.5453C23.317 29.5453 20.5195 26.7479 20.5195 23.3092V5.01224H32.9922V23.3092ZM4.02344 8.62186C4.02344 6.63147 5.64287 5.01224 7.63306 5.01224H16.4961V23.3092C16.4961 26.7479 13.6986 29.5453 10.2598 29.5453C6.82093 29.5453 4.02344 26.7479 4.02344 23.3092V8.62186ZM94.0563 77.9877H8.9437V33.4849C9.37461 33.5402 9.81397 33.569 10.2598 33.569C13.6362 33.569 16.6371 31.9294 18.5078 29.4047C20.3785 31.9294 23.3794 33.569 26.7559 33.569C30.1323 33.569 33.1332 31.9294 35.0039 29.4047C36.8746 31.9294 39.8755 33.569 43.252 33.569C46.6284 33.569 49.6293 31.9294 51.5 29.4047C53.3707 31.9294 56.3716 33.569 59.748 33.569C63.1245 33.569 66.1254 31.9294 67.9961 29.4047C69.8668 31.9294 72.8677 33.569 76.2441 33.569C79.6206 33.569 82.6215 31.9294 84.4922 29.4047C86.3629 31.9294 89.3638 33.569 92.7402 33.569C93.186 33.569 93.6254 33.5404 94.0563 33.4849V77.9877ZM98.9766 23.3092C98.9766 26.7479 96.1791 29.5453 92.7402 29.5453C89.3014 29.5453 86.5039 26.7479 86.5039 23.3092V5.01224H95.3669C97.3573 5.01224 98.9766 6.63147 98.9766 8.62186V23.3092Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,12 @@
<svg width="102" height="103" viewBox="0 0 102 103" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_59_952)">
<path d="M63.7912 95.3056H18.2303V26.7631H28.9V37.1243C28.9 38.2353 29.7919 39.136 30.8922 39.136C31.9923 39.136 32.8844 38.2353 32.8844 37.1243V26.7631H60.2063V37.1243C60.2063 38.2353 61.0984 39.136 62.1984 39.136C63.2985 39.136 64.1906 38.2353 64.1906 37.1243V26.7631H74.5273V48.0779H78.5117V24.7514C78.5117 23.6403 77.6196 22.7397 76.5195 22.7397H64.1906V17.7287C64.1906 7.95313 56.2751 0 46.5454 0C44.3154 0 42.1805 0.417834 40.2145 1.17967C38.2484 0.417834 36.1135 0 33.8835 0C24.1536 0 16.2381 7.95313 16.2381 17.7287V22.7395H3.90923C2.80914 22.7395 1.91704 23.6401 1.91704 24.7512V89.7613C1.91704 95.0368 6.17415 99.3288 11.4068 99.3288H69.8044C67.8365 98.2564 65.7517 96.925 63.7912 95.3056ZM46.5454 4.02344C54.0781 4.02344 60.2063 10.1717 60.2063 17.7287V22.7395H51.5287V17.7287C51.5287 12.2528 49.045 7.34901 45.1501 4.09425C45.6089 4.04758 46.0745 4.02344 46.5454 4.02344ZM40.2145 5.58614C44.5682 7.8801 47.5445 12.4624 47.5445 17.7289V22.7397H32.8844V17.7287C32.8844 12.4622 35.8607 7.8801 40.2145 5.58614ZM20.2225 17.7287C20.2225 10.1717 26.3508 4.02344 33.8835 4.02344C34.3544 4.02344 34.8198 4.04738 35.2786 4.09445C31.3837 7.34901 28.8998 12.253 28.8998 17.7289V22.7397H20.2223V17.7287H20.2225ZM14.2459 95.3056H11.4068C8.37113 95.3056 5.90142 92.8185 5.90142 89.7615V26.7631H14.2459V95.3056Z" fill="black"/>
<path d="M93.7992 54.7375C87.7766 54.7375 82.5819 51.191 80.165 46.0659H73.082C70.6651 51.1908 65.4705 54.7375 59.4479 54.7375C57.2051 54.7375 55.0772 54.2452 53.1641 53.3635V78.4196C53.1641 96.7462 76.6235 103 76.6235 103C76.6235 103 100.083 96.7462 100.083 78.4196V53.3635C98.1698 54.2452 96.0418 54.7375 93.7992 54.7375Z" fill="#0336DB"/>
<path d="M75.8531 81.6054C75.328 81.6054 74.8228 81.3957 74.4487 81.0201L70.1192 76.673C69.3389 75.8895 69.3353 74.6158 70.1113 73.828C70.8868 73.0401 72.1483 73.0364 72.9286 73.82L75.7249 76.6276L82.99 67.9301C83.6996 67.0807 84.9563 66.9733 85.7972 67.6895C86.6383 68.4059 86.745 69.6751 86.0354 70.5244L77.3762 80.891C77.0172 81.3207 76.4968 81.579 75.9406 81.6035C75.9113 81.6047 75.8824 81.6054 75.8531 81.6054Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_59_952">
<rect width="102" height="103" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -24,6 +24,8 @@ body{
display: none;
}
.text-infocard{
display: flex;
flex-direction: column;
@ -32,14 +34,14 @@ body{
text-align: center;
}
.text-subtitle{
.infocard-subtitle{
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.text-title{
.infocard-title{
font-weight: 500;
font-size: 48px;
line-height: 58px;
@ -47,7 +49,7 @@ body{
text-transform: uppercase;
}
.text-description{
.infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
@ -60,6 +62,33 @@ body{
align-items: center;
}
.top-cards{
display: flex;
justify-content: center;
padding: 178px 32px 80px;
gap: 26px;
}
.top-card{
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 100%;
max-width: 350px;
padding: 40px;
gap: 40px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.card-icon{
width: 100%;
height: 100%;
max-width: 103px;
max-height: 104px;
}
@media screen and (max-width: 414px){
.banner-principal-desktop,
.infocard-image-desktop{
@ -83,5 +112,39 @@ body{
.text-description{
width: 100%;
}
.top-cards{
flex-direction: column;
align-items: center;
padding: 90px 32px 80px;
}
}
@media screen and (min-width: 2000px){
.infocard-subtitle{
font-size: 40px;
}
.infocard-title{
font-size: 56px;
}
.infocard-description,
.card-description{
font-size: 30px;
}
.top-infocard{
display: flex;
flex-direction: column;
align-items: center;
}
.infocard-image{
width: 100%;
max-width: 400px;
align-items: unset;
}
.top-cards{
padding: 200px 300px 80px;
}
.top-card{
max-width: 450px;
height: 400px;
}
}

View File

@ -33,23 +33,49 @@
<section class="top-infocard">
<div class="text-infocard">
<h2 class="text-subtitle"> Lorem ipsum </h2>
<h1 class="text-title"> dolor sit amet </h1>
<h2 class="infocard-subtitle"> Lorem ipsum </h2>
<h1 class="infocard-title"> dolor sit amet </h1>
<p class="text-description">
<p class="infocard-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui.
</p>
</div>
</section>
<div class="infocard-image">
<img class="infocard-image-desktop" src="./Assets/SVG/Computer-image-desktop.svg" alt="infocard image desktop">
<img class="infocard-image-mobile" src="./Assets/SVG/Computer-image-mobile.svg" alt="infocard image mobile">
</div>
</section>
<div class="top-cards">
<div class="top-card">
<img class="card-icon" src="./Assets/SVG/Store-icon.svg" alt="Store icon"/>
<p class="card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="card-icon" src="./Assets/SVG/shopping-bag.svg" alt="Shopping-bag icon"/>
<p class="card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="card-icon" src="./Assets/SVG/Coin-icon.svg" alt="Coin icon">
<p class="card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Cras euismod enim non dui fringilla interdum.
</p>
</div>
</div>
</main>
</body>
</html>