Skip to content

Commit 5d65d2e

Browse files
committed
initial commit
0 parents  commit 5d65d2e

File tree

7 files changed

+793
-0
lines changed

7 files changed

+793
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Deploy
11+
environment: prod
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Upload to S3
19+
env:
20+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
21+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22+
run: aws --endpoint-url https://s3.routing.cafe s3 cp src/ s3://routing.cafe --recursive

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## routing.cafe website
2+
3+
-> https://routing.cafe <-

src/CommitMono-Regular.woff2

84.7 KB
Binary file not shown.

src/geofeed.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# prefix,country_code,region_code,city,postal
2+
94.26.24.0/24,NL,,,
3+
2a14:14c0::/48,NL,,,

src/index.html

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<!DOCTYPE html>
2+
3+
<!--
4+
Copyright (c) 2024 INTERNET DEVELOPMENT STUDIO COMPANY
5+
6+
Permission is hereby granted, free of charge, to any person obtaining
7+
a copy of this software and associated documentation files (the
8+
"Software"), to deal in the Software without restriction, including
9+
without limitation the rights to use, copy, modify, merge, publish,
10+
distribute, sublicense, and/or sell copies of the Software, and to
11+
permit persons to whom the Software is furnished to do so, subject to
12+
the following conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24+
-->
25+
26+
<html>
27+
<head>
28+
<meta charset="utf-8">
29+
<title>routing.cafe</title>
30+
<link rel=stylesheet href="style.css">
31+
</head>
32+
<body class=theme-dark>
33+
<div class=body>
34+
<div class=action-bar>
35+
<a class=button role=link href="https://www.peeringdb.com/asn/207487">
36+
<span class=hotkey>⌃+P</span>
37+
<span class=content>PEERINGDB</span>
38+
</a><a class=button role=link href="https://bgp.tools/lg/207487">
39+
<span class=hotkey>⌃+L</span>
40+
<span class=content>LOOKING GLASS</span>
41+
</a><a class=button role=link href="https://bgp.tools/as/207487">
42+
<span class=hotkey>⌃+B</span>
43+
<span class=content>BGP.TOOLS</span>
44+
</a><a class=button role=link href="https://apps.db.ripe.net/db-web-ui/lookup?source=ripe&key=AS207487&type=aut-num">
45+
<span class=hotkey>⌃+W</span>
46+
<span class=content>WHOIS</span>
47+
</a>
48+
</div>
49+
<br />
50+
51+
<div class=grid>
52+
<section class=row>
53+
routing.cafe <span class=badge>AS207487</span>
54+
</section>
55+
<section class=row>
56+
routing.cafe is a small group of friends providing mutual network services for hobby and research purposes. Our projects and configuration are open source.
57+
</section>
58+
</div>
59+
60+
<div class=grid>
61+
<a class=actionlistitem href="https://peeringdb.com/asn/207487/" target="_blank" tabindex="0" role=link>
62+
<figure class=actionlistitem-icon></figure><span class=actionlistitem-text>Peering Policy</span>
63+
</a>
64+
<a class=actionlistitem href="https://github.com/as207487" target="_blank" tabindex="0" role=link>
65+
<figure class=actionlistitem-icon></figure><span class=actionlistitem-text>Git Repositories</span>
66+
</a>
67+
</div>
68+
69+
<!--
70+
<div class=grid>
71+
<article class=card>
72+
<header class=card-header>
73+
<div class=card-left aria-hidden="true"></div>
74+
<h2 class=card-title>PROJECTS</h2>
75+
<div class=card-right aria-hidden="true"></div>
76+
</header>
77+
<section class=card-children>
78+
Example 1
79+
<div class=divider><div class=divider-line></div></div>
80+
Example 2
81+
<div class=divider><div class=divider-line></div></div>
82+
Example 3
83+
<div class=divider><div class=divider-line></div></div>
84+
Example 4
85+
</section>
86+
</article>
87+
</div>
88+
-->
89+
90+
</div>
91+
92+
<script type=module src="script.js"></script>
93+
</body>
94+
</html>

src/script.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
window.addEventListener("keydown", (e) => {
2+
if (!e.shiftKey) return;
3+
4+
if (e.key === 'Shift') {
5+
animate();
6+
return;
7+
}
8+
9+
for (const el of document.querySelectorAll('.hotkey')) {
10+
if (el.innerHTML === `⌃+${e.key.toUpperCase()}`) {
11+
window.location.href = el.parentElement.href;
12+
e.preventDefault();
13+
return;
14+
}
15+
}
16+
});
17+
18+
function animate() {
19+
const t = 80;
20+
let i = 0;
21+
for (const el of document.querySelectorAll('.hotkey')) {
22+
i++;
23+
setTimeout(() => {
24+
el.style = 'background: var(--theme-focused-foreground);';
25+
el.parentElement.children[1].style = 'box-shadow: inset 0 0 0 2px var(--theme-focused-foreground)';
26+
}, i * t);
27+
28+
setTimeout(() => {
29+
el.style = '';
30+
el.parentElement.children[1].style = '';
31+
}, (i * t) + t);
32+
}
33+
}

0 commit comments

Comments
 (0)