-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
277 lines (256 loc) · 8.99 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>⚛️ Atomic Design in React</title>
<style>
:root {
--slide-active: #de89e3;
--highlight: #de89e372;
--radius: .5rem;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
}
body {
margin: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.mt10 {
margin-top: 10rem;
}
.mbs {
margin-bottom: .7rem;
}
.sm {
font-size: 3.2rem;
}
.xs {
font-size: 2rem;
}
.center {
display: flex;
min-height: 100vh;
justify-content: center;
align-items: center;
}
.center--col {
flex-direction: column;
}
.highlight {
background-color: var(--highlight);
padding: 0 2rem;
border-radius: var(--radius);
}
.slide-jumper {
position: fixed;
right: 0;
bottom: 0;
font-size: 1.3rem;
}
.slide-jumper > div {
background-color: var(--highlight);
margin: 2rem;
width: 2.5rem;
height: 2.5rem;
border-radius: var(--radius);
}
.slide-jumper > div > a {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: inherit;
text-decoration: none;
}
.slide-active {
border: .3rem solid var(--slide-active);
}
.heading {
font-size: 6.4rem;
margin-bottom: 1.5rem;
}
.point {
font-size: 3.2rem;
margin-bottom: 1rem;
}
</style>
</head>
<body>
<!--slide jumper-->
<div class="slide-jumper">
<div class="slide-active"><a href="#1">1</a></div>
<div><a href="#2">2</a></div>
<div><a href="#3">3</a></div>
<div><a href="#4">4</a></div>
<div><a href="#5">5</a></div>
<div><a href="#6">6</a></div>
<div><a href="#7">7</a></div>
<div><a href="#8">8</a></div>
<div><a href="#9">9</a></div>
<div><a href="#10">10</a></div>
<div><a href="#11">11</a></div>
<div><a href="#12">12</a></div>
<div><a href="#13">13</a></div>
</div>
<!--slide -->
<div class="center center--col" id="1">
<h1 class="heading">
⚛️ <mark class="highlight">Atomic Design</mark> in React
</h1>
<p class="sm mt10 mbs">Dheeraj Mahra</p>
<p class="xs mbs">Front End Developer @Active.Ai</p>
<p class="xs">Nov 2020</p>
</div>
<!--slide -->
<div class="center" id="2">
<div>
<h1 class="heading">What is Atomic Design? 🧐</h1>
<p class="point">○ A <u>design methodology</u> introduced by Brad Frost (~5 years ago)</p>
<p class="point">○ Focuses on <u>modular</u> and <u>component-based</u> design</p>
<p class="point">○ Made for designing User Interfaces</p>
</div>
</div>
<!--slide -->
<div class="center" id="3">
<div>
<h1 class="heading">Where this idea came from? 🌱</h1>
<p class="point">○ from the universe</p>
<p class="point">○ Let's think from the angle of chemistry</p>
<p class="point">○ Everything around us is made up of atoms 🦠</p>
<p class="point">○ atoms + atoms -----> molecules 💧</p>
<p class="point">○ molecules + molecules -----> more complex organisms 💩</p>
<p class="point">○ Easy to understand complex organisms, </p>
<p class="point">○ if we have good knowledge of what it is made up of</p>
</div>
</div>
<!--slide -->
<div class="center" id="4">
<div>
<h1 class="heading">Can this be applied to UI? 🤔</h1>
<p class="point">Atomic chemistry idea + Brad Frost's 🧠 = <mark class="highlight">ATOMIC DESIGN</mark></p>
</div>
</div>
<!--slide -->
<div class="center" id="5">
<div>
<h1 class="heading">5 levels of Atomic Design 🚀</h1>
<img src="atomic.png" width="100%">
</div>
</div>
<!--slide -->
<div class="center" id="6">
<div>
<h1 class="heading">Let's break Instagram's UI 🧩</h1>
</div>
</div>
<!--slide -->
<div class="center" id="7">
<div style="text-align: center;">
<img src="instagram-atomic.png" width="80%">
</div>
</div>
<!--slide -->
<div class="center" id="8">
<div>
<h1 class="heading">Advantages of Atomic Design 😍</h1>
<p class="point">○ Abstract and Concrete view of the UI</p>
<p class="point">○ Separation between structure and content</p>
<p class="point">○ Reusability</p>
<p class="point">○ Modular Design</p>
<p class="point">○ Maintainable project structure</p>
<p class="point">○ Beautiful for creating Design Systems</p>
</div>
</div>
<!--slide -->
<div class="center" id="9">
<div>
<h1 class="heading">Implementation in React ⚛️</h1>
<p class="point">"Talk is cheap, show me the code!"</p>
</div>
</div>
<!--slide -->
<div class="center" id="10">
<div>
<h1 class="heading">When not to use Atomic Design ❌</h1>
<p class="point">○ Less reuse of componments</p>
<p class="point">○ Small projects - overkill for small projects</p>
</div>
</div>
<!--slide -->
<div class="center" id="11">
<div>
<h1 class="heading">Worth Reading Articles 📚</h1>
<p class="point">
○ <a href="https://bradfrost.com/blog/post/atomic-web-design/">Brad Frost's article - highly recommended</a>
</p>
<p class="point">
○ <a
href="https://xd.adobe.com/ideas/process/ui-design/atomic-design-principles-methodology-101/">Adobe - good starter</a>
</p>
<p class="point">
○ <a
href="https://www.creativebloq.com/web-design/10-reasons-you-should-be-using-atomic-design-61620771">Creativebloq - know more about advantages</a>
</p>
</div>
</div>
<!--slide -->
<div class="center" id="12">
<div>
<h1 class="heading">Thank you lovely people 🤝</h1>
<p class="point">I would love to connect with you</p>
<p class="point">○ <a href="https://www.dheerajmahra.now.sh">Portfolio</a></p>
<p class="point">○ <a href="https://www.linkedin.com/in/dheerajmahra/">LinkedIn</a></p>
<p class="point">○ <a href="https://www.instagram.com/madsemicolon/">Madsemicolon</a></p>
<p class="point mbs">Special thanks to #TeamDevkode</p>
<p class="point">○ <a href="https://t.me/teamdevkode">Telegram</a></p>
<p class="point">○ <a href="https://www.instagram.com/devkode.io">Instagram</a></p>
</div>
</div>
<!--slide -->
<div class="center" id="13">
<div>
<h1 class="heading">Live Demo Links 🔴</h1>
<p class="point">
○ <a href="https://atomic-design-talk.vercel.app/">Presentation</a>
</p>
<p class="point">
○ <a href="https://github.com/DheerajMahra/atomic-design-in-react">Presentation Github</a>
</p>
<p class="point">
○ <a href="https://atomic-design-example.vercel.app/">React Example</a>
</p>
<p class="point">
○ <a href="https://github.com/DheerajMahra/atomic-design-in-react-example">React
Example Github</a>
</p>
</div>
</div>
<!--javascript -->
<script>
window.onload = function() {
const jumper = document.querySelector('.slide-jumper')
const slides = Array.from(document.querySelectorAll('.slide-jumper > div'))
jumper.addEventListener('click', function(e) {
if(e.target.nodeName === 'DIV') return
for(let i = 0; i < slides.length; i++) {
if(slides[i].firstChild.textContent === e.target.textContent) {
slides[i].classList.add('slide-active')
} else {
slides[i].classList.remove('slide-active')
}
}
})
}
</script>
</body>
</html>