-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (196 loc) · 8.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<title>Frontend Mentor | Article preview component</title>
<!-- <style>
* {
outline: 1px solid red;
}
</style> -->
<!-- google font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@500;700&display=swap"
rel="stylesheet"
/>
<!-- tailwindcss -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- custom configuration of tailwind -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
blue: {
100: "hsl(210, 46%, 95%)",
200: "hsl(212, 23%, 69%)",
300: "hsl(214, 17%, 51%)",
400: "hsl(217, 19%, 35%)",
},
},
fontFamily: {
sans: ["Manrope", "sans-serif"],
},
},
},
};
</script>
</head>
<body
class="min-h-screen flex flex-col justify-center items-center bg-blue-100"
>
<main>
<section
class="max-w-[87%] mx-auto bg-white rounded-xl shadow-xl overflow-hidden md:max-w-3xl lg:overflow-visible"
>
<article class="md:flex">
<div
class="md:shrink-0 lg:w-[40%] lg:overflow-hidden lg:rounded-tl-xl lg:rounded-bl-xl"
>
<img
class="h-48 w-full object-cover md:h-full md:w-48 lg:w-full"
src="./images/drawers.jpg"
alt="Green Wooden Drawers"
/>
</div>
<div class="relative pt-9 grid gap-5 lg:pt-0">
<div class="px-8 grid gap-3 lg:p-9 lg:pb-0">
<p
class="block font-bold text-blue-400 lg:text-[1.3rem] lg:leading-7"
>
Shift the overall look and feel by adding these wonderful
touches to furniture in your home
</p>
<p class="font-medium text-[0.83rem] text-blue-300">
Ever been in a room and felt like something was missing? Perhaps
it felt slightly bare and uninviting. I’ve got some simple tips
to help you make any room feel complete.
</p>
</div>
<div
id="profile-container"
class="px-8 py-4 flex items-center justify-between lg:p-9 lg:pt-0"
>
<div id="profile" class="flex gap-4 items-center">
<img
class="w-10 h-10 rounded-full"
src="./images/avatar-michelle.jpg"
alt="Michelle"
/>
<div>
<a class="text-sm text-blue-400 font-bold" href="#"
>Michelle Appleton</a
>
<p class="text-sm text-blue-200">28 Jun 2020</p>
</div>
</div>
<div
id="share-icon-container"
class="share-icon-container bg-blue-100 rounded-full p-2.5 cursor-pointer"
>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">
<path
id="share-icon"
class="fill-blue-400"
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"
/>
</svg>
</div>
</div>
<div
id="socials-container"
class="hidden w-full absolute bottom-0 px-8 py-4 bg-blue-400 flex items-center lg:w-auto lg:rounded-xl lg:shadow-xl lg:px-10 lg:py-2 lg:z-50 lg:bottom-[35%] lg:-right-[17%] lg:after:absolute lg:after:w-5 lg:after:h-5 lg:after:bg-blue-400 lg:after:left-[50%] lg:after:-translate-x-[50%] lg:after:top-[100%] lg:after:-translate-y-[50%] lg:after:rotate-45"
>
<div
id="socials"
class="w-full my-[0.75rem] flex gap-4 items-center lg:gap-5"
>
<p
class="uppercase tracking-[0.3em] font-medium text-xs text-blue-200 lg:text-sm"
>
Share
</p>
<a href="#">
<svg
class="fill-white"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
>
<path
d="M18.896 0H1.104C.494 0 0 .494 0 1.104v17.793C0 19.506.494 20 1.104 20h9.58v-7.745H8.076V9.237h2.606V7.01c0-2.583 1.578-3.99 3.883-3.99 1.104 0 2.052.082 2.329.119v2.7h-1.598c-1.254 0-1.496.597-1.496 1.47v1.928h2.989l-.39 3.018h-2.6V20h5.098c.608 0 1.102-.494 1.102-1.104V1.104C20 .494 19.506 0 18.896 0z"
/>
</svg>
</a>
<a href="#">
<svg
class="fill-white"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="17"
>
<path
d="M20 2.172a8.192 8.192 0 01-2.357.646 4.11 4.11 0 001.804-2.27 8.22 8.22 0 01-2.605.996A4.096 4.096 0 0013.847.248c-2.65 0-4.596 2.472-3.998 5.037A11.648 11.648 0 011.392 1a4.109 4.109 0 001.27 5.478 4.086 4.086 0 01-1.858-.513c-.045 1.9 1.318 3.679 3.291 4.075a4.113 4.113 0 01-1.853.07 4.106 4.106 0 003.833 2.849A8.25 8.25 0 010 14.658a11.616 11.616 0 006.29 1.843c7.618 0 11.922-6.434 11.663-12.205A8.354 8.354 0 0020 2.172z"
/>
</svg>
</a>
<a href="#">
<svg
class="fill-white"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
>
<path
d="M10 0C4.478 0 0 4.477 0 10c0 4.237 2.636 7.855 6.356 9.312-.088-.791-.167-2.005.035-2.868.182-.78 1.172-4.97 1.172-4.97s-.299-.6-.299-1.486c0-1.39.806-2.428 1.81-2.428.852 0 1.264.64 1.264 1.408 0 .858-.545 2.14-.828 3.33-.236.995.5 1.807 1.48 1.807 1.778 0 3.144-1.874 3.144-4.58 0-2.393-1.72-4.068-4.177-4.068-2.845 0-4.515 2.135-4.515 4.34 0 .859.331 1.781.745 2.281a.3.3 0 01.069.288l-.278 1.133c-.044.183-.145.223-.335.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.052 6.608-6.052 3.469 0 6.165 2.473 6.165 5.776 0 3.447-2.173 6.22-5.19 6.22-1.013 0-1.965-.525-2.291-1.148l-.623 2.378c-.226.869-.835 1.958-1.244 2.621.937.29 1.931.446 2.962.446 5.522 0 10-4.477 10-10S15.522 0 10 0z"
/>
</svg>
</a>
</div>
<div
id="share-icon-clicked-container"
class="share-icon-container bg-blue-300 rounded-full p-2.5 cursor-pointer lg:hidden"
>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">
<path
id="share-icon-clicked"
class="fill-white"
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"
/>
</svg>
</div>
</div>
</div>
</article>
</section>
</main>
<footer class="my-2 text-[0.65rem]">
Challenge by
<a
class="text-blue-300 hover:text-blue-400 hover:underline"
href="https://www.frontendmentor.io?ref=challenge"
target="_blank"
rel="noopener"
>Frontend Mentor</a
>. Coded by
<a
class="text-blue-300 hover:text-blue-400 hover:underline"
href="https://www.frontendmentor.io/profile/shivaprakash-sudo"
target="_blank"
rel="noopener"
>Shiva Prakash Pendem</a
>.
</footer>
<script src="./script.js"></script>
</body>
</html>