From f7991fef966662852dec0598e63f2f7e7f8343ac Mon Sep 17 00:00:00 2001
From: Hadeed Ahmad <hadeedji@gmail.com>
Date: Mon, 1 Jul 2024 00:09:15 +0500
Subject: [PATCH] Finish

---
 index.html |  7 +++---
 styles.css | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 65 insertions(+), 7 deletions(-)

diff --git a/index.html b/index.html
index 1057dfc..f92f12a 100644
--- a/index.html
+++ b/index.html
@@ -25,19 +25,20 @@
         </div>
 
         <div class="content">
-          <p>Learning</p>
+          <p class="learning">Learning</p>
 
-          <p>Published 21 Dec 2023</p>
+          <p class="date">Published 21 Dec 2023</p>
 
           <h1>HTML & CSS foundations</h1>
 
-          <p>
+          <p class="description">
             These languages are the backbone of every website, defining
             structure, content, and presentation.
           </p>
         </div>
 
         <footer>
+          <img width="32px" height="32px" src="/images/image-avatar.webp" alt="Author avatar">
           <p>Greg Hooper</p>
         </footer>
       </div>
diff --git a/styles.css b/styles.css
index 349eae1..c2b8e66 100644
--- a/styles.css
+++ b/styles.css
@@ -45,16 +45,13 @@ body {
   background-color: white;
 
   padding: 24px;
+  max-width: 24rem;
 
   .image {
     border-radius: 10px;
-
-    max-width: fit-content;
-    height: fit-content;
     overflow: hidden;
 
     img {
-      width: auto;
       height: 200px;
       object-fit: cover;
     }
@@ -64,6 +61,66 @@ body {
     display: flex;
     flex-direction: column;
     gap: 12px;
+
+    .learning {
+      border-radius: 4px;
+      background-color: #f4d04e;
+      padding: 4px 12px;
+      width: fit-content;
+
+      font-weight: 800;
+      font-size: 14px;
+      line-height: 1.5;
+    }
+
+    .date {
+      font-weight: 500;
+      font-size: 14px;
+      line-height: 1.5;
+    }
+
+    h1 {
+      font-weight: 800;
+      font-size: 24px;
+      line-height: 1.5;
+    }
+
+    .description {
+      color: #7f7f7f;
+      font-weight: 500;
+      font-size: 16px;
+      line-height: 1.5;
+    }
+
+    @media screen and (max-width: 576px) {
+      .learning {
+        font-size: 12px;
+      }
+
+      .date {
+        font-size: 12px;
+      }
+
+      & h1 {
+        font-size: 20px;
+      }
+
+      .description {
+        font-size: 14px;
+      }
+    }
+  }
+
+  footer {
+    display: flex;
+    align-items: center;
+    gap: 12px;
+
+    p {
+      font-weight: 800;
+      font-size: 14px;
+      line-height: 1.5;
+    }
   }
 }