-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-integration.html
More file actions
163 lines (142 loc) · 5.53 KB
/
test-integration.html
File metadata and controls
163 lines (142 loc) · 5.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Bespoke CSS Component Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<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=Work+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./bespoke.css" />
</head>
<body>
<!-- Bespoke embedded component -->
<div class="bespoke">
<header class="header">
<h1>Component Test Suite</h1>
<div class="status">Testing Bespoke CSS Components</div>
<button class="as-button ghost">Help</button>
</header>
<main class="main-layout">
<!-- Sidebar: Component showcase -->
<aside class="sidebar">
<!-- Form Components Card -->
<section class="card">
<h2>Form Components</h2>
<form>
<label>Text Input
<input type="text" placeholder="Enter text here" />
</label>
<label>Select Dropdown
<select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</label>
<label class="row">
<input type="checkbox" />
Checkbox Option
</label>
<!-- NEW COMPONENTS TEST (NON TESTED) -->
<hr style="margin: var(--bespoke-space-lg) 0; border-color: var(--bespoke-stroke);" />
<h3>New Components (NON TESTED)</h3>
<!-- Radio Buttons Test -->
<label>Radio Buttons</label>
<div class="radio-group">
<label class="row">
<input type="radio" name="option" value="a" />
Option A
</label>
<label class="row">
<input type="radio" name="option" value="b" />
Option B
</label>
<label class="row">
<input type="radio" name="option" value="c" />
Option C
</label>
</div>
<!-- Horizontal Radio Group Test -->
<label>Size (Horizontal)</label>
<div class="radio-group horizontal">
<label class="row">
<input type="radio" name="size" value="small" />
Small
</label>
<label class="row">
<input type="radio" name="size" value="medium" />
Medium
</label>
<label class="row">
<input type="radio" name="size" value="large" />
Large
</label>
</div>
<!-- Textarea Test -->
<label>Textarea
<textarea placeholder="Enter your message here..."></textarea>
</label>
<!-- Toggle Switch Test -->
<label class="row">
<div class="toggle">
<input type="checkbox" class="toggle-input" id="toggle1" />
<span class="toggle-slider"></span>
</div>
<span class="toggle-label">Enable Feature</span>
</label>
<label class="row">
<div class="toggle">
<input type="checkbox" class="toggle-input" id="toggle2" />
<span class="toggle-slider"></span>
</div>
<span class="toggle-label">Auto Save</span>
</label>
<div class="row">
<button type="submit" class="primary">Submit</button>
<button type="button" class="danger">Cancel</button>
</div>
</form>
</section>
<!-- Button Variants Card -->
<section class="card">
<h2>Button Variants</h2>
<div style="display: flex; flex-direction: column; gap: 0.5rem;">
<button>Default Button</button>
<button class="primary">Primary Button</button>
<button class="danger">Danger Button</button>
<button class="ghost">Ghost Button</button>
<a href="#" class="as-button">Link Button</a>
<a href="#" class="as-button ghost">Ghost Link</a>
</div>
</section>
<!-- Layout Components Card -->
<section class="card">
<h2>Layout Components</h2>
<div class="row">
<span>Left</span>
<div class="spacer"></div>
<span>Right</span>
</div>
<div class="row-between">
<span>Left Content</span>
<span>Right Content</span>
</div>
<hr />
<h3>Card Subtitle</h3>
<p>This is a paragraph inside a card component.</p>
</section>
</aside>
<!-- Main Content Area -->
<div class="content-area">
<div style="background: var(--bespoke-canvas); height: 100%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bespoke-stroke); border-radius: var(--bespoke-radius-lg);">
<div style="text-align: center;">
<p style="color: var(--bespoke-muted); font-size: var(--bespoke-font-size-xl); margin: 0 0 var(--bespoke-space-lg) 0;">Main Content Area</p>
<p style="color: var(--bespoke-fg); font-size: var(--bespoke-font-size-sm); margin: 0;">This area would contain your main application content</p>
</div>
</div>
</div>
</main>
</div>
</body>
</html>