-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrids.html
More file actions
105 lines (100 loc) · 5.12 KB
/
grids.html
File metadata and controls
105 lines (100 loc) · 5.12 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
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid System - Dashboard Component Library</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#faf5ff',
100: '#f3e8ff',
200: '#e9d5ff',
300: '#d8b4fe',
400: '#c084fc',
500: '#a855f7',
600: '#9333ea',
700: '#7e22ce',
800: '#6b21a8',
900: '#581c87',
}
}
}
}
}
</script>
</head>
<body class="bg-gray-50 antialiased">
<!-- Navigation -->
<nav class="bg-white shadow-sm border-b border-gray-200">
<div class="container mx-auto px-4 py-4">
<a href="index.html" class="inline-flex items-center text-purple-600 hover:text-purple-700 font-medium">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/>
</svg>
Back to Components
</a>
</div>
</nav>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<section id="grids" class="mb-16">
<div class="bg-white rounded-lg shadow-sm p-6 border border-gray-200">
<h2 class="text-3xl font-bold text-gray-900 mb-2">Grid System</h2>
<p class="text-gray-600 mb-6">Responsive grid layout examples</p>
<!-- 12-Column Grid -->
<div class="mb-8">
<h3 class="text-lg font-semibold text-gray-900 mb-4">12-Column Responsive Grid</h3>
<div class="grid grid-cols-12 gap-4">
<div class="col-span-12 md:col-span-6 lg:col-span-4 bg-purple-100 p-4 rounded-lg text-center">
<p class="text-sm font-medium">12 / 6 / 4</p>
</div>
<div class="col-span-12 md:col-span-6 lg:col-span-4 bg-purple-100 p-4 rounded-lg text-center">
<p class="text-sm font-medium">12 / 6 / 4</p>
</div>
<div class="col-span-12 md:col-span-12 lg:col-span-4 bg-purple-100 p-4 rounded-lg text-center">
<p class="text-sm font-medium">12 / 12 / 4</p>
</div>
</div>
</div>
<!-- Auto-fit Grid -->
<div class="mb-8">
<h3 class="text-lg font-semibold text-gray-900 mb-4">Auto-fit Grid</h3>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
<div class="bg-purple-100 p-4 rounded-lg text-center">Item 1</div>
<div class="bg-purple-100 p-4 rounded-lg text-center">Item 2</div>
<div class="bg-purple-100 p-4 rounded-lg text-center">Item 3</div>
<div class="bg-purple-100 p-4 rounded-lg text-center">Item 4</div>
<div class="bg-purple-100 p-4 rounded-lg text-center">Item 5</div>
<div class="bg-purple-100 p-4 rounded-lg text-center">Item 6</div>
</div>
</div>
<!-- Dashboard Layout Grid -->
<div>
<h3 class="text-lg font-semibold text-gray-900 mb-4">Dashboard Layout Grid</h3>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
<div class="lg:col-span-2 bg-purple-50 p-6 rounded-lg border border-purple-200">
<p class="font-medium text-gray-900">Main Content (2/3)</p>
<p class="text-sm text-gray-600 mt-2">Large content area for primary information</p>
</div>
<div class="lg:col-span-1 bg-purple-50 p-6 rounded-lg border border-purple-200">
<p class="font-medium text-gray-900">Sidebar (1/3)</p>
<p class="text-sm text-gray-600 mt-2">Side panel for secondary content</p>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-6 mt-12">
<div class="container mx-auto px-4 text-center">
<p class="text-gray-400 text-sm">Dashboard Component Library © 2025</p>
</div>
</footer>
</body>
</html>