Skip to content

Commit 8aff3de

Browse files
committed
lookbook: add demo-navbar preview (WIP)
1 parent ac016e2 commit 8aff3de

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
import twopoint5d from '../images/twopoint5d-logo.svg?url';
3+
---
4+
5+
<div class="absolute bottom-0 z-50 -rotate-90 origin-bottom-left transform-gpu container pointer-events-none">
6+
<div class="flex justify-center">
7+
<header class="demo-navbar flex justify-start items-center px-1.5 lg:pe-5 lg:ps-4 h-10 backdrop-blur-sm pointer-events-auto">
8+
<img class="primary" src={twopoint5d} alt="twopoint5d" />
9+
</header>
10+
</div>
11+
</div>
12+
13+
<style>
14+
.container {
15+
width: 100vh;
16+
height: 0;
17+
right: calc(-100vh + 100vw);
18+
}
19+
20+
.demo-navbar {
21+
--bg-col: var(--color-demo-navbar-background, rgba(18 22 25 / 75%));
22+
background-color: var(--bg-col);
23+
}
24+
25+
.demo-navbar img.primary {
26+
max-height: 32px;
27+
margin-left: 0.75rem;
28+
}
29+
</style>

apps/lookbook/src/layouts/ReactDemo.astro

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import DemoNavBar from '~components/DemoNavBar.astro';
3+
24
export interface Props {
35
title: string;
46
}
@@ -16,9 +18,11 @@ const {title} = Astro.props;
1618
<title>2.5d lookbook &#x2022; {title} demo</title>
1719
</head>
1820
<body>
21+
<DemoNavBar />
1922
<slot />
2023
</body>
2124
</html>
25+
2226
<style is:global>
2327
html {
2428
font-family: system-ui, sans-serif;

apps/lookbook/src/layouts/VanillaDemo.astro

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import DemoNavBar from '~components/DemoNavBar.astro';
3+
24
export interface Props {
35
title: string;
46
}
@@ -16,6 +18,7 @@ const {title} = Astro.props;
1618
<title>2.5d lookbook &#x2022; {title} demo</title>
1719
</head>
1820
<body>
21+
<DemoNavBar />
1922
<slot />
2023
</body>
2124
</html>

0 commit comments

Comments
 (0)