File tree Expand file tree Collapse file tree 2 files changed +46
-11
lines changed
fe-mentor/blog-preview-card Expand file tree Collapse file tree 2 files changed +46
-11
lines changed Original file line number Diff line number Diff line change 3838 </ div >
3939 < div class ="button "> Learning</ div >
4040 < div class ="published "> Published 21 Dec 2023</ div >
41- < h2 > HTML & CSS foundations These </ h2 >
41+ < h2 > HTML & CSS foundations</ h2 >
4242 < div class ="content ">
43- languages are the backbone of every website, defining structure,
44- content, and presentation. Greg Hooper
43+ These languages are the backbone of every website, defining
44+ structure, content, and presentation.
4545 </ div >
46- < div class ="attribution ">
47- Challenge by
48- < a
49- href ="https://www.frontendmentor.io?ref=challenge "
50- target ="_blank "
51- > Frontend Mentor</ a
52- > . Coded by < a href ="# "> Your Name Here</ a > .
46+ < div class ="author ">
47+ < img src ="assets/images/image-avatar.webp " alt ="" / height="50px">
48+ Greg Hooper
5349 </ div >
5450 </ div >
5551 < script >
Original file line number Diff line number Diff line change 33 --white : # fff ;
44 --gray-500 : hsl (0 , 0% , 42% );
55 --gray-950 : hsl (0 , 0% , 7% );
6+ --black : # 000 ;
67}
78body {
89 background-color : var (--yellow );
910 justify-content : center;
1011 align-items : baseline;
1112 min-height : 110vh ;
13+ display : flex;
1214}
1315.wrapper {
1416 margin-block : auto;
1517 background-color : var (--white );
16- padding : 10 px ;
18+ padding : 20 px ;
1719 border : 1px solid black;
20+ width : fit-content;
21+ margin-inline : auto;
22+ border-radius : 10px ;
23+ border : 1px solid var (--black );
24+ display : flex;
25+ gap : 10px ;
26+ flex-direction : column;
27+ }
28+
29+ .content {
30+ width : 37ch ;
31+ color : var (--gray-500 );
32+ padding-bottom : 10px ;
33+ }
34+ .published {
35+ font-size : 0.9rem ;
36+ }
37+ .button {
38+ padding : 6px 15px ;
39+ background-color : var (--yellow );
40+ width : fit-content;
41+ font-weight : bold;
42+ border-radius : 5px ;
43+ }
44+ .image img {
45+ border-radius : 10px ;
46+ margin-bottom : 10px ;
47+ }
48+ .author {
49+ font-weight : bold;
50+ display : flex;
51+ gap : 15px ;
52+ align-items : center;
53+ }
54+ h2 : hover {
55+ color : var (--yellow );
56+ cursor : pointer;
1857}
You can’t perform that action at this time.
0 commit comments