Repository navigation
Expand file tree
/
Copy pathtest-layout.html
More file actions
110 lines (97 loc) · 3 KB
/
Copy pathtest-layout.html
File metadata and controls
110 lines (97 loc) · 3 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
<!DOCTYPE html>
<html>
<head>
<style>
* { box-sizing: border-box; }
body { margin: 20px; font-family: sans-serif; }
.container {
max-width: 1400px;
margin: 0 auto;
}
/* MOBILE FIRST */
.layout {
display: flex;
flex-direction: column;
gap: 20px;
border: 3px solid blue;
padding: 10px;
}
.details {
order: 1;
background: lightgreen;
padding: 20px;
border: 2px solid green;
}
.theme {
order: 2;
background: lightcoral;
padding: 20px;
border: 2px solid red;
}
.theme-grid {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin-top: 10px;
}
.theme-card {
background: white;
border: 1px solid #ccc;
padding: 10px;
min-height: 100px;
}
/* MOBILE 480-767px: 2 theme columns */
@media (min-width: 480px) {
.theme-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* DESKTOP 1024px+: Side by side */
@media (min-width: 1024px) {
.layout {
flex-direction: row;
}
/* LEFT: Theme 75% */
.theme {
order: 1;
flex: 0 0 calc(75% - 10px);
}
/* RIGHT: Details 25% */
.details {
order: 2;
flex: 0 0 calc(25% - 10px);
}
.theme-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
}
</style>
</head>
<body>
<div class="container">
<h1>Layout Test</h1>
<p>Resize browser to test responsive behavior</p>
<p>Mobile (<1024px): Details on top, Theme below (2 cards/row at 480px+)</p>
<p>Desktop (≥1024px): Theme on LEFT (75%), Details on RIGHT (25%)</p>
<div class="layout">
<div class="details">
<h2>Details Column (25% on desktop, RIGHT side)</h2>
<p>Event Details</p>
<p>Preference Questions</p>
<p>Action Buttons</p>
</div>
<div class="theme">
<h2>Theme Column (75% on desktop, LEFT side)</h2>
<div class="theme-grid">
<div class="theme-card">Theme 1</div>
<div class="theme-card">Theme 2</div>
<div class="theme-card">Theme 3</div>
<div class="theme-card">Theme 4</div>
<div class="theme-card">Theme 5</div>
<div class="theme-card">Theme 6</div>
</div>
</div>
</div>
</div>
</body>
</html>