-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
246 lines (244 loc) · 9.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css?family=Poppins:wght@400;600"
rel="stylesheet"
/>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism-okaidia.min.css"
integrity="sha512-mIs9kKbaw6JZFfSuo+MovjU+Ntggfoj8RwAmJbVXQ5mkAX5LlgETQEweFPI18humSPHymTb5iikEOKWF7I8ncQ=="
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./css/css-grid.css" />
<link rel="stylesheet" href="./landing.css" />
</head>
<body>
<div class="header">
<div class="grid">
<div class="grid-layout-2">
<div>
<h1 class="title">CSS Grid</h1>
<p class="subtitle">
CSS Grid was created for developers who need a simple grid system
for their project. CSS Grid has default width of 1340px. It uses
grid feature of CSS, and is fully responsive down to mobile
devices, without any media queries.
</p>
<a href="https://github.com/M1ck0/css-grid" target="_blank" class="github-button">github</a>
</div>
</div>
</div>
</div>
<div class="about">
<div class="grid">
<h2 class="title">About</h2>
<div class="grid-layout-1">
<p>
CSS grid is a simple library that gives you an ability to create
responsive layouts without thinking too much about it. It uses grid
feature from CSS to create layouts for modern browsers.
<br />
This is not Bootstrap, Tailwind or something similar. You can't use
this to create buttons, cards, modals, etc.
<br />
<br />
For now this library is very small (unminified version has 59 lines
of code), but you can create some interesting layouts with it.
<br />
Soon I'll be adding some presets for layouts. This means that you'll
be able to create nice looking galleries, and layouts with only one
class.
<br />
<br />
I was using Bootstrap for a long time, and realized that I mostly
use it because I can easily create responsive layouts, which means
that other parts of it are unused, so that's why I decided to create
this.
<br />
I wanted to do for myself but then I decided to open-source it
because someone might find it useful or even contribute to it.
<br />
<br />
You can read more about grid by clicking
<a
href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid"
target="_blank"
>here</a
>
<br />
You can check support for grid by clicking
<a href="https://caniuse.com/?search=grid" target="_blank">here</a>
</p>
</div>
</div>
</div>
<div class="demo">
<div class="grid">
<div class="demo-header">
<h2 class="title">Demo</h2>
<div class="grid-layout-1">
<p class="subtitle">
All items take equal amount of space and they resize with the
browser. When there isn't enough space left for the element it
will go to the new line, and ensure that all elements are fully
visible.
<br />
<br />
To see the effect try resizing your browser.
</p>
</div>
</div>
</div>
<div class="grid">
<div class="grid-layout-12">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
<div class="language-markup">
<pre><code class="language-html"><div class="grid">
<div class="grid-layout-12">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
</div></code></pre>
</div>
<div class="grid-layout-8">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
<div class="language-markup">
<pre><code class="language-html"><div class="grid">
<div class="grid-layout-8">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
</div></code></pre>
</div>
<div class="grid-layout-6">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
<div class="language-markup">
<pre><code class="language-html"><div class="grid">
<div class="grid-layout-6">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
</div></code></pre>
</div>
<div class="grid-layout-4">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
<div class="language-markup">
<pre><code class="language-html"><div class="grid">
<div class="grid-layout-4">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
</div></code></pre>
</div>
<div class="grid-layout-4">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
<div class="language-markup">
<pre><code class="language-html"><div class="grid">
<div class="grid-layout-4">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
</div></code></pre>
</div>
<div class="grid-layout-2">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
<div class="language-markup">
<pre><code class="language-html"><div class="grid">
<div class="grid-layout-2">
<div class="demo-item">demo</div>
<div class="demo-item">demo</div>
</div>
</div></code></pre>
</div>
</div>
</div>
<div class="features">
<div class="grid">
<h2 class="title">Features</h2>
</div>
</div>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/prism.min.js"
integrity="sha512-YBk7HhgDZvBxmtOfUdvX0z8IH2d10Hp3aEygaMNhtF8fSOvBZ16D/1bXZTJV6ndk/L/DlXxYStP8jrF77v2MIg=="
crossorigin="anonymous"
></script>
</body>
</html>