Skip to content

Commit

Permalink
Add landing page (#8)
Browse files Browse the repository at this point in the history
* Add small website for the lolz

* Amend
  • Loading branch information
raphjaph authored Aug 3, 2024
1 parent e28f44a commit accdaf9
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: bip322.rs Website

on:
push:
branches: ["master"]

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './www'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions www/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bip322.rs
Binary file added www/favicon.ico
Binary file not shown.
68 changes: 68 additions & 0 deletions www/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
:root {
--width-target: calc(100vw / 6);
--height-target: calc(100vh / 3);
--size: min(var(--width-target), var(--height-target));
--margin-vertical: calc((100vh - var(--size) * 2) / 2);
--margin-horizontal: calc((100vw - var(--size) * 5) / 2);
}

* {
margin: 0;
padding: 0;
}

html {
background-color: black;
color: white;
overflow: hidden;
text-align: center;
font-family: monospace;
font-size: var(--size);
line-height: var(--size);
}

a {
color: white;
text-decoration: none;
}

a:hover {
text-shadow: 0 0 5px #fff;
}

body {
/* display: flex; */
/* flex-direction: column; */
/* justify-content: center; */
/* align-items: center; */
/* min-height: 100vh; */
margin-bottom: var(--margin-vertical);
margin-left: var(--margin-horizontal);
margin-right: var(--margin-horizontal);
margin-top: var(--margin-vertical);
}

body > * {
width: 100%;
}

body > div {
height: var(--size);
text-shadow: 0 0 5px #fff;
}

#bip:after { content: 'bip322'; }
#bip:hover:after { content: 'verify'; }

.navbar {
display: flex;
justify-content: space-evenly;
align-items: center;
color: #fff;
font-size: calc(var(--size) * 0.2);
}

.navbar a:hover {
color: #fff;
text-decoration: underline;
}
17 changes: 17 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<meta name=viewport content='width=device-width,initial-scale=1'>
<title>bip322.rs</title>
<link href=index.css rel=stylesheet type=text/css>
</head>
<body>
<a href=/verify><div id=bip></div></a>
<nav class="navbar">
<a href=https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki>bip</a>
<a href=https://github.com/raphjaph/bip322>github</a>
<a href=https://crates.io/crates/bip322>crate</a>
</nav>
</body>
</html>

0 comments on commit accdaf9

Please sign in to comment.