You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution : [Live Site URL](https://frontend-mentor-challenges-ecru.vercel.app/)
4
+
5
+
This is a solution to the [Article preview component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/article-preview-component-dYBN_pYFT).
6
+
7
+

8
+
9
+
## The challenge
10
+
11
+
Your challenge is to build out this article preview component and get it looking as close to the design as possible.
12
+
13
+
You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.
14
+
15
+
The only JavaScript you'll need for this challenge is to initiate the share options when someone clicks the share icon.
16
+
17
+
Your users should be able to:
18
+
19
+
- View the optimal layout for the component depending on their device's screen size
20
+
- See the social media share links when they click the share icon
21
+
22
+
## Experience
23
+
24
+
### Built with
25
+
26
+
- HTML5
27
+
- CSS3
28
+
- Grid
29
+
- Flexbox
30
+
- Vanilla JavaScript
31
+
32
+
### What I learned
33
+
34
+
It is easier to use relative and absolute position for elements with fixed height and width. At first I built the article component with responsive sizing but had to switch to fixed sizing for it to make the share menu to be positioned properly.
35
+
36
+
Learned about some new elements related to the element `article`.
Re-learned and used the `fill` attribute for SVGs. (MDN link)[https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill]
40
+
41
+
42
+
### Continued development
43
+
44
+
### Continued Learning
45
+
46
+
This challenge was done with the design principles of mobile-first philosophy. Slowly and surely getting the hang of it and moving away from desktop-view first.
47
+
48
+
### Useful Resources
49
+
50
+
### Challenges
51
+
52
+
53
+
---
54
+
55
+
###### Pending Tasks
56
+
57
+
- Final challenge screenshot(s) (desktop and mobile)
0 commit comments