-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
194 lines (173 loc) · 7.14 KB
/
demo.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
<!DOCTYPE html>
<html lang="en"> <!-- Set language of the page -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="dragon.css" />
<!-- <link rel="icon" href="/icon.png" type="image/png"> - 192x192px Png image file -->
<!-- <meta name="theme-color" content="#ffffff" /> - Color of tab on mobile browsers -->
<title>Dragon.css, the no class css framework</title> <!-- Between 35 and 60 characters -->
<meta name="description"
content="Based on HTML5 elements, Dragon is a lightweight, modern and accessibility-focused CSS framework. Get it for your next web project!">
<!-- Between 100 and 150 characters -->
<!-- <link rel="canonical" href="https://example.com/mypage/" /> - Exact Url of my online page -->
<!-- <meta name="robots" content="index, follow"> - Rules for bot indexation -->
<!-- Common link or script and their meaning
<link rel="prefetch" href="/assets/style/article.css" /> - identify ressources how could be loaded for next page navigation
<link rel="preload" href="/assets/fonts/Mukta.woff2" as="font" type="font/woff2" crossorigin="anonymous"> - load important ressources as font (always same server and woff2)
<link rel="preconnect" href="https://allmediaineeded.com/" /> - preconnect with a different server where i will need ressources
<script defer src="/assets/script/dosomething.js"></script> - javascript link for a secondary or third feature
<script async src="https://analytics.com/module.js"></script> - javascript form an other website (mainly for analytics)
-->
</head>
<body>
<header>
<p>Dragon.css</p>
<nav>
<ul>
<li><a href="dragon.css" download>Download Css file</a></li>
<li><a href="https://github.com/lucaslacr/Dragon.css" target="_blank">See code source</a></li>
</ul>
</nav>
</header>
<main>
<section>
<h1>Dragon the no class css framework</h1>
<p>Based on HTML5 elements, Dragon is a lightweight, accessibility-focused CSS framework.</p>
</section>
<section>
<h2> What is Dragon ?</h2>
<article>
<h3>No class, only build with a strong semantic</h3>
<p>This is important for search engines, for people who use assistive technologies, and for improving
things.</p>
</article>
<article>
<h3>Light</h3>
<p>Web performance matter, so Dragon is light, all in one file</p>
</article>
<article>
<h3>Accessible</h3>
<p>Excellent contrast, Hyrachie of information, focus navigation, ect.</p>
</article>
</section>
<section>
<blockquote>
<p>
I use Dragon.css for my web projet
</p><cite>A fantastic person</cite>
</blockquote>
</section>
<section>
<h3>Comparaison with Bootstrap</h3>
<table>
<thead>
<tr>
<th>Framework css</th>
<th>Headline </th>
<th>Responsive</th>
<th>Accordion</th>
</tr>
</thead>
<tr>
<td>Bootstrap</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Dragon</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
</table>
</section>
<section>
<h3>Some Dragon code logic</h3>
<pre><code>
/* Layout */
section, aside, header, footer {
max-width: 1200px;
width: 100%;
display: block;
margin: 0 auto;
}
p {
max-width: 680px;
line-height: 160%;
font-size: 14px;
color: var(--text-paragraph);
margin-bottom: 24px;
}
</code> </pre>
</section>
<section>
<h2>Interactive elements</h2>
<h3>Accordion</h3>
<details>
<summary>Accordion is include ?</summary>
Yes absolutely
</details>
<details>
<summary>It work's with javascript</summary>
No, it native Html5
</details>
<h3>Dialog</h3>
<button popovertarget="my-popover">Open dialog</button>
<div popover id="my-popover">
<h4>
A popover
</h4>
<p>It's helpful to display complementary informations</p>
</div>
<h3>Modal</h3>
<dialog id="dialog">
<h4>I'm a modal</h4>
<p>It's useful to ask something to the users</p>
<form method="dialog">
<button>Close</button>
</form>
</dialog>
<button aria-haspopup="dialog" onclick="dialog.showModal()">Open modal</button>
</section>
<section>
<hr>
<h2>Form</h2>
<p role="alert">Important message</p>
<form action="" method="get">
<label for="email">Your email </label>
<input type="email" name="email" id="email" required />
<label for="objet">Object</label>
<select name="objet" id="objet">
<option value="">-- Select an option --</option>
<optgroup label="Feature">
<option value="feature">Ask a feature</option>
<option value="support">Contact support</option>
</optgroup>
<optgroup label="Bogs">
<option value="bugsite">Bugs on website</option>
<option value="bugcss">Contact dev teams</option>
</optgroup>
</select>
<label for="message">Your message <span>optional</span></label>
<textarea id="message" rows="5"></textarea>
<fieldset>
<legend>Priority</legend>
<label><input type="radio" id="Important" name="Priority" value="Important" />Important</label>
<label><input type="radio" id="Usual" name="Priority" value="Usual" />Usual</label>
</fieldset>
<label for="file">Your document </label>
<input type="file" id="file" name="file" />
<label for="RGPD"><input type="checkbox" id="RGPD" name="RGPD" />Agree treatment of my data</label>
<input type="checkbox" role="switch" id="switch" />
<label for="switch"> Subscribe to our newsletter</label>
<input type="submit" value="Send" />
</form>
</section>
</main>
<footer>
<p>2024 - distributed under licence MIT</p>
</footer>
</body>
</html>