|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <link |
| 7 | + rel="icon" |
| 8 | + type="image/png" |
| 9 | + sizes="32x32" |
| 10 | + href="./images/favicon-32x32.png" |
| 11 | + /> |
| 12 | + <title>Frontend Mentor | Article preview component</title> |
| 13 | + <link rel="stylesheet" href="./src/output.css" /> |
| 14 | + <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| 15 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| 16 | + <link |
| 17 | + href=" https://fonts.googleapis.com/css2?family=Manrope:[email protected]&display=swap" |
| 18 | + rel="stylesheet" |
| 19 | + /> |
| 20 | + </head> |
| 21 | + <body |
| 22 | + class="grid min-h-screen place-items-center bg-light-grayish-blue p-4 font-body text-body font-normal text-desaturated-dark-blue" |
| 23 | + > |
| 24 | + <div |
| 25 | + class="m-auto grid max-w-3xl overflow-hidden rounded-xl bg-white shadow-2xl shadow-desaturated-dark-blue/20 sm:grid-cols-[1fr_1.25fr] sm:overflow-visible" |
| 26 | + > |
| 27 | + <img class="h-full object-cover" src="./images/drawers.jpg" alt="" /> |
| 28 | + <main class="grid gap-4 p-8"> |
| 29 | + <h1 class="text-xl font-bold text-very-dark-grayish-blue"> |
| 30 | + Shift the overall look and feel by adding these wonderful touches to |
| 31 | + furniture in your home |
| 32 | + </h1> |
| 33 | + |
| 34 | + <p> |
| 35 | + Ever been in a room and felt like something was missing? Perhaps it |
| 36 | + felt slightly bare and uninviting. I’ve got some simple tips to help |
| 37 | + you make any room feel complete. |
| 38 | + </p> |
| 39 | + |
| 40 | + <div class="relative flex items-center justify-between"> |
| 41 | + <div class="flex items-center gap-4"> |
| 42 | + <img |
| 43 | + class="h-10 w-10 rounded-full" |
| 44 | + src="./images/avatar-michelle.jpg" |
| 45 | + alt="" |
| 46 | + /> |
| 47 | + <div> |
| 48 | + <p class="font-bold text-very-dark-grayish-blue"> |
| 49 | + Michelle Appleton |
| 50 | + </p> |
| 51 | + <time datetime="2020-06-28">28 Jun 2020</time> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <button |
| 55 | + id="share-btn" |
| 56 | + class="group peer rounded-full bg-light-grayish-blue p-2 hover:bg-desaturated-dark-blue hover:fill-white active:bg-very-dark-grayish-blue" |
| 57 | + aria-label="Share" |
| 58 | + > |
| 59 | + <svg |
| 60 | + class="fill-desaturated-dark-blue group-hover:fill-white" |
| 61 | + xmlns="http://www.w3.org/2000/svg" |
| 62 | + width="15" |
| 63 | + height="13" |
| 64 | + > |
| 65 | + <path |
| 66 | + d="M15 6.495L8.766.014V3.88H7.441C3.33 3.88 0 7.039 0 10.936v2.049l.589-.612C2.59 10.294 5.422 9.11 8.39 9.11h.375v3.867L15 6.495z" |
| 67 | + /> |
| 68 | + </svg> |
| 69 | + </button> |
| 70 | + <div |
| 71 | + id="desktop-tooltip" |
| 72 | + class="invisible absolute flex transform items-center gap-4 rounded-md bg-very-dark-grayish-blue p-4 tracking-[0.25rem] md:translate-x-[40%] lg:-top-16 lg:left-1/2 lg:peer-hover:visible" |
| 73 | + > |
| 74 | + <span class="uppercase">Share</span> |
| 75 | + <a href="#" aria-label="facebook page" |
| 76 | + ><img src="./images/icon-facebook.svg" alt="" |
| 77 | + /></a> |
| 78 | + <a href="#" aria-label="twitter page" |
| 79 | + ><img src="./images/icon-twitter.svg" alt="" |
| 80 | + /></a> |
| 81 | + <a href="#" aria-label="pinterest page" |
| 82 | + ><img src="./images/icon-pinterest.svg" alt="" |
| 83 | + /></a> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + </main> |
| 87 | + </div> |
| 88 | + |
| 89 | + <script |
| 90 | + src="https://kit.fontawesome.com/69d7b3330f.js" |
| 91 | + crossorigin="anonymous" |
| 92 | + ></script> |
| 93 | + <script src="./src/script.js"></script> |
| 94 | + </body> |
| 95 | +</html> |
0 commit comments