From 2da080ab230a094219fa6eb42208cdf276520710 Mon Sep 17 00:00:00 2001
From: famanakis <73799603+famanakis@users.noreply.github.com>
Date: Fri, 6 Oct 2023 18:32:29 -0600
Subject: [PATCH 1/2] update index.html and
Added language to tag
Added viewport meta data to
---
index.html | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/index.html b/index.html
index 89161c0..b948312 100644
--- a/index.html
+++ b/index.html
@@ -1,8 +1,9 @@
-
+
+
Coffee Shop
@@ -59,14 +60,14 @@
-
Good Coffee will always
- Find the good audience
- We provide you with the best coffee beans in the world
-
-
-
-
-

+
Good Coffee will always
+ Find the good audience
+
We provide you with the best coffee beans in the world
+
+
+
+
+
@@ -340,3 +341,6 @@ "A bad day with coffee is better than a good day without
+
+
+
From d39af7368e234f35c8fe02e9f034e67e98d41c06 Mon Sep 17 00:00:00 2001
From: famanakis <73799603+famanakis@users.noreply.github.com>
Date: Sat, 7 Oct 2023 10:00:24 -0600
Subject: [PATCH 2/2] update CSS - update HTML
HTML - removed inline styles for img in the menu. Added alt to each img tag, for accessibility purposes.
CSS - organized, grouped, categorized CSS for readability. Added box-sizing to all. Added styling from HTML to CSS for card images in Menu. Added flex property with justify content set to center for .card-body so images are centered in the menu.
---
css/styles.css | 250 +++++++++++++++++++++++++++----------------------
index.html | 28 +++---
2 files changed, 153 insertions(+), 125 deletions(-)
diff --git a/css/styles.css b/css/styles.css
index 866ffba..66d30fd 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -1,3 +1,9 @@
+*{
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+}
+
html{
scroll-behavior: smooth;
}
@@ -6,42 +12,53 @@ body{
font-family: 'Montserrat';
}
-#title{
- background-color: #CA965C;
- color: #fff;
+.container-fluid{
+ padding: 3% 15% 8%;
+}
+
+.logo{
+ border-radius: 80%;
}
+
+/*Typography*/
h1{
font-family: 'Montserrat', sans-serif;
font-size: 3.5rem;
line-height: 1.5;
- font-weight: bolder;
-
+ font-weight: bolder;
}
+
h2{
font-family: 'Montserrat', sans-serif;
font-size: 3rem;
line-height: 1.5;
font-weight: bold;
}
+
h3{
font-family: 'Montserrat';
font-weight: 800;
}
+
hr{
background-color: black;
height: 1px;
}
+
p{
color: #8f8f8f;
}
-.container-fluid{
- padding: 3% 15% 8%;
+
+#title{
+ background-color: #CA965C;
+ color: #fff;
}
-/*Navbar */
+/*Navbar*/
.navbar{
padding: 0 0 4.5rem ;
}
+
.navbar-brand{
font-family: 'Ubuntu', sans-serif;
font-size: 2.5rem;
@@ -56,154 +73,113 @@ p{
.nav-link{
font-size: 1.2rem;
font-family: 'Montserrat';
- font-weight: lighter;
-
+ font-weight: lighter;
}
-
/*Buttons*/
.download-button{
margin: 5% 3% 5% 0;
}
-/*Title image*/
+
+.btn-danger {
+ color: white;
+ background-color: #EB5757;
+ border: none;
+ border-radius: .3em;
+ font-weight: bold;
+}
+
+.btn-danger:hover {
+ background-color: #CC4C4C;
+}
+
+.btn-purchase {
+ display: block;
+ margin: 40px auto 80px auto;
+ font-size: 1.75em;
+}
+
+/*Title Image*/
.title-image{
width: 90%;
position: absolute;
- left: 20%;
-
-
+ left: 20%;
}
/*Features*/
#features{
padding: 7% 15%;
background-color: #fff;
- position: relative;
-
-
-
+ position: relative;
}
+
.feature-box{
text-align: center;
- padding: 2%;
-
-
+ padding: 2%;
}
+
.icon{
color: #ef8172;
margin-bottom: 1rem;
-
}
+
.icon:hover{
color: #ff4c68;
}
-/*testimonials*/
+
+/*Testimonials*/
#testimonials{
text-align: center;
-
background-color: #876445;
color: #fff;
}
+
.carousel-item{
padding: 4% 8%;
}
+
.testimonial-image{
width: 70rem;
height: 33rem;
-
margin: 20px;
-
}
+
#press{
background-color: #ef8172;
text-align: center;
padding-bottom: 2%;
}
+
.press-logo{
width: 15%;
margin: 20px 20px 50px;
}
+/*Menu Pricing*/
#pricing{
padding: 100px;
}
+
.pricing-column{
padding: 3% 2%;
}
-@media (max-width:1028px){
- #title{
- text-align: center;
- }
- .title-image{
- position: static;
- transform: rotate(0deg);
- }
- .testimonial-image{
- width: 36rem;
- height: 20rem;
- }
-}
-@media (max-width:768px){
- .testimonial-image{
- width: 25rem;
- height: 15rem;
- }
-
-}
-
-
-#cta{
- background-color: #CA965C;
- color: #fff;
- text-align: center;
- padding: 7% 15%;
+.card-body {
+ display: flex;
+ justify-content: center;
}
-.cta-heading{
- font-family: 'Montserrat', sans-serif;
- font-size: 3rem;
- line-height: 1.5;
- font-weight: bold;
-
-}
-#footer{
- padding: 2rem 4rem;
-}
-#footer a{
- color: #CA965C;
-}
-.social-media-icons {
- margin-top: 1rem;
-}
-.social-media-icons a:hover {
- color: #876445 !important;
-}
-.social-icon{
- margin: 20px 10px;
-}
-.copyright {
- color: #CA965C;
-}
.card-image{
width: 21rem;
- height: 18rem;
-
-}
-.payment{
- width: 50%;
-
-}
-.pay-text{
- color: #fff;
-}
-.logo{
- border-radius: 80%;
+ height: 18rem;
+ max-width: 100%;
}
+
+/*Cart*/
.content-section {
- margin: 1em;
-
+ margin: 1em;
}
+
.container {
max-width: 900px;
margin: 0 auto;
@@ -255,18 +231,6 @@ p{
border-radius: 10px;
}
-.btn-danger {
- color: white;
- background-color: #EB5757;
- border: none;
- border-radius: .3em;
- font-weight: bold;
-}
-
-.btn-danger:hover {
- background-color: #CC4C4C;
-}
-
.cart-quantity-input {
height: 34px;
width: 50px;
@@ -306,12 +270,54 @@ p{
font-size: 1.1em;
}
-.btn-purchase {
- display: block;
- margin: 40px auto 80px auto;
- font-size: 1.75em;
+.payment{
+ width: 50%;
}
+.pay-text{
+ color: #fff;
+}
+
+#cta{
+ background-color: #CA965C;
+ color: #fff;
+ text-align: center;
+ padding: 7% 15%;
+}
+
+.cta-heading{
+ font-family: 'Montserrat', sans-serif;
+ font-size: 3rem;
+ line-height: 1.5;
+ font-weight: bold;
+}
+
+/*Footer*/
+#footer{
+ padding: 2rem 4rem;
+}
+
+#footer a{
+ color: #CA965C;
+}
+
+.social-media-icons {
+ margin-top: 1rem;
+}
+
+.social-media-icons a:hover {
+ color: #876445 !important;
+}
+
+.social-icon{
+ margin: 20px 10px;
+}
+
+.copyright {
+ color: #CA965C;
+}
+
+
/* Scroll To Top */
#backToTop {
display: none; /* Hidden by default */
@@ -327,8 +333,30 @@ p{
padding: 15px; /* Some padding */
border-radius: 10px; /* Rounded corners */
font-size: 18px; /* Increase font size */
- }
+}
#backToTop:hover {
background-color: #555; /* Add a dark-grey background on hover */
- }
\ No newline at end of file
+}
+
+/*Media Queries*/
+@media (max-width:1028px){
+ #title{
+ text-align: center;
+ }
+ .title-image{
+ position: static;
+ transform: rotate(0deg);
+ }
+ .testimonial-image{
+ width: 36rem;
+ height: 20rem;
+ }
+}
+
+@media (max-width:768px){
+ .testimonial-image{
+ width: 25rem;
+ height: 15rem;
+ }
+}
\ No newline at end of file
diff --git a/index.html b/index.html
index b948312..f9d6a58 100644
--- a/index.html
+++ b/index.html
@@ -88,7 +88,7 @@ Quality Assured
Made with smile
-
Delcious taste.
+
Delicious taste.
@@ -155,13 +155,13 @@
Menu
COLD-BREWED
-

-
-
+
+
+
+
@@ -170,7 +170,7 @@
Menu
AMERICANO
-

+
-

+
@@ -206,7 +206,7 @@ Menu
-

+
@@ -225,7 +225,7 @@ Menu
-

+
@@ -244,7 +244,7 @@ Menu
-

+
@@ -270,7 +270,7 @@
-

+
COLD-BREWED
₹299
@@ -281,7 +281,7 @@
-

+
AMERICANO
₹399