Skip to content

Commit dc47b9b

Browse files
committed
update form and cards
1 parent 620becf commit dc47b9b

File tree

2 files changed

+60
-50
lines changed

2 files changed

+60
-50
lines changed

index.html

+32-34
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ <h2 class="title2">
210210

211211
<div class="featuredProducts">
212212
<h2>Featured Products</h2>
213-
<div class="row featured-container mb-5">
213+
<div class="row gap-3 gap-md-0 d-flex flex-column flex-md-row featured-container mb-5">
214214
<div class="col mx-2 featured_item">
215215
<img src="assets/strawberries.jpg" alt="sample" class="" />
216216

@@ -437,9 +437,7 @@ <h2 class="">Participating Farms and Vendors</h2>
437437

438438
<h2 class="text-center py-4">Testimonial from Satisfied Consumers</h2>
439439

440-
<div
441-
class="row flex-column d-flex flex-md-row client-card-say justify-content-around gap-2 position-relative"
442-
>
440+
<div class="row px-4 flex-column d-flex flex-md-row client-card-say justify-content-around gap-2 position-relative">
443441
<div class="c1"></div>
444442
<div class="c2"></div>
445443
<div class="col client">
@@ -530,39 +528,41 @@ <h2 class="text-center py-4">Testimonial from Satisfied Consumers</h2>
530528

531529
<!-- SECTION COUNTER-->
532530

533-
<div class="row justify-content-center section-page">
534-
<div class="column section-1">
535-
<div class="card section">
536-
<p><i class="fa fa-user"></i></p>
537-
<h3>5000+</h3>
538-
<p>CUSTOMERS</p>
531+
<section class="container py-5">
532+
<div class="row d-flex flex-column flex-md-row justify-content-center section-page">
533+
<div class="col section-1 m-0">
534+
<div class="card section py-3">
535+
<p><i class="fa fa-user"></i></p>
536+
<h3>5000+</h3>
537+
<p class="m-0">CUSTOMERS</p>
538+
</div>
539539
</div>
540-
</div>
541540

542-
<div class="column section-1">
543-
<div class="card section">
544-
<p><i class="fa-solid fa-handshake-angle"></i></p>
545-
<h3>20+</h3>
546-
<p>FARMER VENDORS</p>
541+
<div class="col section-1 m-0">
542+
<div class="card section py-3">
543+
<p><i class="fa-solid fa-handshake-angle"></i></p>
544+
<h3>20+</h3>
545+
<p class="m-0">FARMER VENDORS</p>
546+
</div>
547547
</div>
548-
</div>
549548

550-
<div class="column section-1">
551-
<div class="card section">
552-
<p><i class="fa-solid fa-face-smile"></i></p>
553-
<h3>98%</h3>
554-
<p>SATISFACTION RATING</p>
549+
<div class="col section-1 m-0">
550+
<div class="card section py-3">
551+
<p><i class="fa-solid fa-face-smile"></i></p>
552+
<h3>98%</h3>
553+
<p class="m-0">SATISFACTION RATING</p>
554+
</div>
555555
</div>
556-
</div>
557556

558-
<div class="column section-1">
559-
<div class="card section">
560-
<p><i class="fa-solid fa-chart-simple"></i></p>
561-
<h3>5/5</h3>
562-
<p>SALES PERFORMANCE SCORE</p>
557+
<div class="col section-1 m-0">
558+
<div class="card section py-3">
559+
<p><i class="fa-solid fa-chart-simple"></i></p>
560+
<h3>5/5</h3>
561+
<p class="m-0">SALES PERFORMANCE SCORE</p>
562+
</div>
563563
</div>
564564
</div>
565-
</div>
565+
</section>
566566
<!-------------------------footer section area-------------------->
567567

568568
<section class="becomeAVendor">
@@ -576,14 +576,12 @@ <h5 class="text-center text-white">
576576
<div class="container d-flex justify-content-center align-items-center">
577577
<form action="" method="get">
578578
<div class="form-container">
579-
<label for="name" class="user-label">Name</label>
580579
<input
581580
type="text"
582581
name="name"
583582
placeholder="name"
584-
class="user-input"
583+
class="user-input my-3"
585584
/>
586-
<label for="email" class="user-label">Email</label>
587585
<input type="email" placeholder="email" class="user-input" />
588586
<button class="btn">Partner With Us</button>
589587
</div>
@@ -594,7 +592,7 @@ <h5 class="text-center text-white">
594592
<!-------------------------footer section area-------------------->
595593

596594
<section class="footer py-5">
597-
<div class="row container">
595+
<div class="row d-flex flex-column flex-md-row container">
598596
<div class="col" id="footer">
599597
<div class="aboutUsFooter">
600598
<ul class="d-block list-unstyled gap-4">
@@ -623,7 +621,7 @@ <h5 class="text-center text-white">
623621
<div class="social_media_container d-flex justify-content-center align-items-center">
624622
<div class="ul-container">
625623
<h5>Social Media</h5>
626-
<ul class="list-unstyled">
624+
<ul class="list-unstyled d-flex gap-3 d-md-block d-md-block">
627625
<li><a href="#" class="text-dark">
628626
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-facebook" viewBox="0 0 16 16">
629627
<path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"/>

style.css

+28-16
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ body {
267267
/*------------------------why buy local styling-------------------*/
268268

269269
.whyByLocal {
270-
overflow: hidden;
271270
padding-bottom: 5rem;
272271
}
273272
.whyBuyLocal-container {
@@ -376,33 +375,28 @@ body {
376375

377376
/*----------------------section counter--------------------*/
378377

379-
.section-page {
380-
margin: 2% 2%;
381-
}
382-
383378
/* Float four columns side by side */
384-
.section-1 {
385-
float: left;
386-
width: 20%;
387-
}
388379

389380
/* This will Clear floats after the columns */
390-
.row:after {
391-
content: "";
392-
display: table;
393-
clear: both;
394-
}
381+
395382

396383
/* Style the counter cards */
397-
.section {
384+
/* .section {
398385
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
399386
padding: 16px;
400387
text-align: center;
401388
background-color: #ffffff;
402389
font-size: 20px;
403390
opacity: 0.9;
391+
} */
392+
.card{
393+
display: flex;
394+
flex-direction: column;
395+
align-items: center;
396+
box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
404397
}
405398

399+
406400
.fa,
407401
.fa-solid,
408402
.fa-brands {
@@ -435,7 +429,6 @@ body {
435429
}
436430

437431
.section-1 {
438-
width: 100%;
439432
display: block;
440433
margin-bottom: 10px;
441434
margin-top: 5%;
@@ -519,3 +512,22 @@ form input {
519512
.ul-container ul > li{
520513
margin: .8rem 0;
521514
}
515+
516+
517+
518+
519+
520+
521+
522+
523+
/*---------------------------for media query-------------------*/
524+
525+
526+
@media screen and (max-width: 600px){
527+
.about {
528+
overflow: hidden;
529+
}
530+
.whyByLocal {
531+
overflow: hidden;
532+
}
533+
}

0 commit comments

Comments
 (0)