-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
172 lines (144 loc) · 8.38 KB
/
index.html
File metadata and controls
172 lines (144 loc) · 8.38 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Character encoding -->
<meta charset="UTF-8" />
<!-- Viewport for responsive design -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- SEO: Page title & description -->
<title>Numix UI – Lightweight CSS Library</title>
<meta name="description" content="Numix UI is a lightweight, customizable CSS and JS library inspired by the Numix desktop theme.">
<!-- Theme color for mobile status bar -->
<meta name="theme-color" content="#f0544c" />
<!-- Favicon (Optional) -->
<link rel="icon" href="assets/favicon.ico" type="image/x-icon" />
<!-- Roboto Font from Google Fonts -->
<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=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<!-- Tailwind (for utility classes in demo/testing) -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Numix UI Styles -->
<link rel="stylesheet" href="css/numix-ui.css" />
</head>
<body class="n-body">
<main class="n-container">
<header class="n-header n-text-center n-mb-10">
<h1 class="n-heading-1">Numix UI Library</h1>
</header>
<!-- Buttons Section -->
<section class="n-section" aria-labelledby="section-buttons">
<h2 id="section-buttons" class="n-heading-2 n-mb-4">Buttons</h2>
<div class="n-button-group">
<button class="n-button n-button-primary" aria-label="Default Button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon">
<path d="M5 13h14M5 17h14M5 9h14M5 5h14" />
</svg>
Default
</button>
<button class="n-button n-button-secondary" aria-label="Outline Button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon">
<path d="M12 20c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z" />
</svg>
Outline
</button>
<button class="n-button n-button-primary n-button-rounded" aria-label="Rounded Button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon">
<path d="M10.21 4.133c.838-2.31 3.824-2.31 4.662 0l4.172 11.482a1.5 1.5 0 0 1-1.317 2.175H7.355a1.5 1.5 0 0 1-1.317-2.175l4.172-11.482z" />
</svg>
Rounded
</button>
<button class="n-button n-button-disabled" disabled aria-label="Disabled Button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon">
<path d="M9.172 16.242a.997.997 0 0 1-1.414 0l-4.243-4.243a.999.999 0 0 1 0-1.414l4.243-4.243a.997.997 0 0 1 1.414 0l4.243 4.243a.999.999 0 0 1 0 1.414l-4.243 4.243zM14 10h8a1 1 0 0 0 0-2h-8a1 1 0 0 0 0 2z" />
</svg>
Disabled
</button>
</div>
<div class="mt-4">
<button id="theme-toggle" class="n-button n-button-secondary" aria-label="Toggle Theme">
<svg id="theme-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon">
<path d="M12 3v1m9 8h-1m-9 8v-1m-5-5h1m-6-2l1-1m18 0l-1 1m-4 3h-1m15-5v1m-1-1l-1-1M5.636 5.636l.707.707m12.728 0l-.707.707M6.343 17.657l.707-.707M17.657 6.343l-.707-.707z" />
<circle cx="12" cy="12" r="3" />
</svg>
<span id="theme-text">Dark</span>
</button>
</div>
</section>
<!-- Cards -->
<section class="n-section" aria-labelledby="section-cards">
<h2 id="section-cards" class="n-heading-2 n-mb-4">Cards</h2>
<div class="n-grid n-grid-2">
<div class="n-card">
<h3 class="heading-3">Card Title 1</h3>
<p class="paragraph">This is a simple card with some content.</p>
</div>
<div class="n-card n-card-square">
<h3 class="heading-3">Card Title 2</h3>
<p class="paragraph">This is a square card.</p>
</div>
</div>
</section>
<!-- Forms -->
<section class="n-section" aria-labelledby="section-forms">
<h2 id="section-forms" class="n-heading-2 n-mb-4">Forms</h2>
<form class="n-form" aria-label="Contact Form">
<label for="name" class="n-label">Name</label>
<input type="text" id="name" class="n-input" placeholder="Your Name" />
<label for="email" class="n-label">Email</label>
<input type="email" id="email" class="n-input" placeholder="Your Email" />
<label for="message" class="n-label">Message</label>
<textarea id="message" class="n-input" placeholder="Your Message" rows="4"></textarea>
<button type="submit" class="n-button n-button-primary n-w-full">Send Message</button>
</form>
</section>
<!-- Alerts -->
<section class="n-section" aria-labelledby="section-alerts">
<h2 id="section-alerts" class="n-heading-2 n-mb-4">Alerts</h2>
<div class="n-alert n-alert-success n-alert-dismissible" role="alert">
<button class="close-button" aria-label="Close">×</button>
<strong>Success!</strong> Your action was completed successfully.
</div>
<div class="n-alert n-alert-info n-alert-dismissible" role="alert">
<button class="close-button" aria-label="Close">×</button>
<strong>Info!</strong> This is an informational message.
</div>
<div class="n-alert n-alert-warning n-alert-dismissible" role="alert">
<button class="close-button" aria-label="Close">×</button>
<strong>Warning!</strong> There might be an issue.
</div>
<div class="n-alert n-alert-danger n-alert-dismissible" role="alert">
<button class="close-button" aria-label="Close">×</button>
<strong>Error!</strong> Something went wrong.
</div>
</section>
<!-- Progress -->
<section class="n-section" aria-labelledby="section-progress">
<h2 id="section-progress" class="n-heading-2 n-mb-4">Progress Bars</h2>
<div class="n-progress"><div class="n-progress-bar" style="width: 25%">25%</div></div>
<div class="n-progress"><div class="n-progress-bar striped" style="width: 50%">50%</div></div>
<div class="n-progress"><div class="n-progress-bar" style="width: 75%">75%</div></div>
<div class="n-progress"><div class="n-progress-bar" style="width: 100%">100%</div></div>
</section>
<!-- Typography -->
<section class="n-section" aria-labelledby="section-typography">
<h2 id="section-typography" class="n-heading-2 n-mb-4">Typography</h2>
<h1 class="n-heading-1">Heading 1</h1>
<h2 class="n-heading-2">Heading 2</h2>
<h3 class="n-heading-3">Heading 3</h3>
<h4 class="n-heading-4">Heading 4</h4>
<p class="n-lead">This is a lead paragraph introducing content.</p>
<p class="n-paragraph">This is a standard paragraph used for body text. The line height and font size aim to optimize readability across devices.</p>
<p class="n-small-text">This is small text, used for captions or secondary information.</p>
<blockquote class="n-blockquote">
<p>"The best way to predict the future is to invent it."</p>
<footer class="n-blockquote-footer">Alan Kay</footer>
</blockquote>
</section>
</main>
<script src="js/numix-ui.js"></script>
</body>
</html>