Skip to content

Commit 4a90024

Browse files
committed
added challenges
1 parent fd06e43 commit 4a90024

21 files changed

+1213
-0
lines changed
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Front-end Style Guide
2+
3+
## Layout
4+
5+
The designs were created to the following widths:
6+
7+
- Mobile: 375px
8+
- Desktop: 1440px
9+
10+
> 💡 These are just the design sizes. Ensure content is responsive and meets WCAG requirements by testing the full range of screen sizes from 320px to large screens.
11+
12+
## Colors
13+
14+
- Very Dark Grayish Blue: hsl(217, 19%, 35%)
15+
- Desaturated Dark Blue: hsl(214, 17%, 51%)
16+
- Grayish Blue: hsl(212, 23%, 69%)
17+
- Light Grayish Blue: hsl(210, 46%, 95%)
18+
19+
## Typography
20+
21+
### Body Copy
22+
23+
- Font size: 13px
24+
25+
### Headings
26+
27+
- Family: [Manrope](https://fonts.google.com/specimen/Manrope)
28+
- Weights: 500, 700
29+
30+
## Icons
31+
32+
We provide SVGs for the social icons. But please feel free to use a font icon library if you like. Some suggestions can be found below:
33+
34+
- [Font Awesome](https://fontawesome.com)
35+
- [IcoMoon](https://icomoon.io)
36+
- [Ionicons](https://ionicons.com)
37+
38+
> 💎 [Upgrade to Pro](https://www.frontendmentor.io/pro?ref=style-guide) for design file access to see all design details and get hands-on experience using a professional workflow with tools like Figma.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"scripts": {
3+
"start": "npx tailwindcss -i ./src/input.css -o ./src/output.css --watch"
4+
},
5+
"devDependencies": {
6+
"prettier": "^3.2.5",
7+
"prettier-plugin-tailwindcss": "^0.5.14",
8+
"tailwindcss": "^3.4.3"
9+
},
10+
"prettier": {
11+
"plugins": [
12+
"prettier-plugin-tailwindcss"
13+
]
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

0 commit comments

Comments
 (0)