Skip to content

Commit 1b6fb4b

Browse files
committed
use delta wallpapers temporarily
1 parent 1ef911e commit 1b6fb4b

File tree

5 files changed

+1638
-0
lines changed

5 files changed

+1638
-0
lines changed

.github/workflows/static.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["master"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v3
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v1
37+
with:
38+
# Upload entire repository
39+
path: '.'
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v1

assets/script.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fetch('./config.json')
2+
.then((response) => response.json())
3+
.then((json) => {
4+
for (entry of json) {
5+
document.getElementById('grid').innerHTML += `<li><a target="_blank" href="${entry.url}" style="background-image: url('${entry.thumbUrl}');"></a><div class="details"><h3><a title="${entry.name}">${entry.name}</a></h3><p title="${entry.author}" class="image-author">${entry.author}</p></div></li>`
6+
}
7+
})

assets/style.css

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
html {
2+
margin: 100px;
3+
font-family: 'HKGroteskRegular';
4+
}
5+
6+
body {
7+
background-color: #444444;
8+
}
9+
10+
.image-list-small {
11+
margin: 0 auto;
12+
text-align: center;
13+
max-width: 1200px;
14+
padding: 0;
15+
}
16+
17+
.image-list-small li {
18+
display: inline-block;
19+
margin: 0 12px 30px;
20+
}
21+
22+
h1,h2,h3,h4{
23+
text-transform: uppercase;
24+
letter-spacing: 0.1em;
25+
margin-right:-0.1em;
26+
font-weight: normal;
27+
color: #fff;
28+
font-family: "NowAltBold";
29+
text-align: center;
30+
margin: 50px;
31+
font-size: 4.2vw;
32+
width: auto;
33+
}
34+
35+
.image-list-small li > a {
36+
display: block;
37+
text-decoration: none;
38+
background-size: cover;
39+
background-repeat: no-repeat;
40+
width: 250px;
41+
height: 400px;
42+
margin: 0;
43+
padding: 0;
44+
border-radius: 10px;
45+
}
46+
47+
li > a:hover {
48+
opacity: 0.5;
49+
}
50+
51+
.image-list-small .details {
52+
margin-top: 13px;
53+
width: 250px;
54+
}
55+
56+
57+
.image-list-small .details h3 {
58+
display: block;
59+
font-size: 14px;
60+
margin: 0 0 3px 0;
61+
white-space: pre;
62+
word-wrap: break-word;
63+
overflow: hidden;
64+
text-overflow: ellipsis;
65+
}
66+
67+
.image-list-small .details h3 a {
68+
color: white;
69+
text-decoration: none;
70+
}
71+
72+
.image-list-small .details .image-author {
73+
display: block;
74+
color: #717171;
75+
font-size: 14px;
76+
font-weight: normal;
77+
margin: 0;
78+
}
79+

0 commit comments

Comments
 (0)