forked from stElmitchay/cf-eng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
w6.html
246 lines (222 loc) · 8.4 KB
/
w6.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>CSS Frameworks and Tailwind CSS</title>
<link rel="icon" type="image/png" href="assets/Engineering_Workshop_14_OCT.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/reset.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/reveal.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/theme/night.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/a11y-dark.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/progress/progress.min.css">
<style>
.reveal code {
color: var(--r-link-color-hover);
}
body {
background: linear-gradient(100%, #1a2a6c, #b21f1f, #fdbb2d);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {background-position: 0% 50%;}
50% {background-position: 100% 50%;}
100% {background-position: 0% 50%;}
}
.reveal h2, .reveal h3, .reveal h4, .reveal h5 {
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.reveal ul li {
margin-bottom: 10px;
}
.reveal pre {
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>CSS Frameworks and Tailwind CSS</h2>
<p>Streamlining web development with modern tools</p>
</section>
<section>
<h3>What are CSS Frameworks?</h3>
<p>Pre-prepared libraries for easier, standards-compliant web design</p>
</section>
<section>
<h3>Benefits of CSS Frameworks</h3>
<ul>
<li>Provide a grid system</li>
<li>Offer pre-styled components</li>
<li>Ensure cross-browser compatibility</li>
<li>Speed up development process</li>
</ul>
</section>
<section>
<h3>Popular CSS Frameworks</h3>
<ul>
<li>Bootstrap</li>
<li>Foundation</li>
<li>Bulma</li>
<li>Tailwind CSS</li>
<li>Material UI</li>
</ul>
</section>
<section>
<h3>Introduction to Tailwind CSS</h3>
<p>A utility-first CSS framework for rapidly building custom user interfaces</p>
</section>
<section>
<h3>Tailwind CSS Features</h3>
<ul>
<li>Highly customizable</li>
<li>Low-level utility classes</li>
<li>No pre-styled components</li>
<li>Flexible and composable</li>
</ul>
</section>
<section>
<h3>Tailwind CSS Basics</h3>
<pre><code class="language-html">
<div class="bg-blue-500 text-white p-4 rounded-lg shadow-md">
This is a Tailwind styled div
</div>
</code></pre>
</section>
<section>
<h3>Setting Up Tailwind CSS</h3>
<p>Install Tailwind via npm:</p>
<pre><code class="language-bash">
npm install tailwindcss
</code></pre>
</section>
<section>
<h3>Initialize Tailwind</h3>
<pre><code class="language-bash">
npx tailwindcss init
</code></pre>
</section>
<section>
<h3>Tailwind Configuration</h3>
<pre><code class="language-javascript">
// tailwind.config.js
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: {
extend: {},
},
plugins: [],
}
</code></pre>
</section>
<section>
<h3>Utility-First Approach</h3>
<p>Tailwind uses small, single-purpose utility classes to build complex designs</p>
</section>
<section>
<h3>Utility-First Example</h3>
<pre><code class="language-html">
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Click me
</button>
</code></pre>
</section>
<section>
<h3>Responsive Design with Tailwind</h3>
<pre><code class="language-html">
<div class="text-center sm:text-left md:text-right lg:text-justify">
Responsive text alignment
</div>
</code></pre>
</section>
<section>
<h3>Customizing Tailwind</h3>
<p>Extend or override Tailwind's default theme:</p>
</section>
<section>
<h3>Custom Theme Example</h3>
<pre><code class="language-javascript">
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'custom-blue': '#1da1f2',
},
},
},
}
</code></pre>
</section>
<section>
<h3>Tailwind Plugins</h3>
<p>Extend Tailwind with reusable third-party plugins</p>
</section>
<section>
<h3>Plugin Example</h3>
<pre><code class="language-javascript">
// tailwind.config.js
module.exports = {
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}
</code></pre>
</section>
<section>
<h3>Exercise: Tailwind Component</h3>
<p>Create a simple card component using Tailwind CSS classes</p>
</section>
<section>
<h3>Pros of Tailwind CSS</h3>
<ul>
<li>Rapid development</li>
<li>Highly customizable</li>
<li>No unused CSS in production</li>
<li>Consistent design system</li>
</ul>
</section>
<section>
<h3>Cons of Tailwind CSS</h3>
<ul>
<li>Learning curve</li>
<li>HTML can become cluttered</li>
<li>Requires build step</li>
<li>Not ideal for very small projects</li>
</ul>
</section>
<section>
<h3>Thank You!</h3>
<p>Any questions about CSS frameworks or Tailwind CSS?</p>
</section>
<section>
<h2>Ready for More?</h2>
<p>Continue your web development journey!</p>
<a href="w6.html" class="button" style="display: inline-block; padding: 10px 20px; background-color: #e23c3c; color: white; text-decoration: none; font-size: 18px; border-radius: 5px; transition: background-color 0.3s;">
Next: JavaScript Basics
</a>
<a href="index.html" class="button" style="display: inline-block; padding: 10px 20px; background-color: #3ce267; color: white; text-decoration: none; font-size: 18px; border-radius: 5px; transition: background-color 0.3s; margin-left: 10px;">
Back to Home
</a>
</section>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/reveal.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/markdown/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/highlight/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.3.1/plugin/progress/progress.min.js"></script>
<script>
Reveal.initialize({
hash: true,
plugins: [ RevealMarkdown, RevealHighlight ],
transition: 'slide',
transitionSpeed: 'default',
backgroundTransition: 'slide'
});
</script>
</body>
</html>