From 5918d39091844cf1389a09453cee22e7faa5e7de Mon Sep 17 00:00:00 2001 From: Thuan Bui <9248622+10h30@users.noreply.github.com> Date: Sat, 8 Feb 2025 19:59:45 +0900 Subject: [PATCH] Add more style to style.css --- index.html | 31 ++++++++++++++++++------------- style.css | 48 +++++++++++++++++++++++++++++++++++------------- 2 files changed, 53 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index d1b9565..4790ee6 100644 --- a/index.html +++ b/index.html @@ -8,17 +8,19 @@
+
+
-
- +
+

This is awesome

This is an awesome website that I am developing.

@@ -27,9 +29,10 @@
+
-
-

This is Product List

+
+

This is Product List

Product 1
Product 2
@@ -37,12 +40,14 @@
Product 4
-
-
When you can’t find someone to follow, you have to find a way to lead by example. - Roxane Gay -
+
+
+
When you can’t find someone to follow, you have to find a way to lead by example. + Roxane Gay +
+
-
+

Call to Action. It's Time

@@ -53,6 +58,6 @@
-
Footer
+ \ No newline at end of file diff --git a/style.css b/style.css index cbf884a..9e4046c 100644 --- a/style.css +++ b/style.css @@ -57,12 +57,16 @@ body { font-family: Roboto; margin: 0 } -header { - background-color: var(--dark-background); - color: #F9FAF8; +.header-wrap, +.hero-wrap { + max-width: 1024px; display: flex; justify-content: space-between; align-items: center; +} +header { + background-color: var(--dark-background); + color: #F9FAF8; padding: 20px 40px; } @@ -76,7 +80,12 @@ header .nav ul { gap: 20px } -.hero { +header .nav ul a { + color: #e5e7eb; + font-size: 18px; + text-decoration: none; +} +#hero { background-color: var(--dark-background); color: #F9FAF8; display: flex; @@ -85,11 +94,17 @@ header .nav ul { padding: 40px; } -.hero h1 { +#hero h1 { font-size: 48px; color: #F9FAF8; font-weight: 900; } + +#hero p { + color: #e5e7eb; + font-size: 18px; + +} .button { background-color: #3882F6; color: #FFF; @@ -105,14 +120,17 @@ header .nav ul { border: 1px solid #FFF; } -.hero div { +#hero div { flex: 1; } -.product { - padding: 40px; +#product { + padding: 60px 0; text-align: center; } +#product h2 { + margin-bottom: 30px; +} .product-loop { display: flex; @@ -120,14 +138,17 @@ header .nav ul { .product-loop div { flex: 1; } -.quote { +#quote { background: #e5e7eb; - padding: 40px; font-size: 36px; color: #1F2937; font-style: italic; font-weight: 300; } +.quote-wrap { + max-width: 900px; + padding: 60px 40px; +} cite { font-size: 18px; @@ -136,11 +157,11 @@ cite { font-weight: 600; } -.call-to-action { +#cta { padding: 40px; } -.call-to-action .blue-box { +#cta .blue-box { background-color: #3882F6; padding: 20px; display: flex; @@ -152,6 +173,7 @@ cite { footer { background-color: var(--dark-background); color: #F9FAF8; - padding: 10px 40px; + padding: 20px 40px; text-align: center; + } \ No newline at end of file