Skip to content

Commit bca32e2

Browse files
committed
Initial commit: ART star count display for tablets with GitHub Pages deployment
1 parent ef2acf2 commit bca32e2

3 files changed

Lines changed: 111 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v5
29+
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: '.'
34+
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# ART Star Count Display
2+
3+
A simple website that displays the current star count for the [OpenPipe/ART](https://github.com/OpenPipe/ART) GitHub repository.
4+
5+
## Features
6+
- Large, tasteful display of star count
7+
- Auto-refreshes every 30 seconds
8+
- Loads live count on page load
9+
- Clean, modern design
10+
11+
## Deployment
12+
13+
### Option 1: Vercel (Recommended - Easiest)
14+
1. Go to [vercel.com](https://vercel.com)
15+
2. Sign up/login with GitHub
16+
3. Click "Add New..." → "Project"
17+
4. Import this repository or drag the `art-star-count` folder
18+
5. Click "Deploy"
19+
20+
### Option 2: Netlify Drop
21+
1. Go to [app.netlify.com/drop](https://app.netlify.com/drop)
22+
2. Drag the `art-star-count` folder into the browser
23+
3. Your site will be deployed instantly
24+
25+
### Option 3: GitHub Pages
26+
1. Create a new GitHub repository
27+
2. Push this code to the repository
28+
3. Go to Settings → Pages
29+
4. Enable GitHub Pages from the main branch
30+
5. Your site will be available at `https://[username].github.io/[repo-name]`
31+
32+
## Local Development
33+
```bash
34+
# Using Python
35+
python -m http.server 8000
36+
37+
# Or using Node.js
38+
npx http-server
39+
```
40+
41+
Then open http://localhost:8000 in your browser.

index.html

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
.container {
2020
text-align: center;
2121
background: white;
22-
padding: 3rem 4rem;
22+
padding: 5vw 6vw;
2323
border-radius: 20px;
2424
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
2525
transition: transform 0.3s ease;
26+
width: 90vw;
27+
max-width: 1200px;
2628
}
2729

2830
.container:hover {
@@ -31,55 +33,73 @@
3133

3234
h1 {
3335
color: #2d3748;
34-
font-size: 2.5rem;
35-
margin-bottom: 2rem;
36+
font-size: clamp(3rem, 6vw, 5rem);
37+
margin-bottom: 3vh;
3638
font-weight: 600;
3739
}
3840

3941
.star-count {
40-
font-size: 5rem;
42+
font-size: clamp(6rem, 12vw, 10rem);
4143
font-weight: 700;
4244
color: #4a5568;
43-
margin: 1rem 0;
45+
margin: 2vh 0;
4446
display: flex;
4547
align-items: center;
4648
justify-content: center;
47-
gap: 1rem;
49+
gap: 2vw;
4850
}
4951

5052
.star-icon {
5153
color: #f6e05e;
52-
font-size: 4rem;
54+
font-size: clamp(5rem, 10vw, 8rem);
5355
}
5456

5557
.loading {
5658
color: #718096;
57-
font-size: 3rem;
59+
font-size: clamp(3rem, 6vw, 5rem);
5860
}
5961

6062
.error {
6163
color: #e53e3e;
62-
font-size: 1.5rem;
64+
font-size: clamp(1.5rem, 3vw, 2.5rem);
6365
}
6466

6567
.refresh-info {
6668
color: #718096;
67-
font-size: 0.9rem;
68-
margin-top: 2rem;
69+
font-size: clamp(1rem, 2vw, 1.5rem);
70+
margin-top: 3vh;
6971
}
7072

7173
.github-link {
72-
margin-top: 1.5rem;
74+
margin-top: 2vh;
7375
display: inline-block;
7476
color: #4a5568;
7577
text-decoration: none;
76-
font-size: 1.1rem;
78+
font-size: clamp(1.2rem, 2.5vw, 2rem);
7779
transition: color 0.3s ease;
7880
}
7981

8082
.github-link:hover {
8183
color: #2d3748;
8284
}
85+
86+
@media (orientation: portrait) {
87+
.container {
88+
padding: 8vw;
89+
}
90+
91+
h1 {
92+
font-size: clamp(4rem, 8vw, 6rem);
93+
}
94+
95+
.star-count {
96+
font-size: clamp(8rem, 16vw, 12rem);
97+
}
98+
99+
.star-icon {
100+
font-size: clamp(6rem, 12vw, 10rem);
101+
}
102+
}
83103
</style>
84104
</head>
85105
<body>

0 commit comments

Comments
 (0)