Skip to content

Commit d0677be

Browse files
committed
remove cache, add buttons
1 parent 27768b2 commit d0677be

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- uses: actions/setup-node@v4
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
1920
with:
20-
node-version: 18
21+
node-version: '20'
22+
23+
- name: Install dependencies
24+
run: npm ci
2125

22-
- run: npm cache clean --force
23-
- run: npm install
2426
- run: npm run build
2527

2628
- uses: actions/configure-pages@v4

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Starter Plot</title>
7+
<link rel="stylesheet" href="main.css">
78
</head>
89
<body>
910
<main>
1011
<h1>Hello, World!</h1>
1112
<div class="main-body">
13+
<div>
1214
<p>
13-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
15+
Starter repo to explore adding observable plot to a non-framework project, using d3, and data art.
1416
</p>
17+
<nav class="page-nav">
18+
<a href="./growing/">Growing</a>
19+
<a href="./interactive/">Interactive</a>
20+
<a href="./snowing/">Snowing</a>
21+
</nav>
22+
</div>
1523
<div id="plot-container"></div>
1624
<div id="d3-container">
1725
<h2>D3 Example</h2>

main.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,31 @@ h2 {
3636
margin-bottom: 1rem;
3737
}
3838

39+
.page-nav {
40+
display: flex;
41+
justify-content: center;
42+
gap: 1rem;
43+
margin-top: 1rem;
44+
}
45+
46+
.page-nav a {
47+
padding: 0.5rem 1.25rem;
48+
background: rgba(255, 255, 255, 0.1);
49+
color: #eee;
50+
text-decoration: none;
51+
border-radius: 4px;
52+
transition: background 0.2s;
53+
}
54+
55+
.page-nav a:hover {
56+
background: rgba(255, 255, 255, 0.2);
57+
}
58+
3959
.main-body {
4060
display: flex;
4161
flex-direction: column;
4262
align-items: center;
4363
justify-content: center;
4464
gap: 3rem;
45-
width: 75%;
4665
margin: 0 auto;
4766
}

0 commit comments

Comments
 (0)