Skip to content

Commit b10cbfe

Browse files
committed
refactor(demo/top-bar): new top-bar
1 parent eef5f0b commit b10cbfe

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

demo/top-bar/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en" class="color-scheme-auto bg-background font-vazirmatn">
2+
<html lang="en" class="color-scheme-auto bg-background font-vazirmatn gecut-layout">
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -10,5 +10,5 @@
1010
<script type="module" src="../main/global.ts"></script>
1111
<script type="module" src="./scripts.ts"></script>
1212
</head>
13-
<body class="bg-surface max-w-screen-sm mx-auto px-2 root"></body>
13+
<body></body>
1414
</html>

demo/top-bar/scripts.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ render(
1919
],
2020
title: 'Gecut Top Bar',
2121
})}
22-
<main role="main">
23-
<div class="gecut-page scrollable">
24-
${map(
25-
range(window.innerHeight / 10),
26-
(i) => html`<p class="text-bodyMedium text-onSurfaceVariant">Random Content: ${i}</p>`,
27-
)}
28-
</div>
22+
<main class="has-top-bar px-4">
23+
${map(
24+
range(window.innerHeight / 10),
25+
(i) => html`<p class="text-bodyMedium text-onSurfaceVariant">Random Content: ${i}</p>`,
26+
)}
2927
</main>
3028
`,
3129
document.body,

0 commit comments

Comments
 (0)