-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtree.astro
More file actions
78 lines (73 loc) · 2.03 KB
/
Copy pathtree.astro
File metadata and controls
78 lines (73 loc) · 2.03 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
---
/*
* /explore/tree/ — three-column hierarchy:
* Use cases → Approaches → Building blocks
*/
import BaseLayout from '../../layouts/BaseLayout.astro';
import PageHeader from '../../components/PageHeader.astro';
import { TreeView } from '../../components/explore/TreeView';
import graphData from '../../data/graph.json';
const description =
'Trace how use cases lead into approaches, which compose building-block patterns. Hover any node to see its connections; click to drill in.';
---
<BaseLayout
title="Tree view"
description={description}
current="/explore/"
>
<PageHeader
breadcrumbs={[
{ label: 'Home', href: '/' },
{ label: 'Explore', href: '/explore/browse/' },
{ label: 'Tree' },
]}
title="Hierarchy view"
lede={description}
/>
<div class="explore-nav">
<div class="container">
<a href="/map/" class="explore-tab">Galaxy</a>
<a href="/explore/tree/" class="explore-tab active">Tree</a>
<a href="/explore/browse/" class="explore-tab">Browse</a>
</div>
</div>
<section class="explore-canvas">
<TreeView client:only="react" graph={graphData} />
</section>
</BaseLayout>
<style>
.explore-nav {
border-bottom: 1px solid var(--color-border);
background: var(--color-bg);
}
.explore-nav .container {
display: flex;
gap: 0.25rem;
padding-top: 0.5rem;
padding-bottom: 0;
}
.explore-tab {
padding: 0.7rem 1rem;
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 600;
color: var(--color-text-muted);
text-decoration: none;
border-bottom: 2px solid transparent;
transition: color var(--duration-fast) var(--easing-soft),
border-color var(--duration-fast) var(--easing-soft);
}
.explore-tab:hover {
color: var(--color-primary);
}
.explore-tab.active {
color: var(--color-cta);
border-bottom-color: var(--color-cta);
}
.explore-canvas {
position: relative;
height: calc(100vh - 220px);
min-height: 600px;
background: var(--color-bg-subtle);
}
</style>