Skip to content

Commit 9c51024

Browse files
Add a sponsor page, and give Silverplay its icon
The apps will link to https://silvercode.studio/sponsor, so the ways to tip get their own page and not an anchor on the home page. The page has one card for each way: card or Apple Pay through Stripe, Ko-fi, and GitHub Sponsors. Stripe and Ko-fi say "Coming soon" until their links are ready. A comment in each of those cards holds the button to add. The home page's Support button, support panel, and footer now go to the new page. The home page's inline styles move to css/studio.css, which both pages use, so site.css stays close to Silverside's copy. Silverplay's card now shows its icon, and the hero and app texts have small wording changes.
1 parent 6a23516 commit 9c51024

7 files changed

Lines changed: 170 additions & 30 deletions

File tree

‎AGENTS.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ This repo is the GitHub Pages site for `https://silvercode.studio`. Silvercode S
1010

1111
The site is plain static HTML and CSS at the repo root, with no generator or framework. Do not add one (for example, Jekyll) unless asked.
1212

13-
- `index.html` is the home page. It lists the apps as cards. Styles that only this page uses are in its `<style>` block.
14-
- `css/tokens.css` and `css/site.css` started as copies of Silverside's (`../Silverside/docs/site/css`), so the studio and the apps share one look. `site.css` no longer has Silverside's HDCD and DTS rules. When you change a shared rule, consider the same change in Silverside's copy.
13+
- `index.html` is the home page. It lists the apps as cards.
14+
- `sponsor.html` lists the ways to tip, one card each. The apps link to it as `https://silvercode.studio/sponsor` (GitHub Pages serves `sponsor.html` there), so keep that address working. Links inside the site use `sponsor.html`, because `make site` and `make lint` do not know the short form. A way to tip that is not ready yet shows a "Coming soon" chip, and an HTML comment in its card holds the button to add.
15+
- Every page has the same nav and footer, written out in each file. When you change one, change all pages.
16+
- `css/tokens.css` and `css/site.css` started as copies of Silverside's (`../Silverside/docs/site/css`), so the studio and the apps share one look. `site.css` no longer has Silverside's HDCD and DTS rules. When you change a shared rule, consider the same change in Silverside's copy. The studio's own rules go in `css/studio.css`, not in `site.css`.
1517
- `js/site.js` is the theme part and the phone-menu part of Silverside's `js/site.js`. It shows the theme buttons, sets `data-theme` on `<html>`, and keeps a choice in `localStorage` only while it differs from the system appearance. A short script in `<head>` applies the stored choice before the page draws. Without JavaScript, the page follows the system appearance.
16-
- Images: `images/icon.png` is the studio icon, and `images/apple-touch-icon.png` is the same picture. `images/silverbox.png` is the full-size Silverbox icon; the studio uses the Silverbox floppy disk as its own icon.
18+
- Images: `images/icon.png` is the studio icon, and `images/apple-touch-icon.png` is the same picture. `images/silverbox.png` and `images/silverplay.png` are the full-size app icons; the studio uses the Silverbox floppy disk as its own icon. The pages show 256 px copies (`silverbox-256.png`, `silverplay-256.png`, made with `sips -Z 256 in.png --out out.png`), as the full-size files are up to 2 MB. When an app icon changes, make its copy again.
1719
- `.editorconfig` sets the style: LF line ends, a final newline, no spaces at line ends, and 2-space indents in HTML, CSS, and YAML.
1820

1921
## Commands

‎css/studio.css‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* Silvercode Studio's own rules, on top of tokens.css and site.css (Silverside's look). Colors and
2+
radii still come from tokens.css. */
3+
4+
/* site.css gives nav buttons white text (for Silverside's blue Download); a ghost button needs ink. */
5+
.nav-links a.ss-btn--ghost { color: var(--ink); }
6+
.ss-chip--available { color: var(--verified); }
7+
.ss-chip--soon { color: var(--ink-3); }
8+
9+
/* The home page: the app cards and the About text. */
10+
.apps, .tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
11+
.app-icon { width: 64px; height: 64px; border-radius: var(--radius-tile); filter: drop-shadow(var(--shadow-icon)); }
12+
.app-icon--soon { display: flex; align-items: center; justify-content: center; background: var(--chip); border: 1px solid var(--line); color: var(--ink-3); filter: none; }
13+
.app-icon--soon svg { width: 30px; height: 30px; }
14+
.app-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ink); }
15+
.app-link:hover { text-decoration: underline; text-underline-offset: 3px; }
16+
.about { max-width: var(--container-text); display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
17+
.about a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
18+
.about a:hover { text-decoration-color: currentColor; }
19+
20+
/* The sponsor page: one card for each way to tip, its button at the bottom. */
21+
.tips-section { padding-top: clamp(48px, 6vw, 72px); }
22+
.tips .ss-btn { margin-top: auto; align-self: flex-start; }
23+
.tips-note { max-width: var(--container-text); margin-top: clamp(32px, 4vw, 48px); color: var(--ink-2); text-wrap: pretty; }
24+
.tips-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
25+
.tips-note a:hover { text-decoration-color: currentColor; }
26+
/* The heading lines up with the cards' left edge, not the narrower text column. */
27+
.page-band--wide .wrap { max-width: var(--container); }

‎images/silverbox-256.png‎

69.5 KB
Loading

‎images/silverplay-256.png‎

69.9 KB
Loading

‎images/silverplay.png‎

1.94 MB
Loading

‎index.html‎

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,7 @@
2626
<!-- tokens.css and site.css started as copies of Silverside's (docs/site/css), so the studio and the apps share one look. -->
2727
<link rel="stylesheet" href="css/tokens.css">
2828
<link rel="stylesheet" href="css/site.css">
29-
<style>
30-
/* This page only: the app cards. Colors and radii still come from tokens.css. */
31-
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
32-
.app-icon { width: 64px; height: 64px; border-radius: var(--radius-tile); filter: drop-shadow(var(--shadow-icon)); }
33-
.app-icon--soon { display: flex; align-items: center; justify-content: center; background: var(--chip); border: 1px solid var(--line); color: var(--ink-3); filter: none; }
34-
.app-icon--soon svg { width: 30px; height: 30px; }
35-
.ss-chip--available { color: var(--verified); }
36-
.ss-chip--soon { color: var(--ink-3); }
37-
/* site.css gives nav buttons white text (for Silverside's blue Download); a ghost button needs ink. */
38-
.nav-links a.ss-btn--ghost { color: var(--ink); }
39-
.app-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ink); }
40-
.app-link:hover { text-decoration: underline; text-underline-offset: 3px; }
41-
.about { max-width: var(--container-text); display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
42-
.about a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
43-
.about a:hover { text-decoration-color: currentColor; }
44-
</style>
29+
<link rel="stylesheet" href="css/studio.css">
4530
</head>
4631
<body>
4732
<a class="skip-link" href="#main">Skip to content</a>
@@ -61,7 +46,7 @@
6146
<a class="nav-icon" href="https://github.com/SilvercodeStudio" aria-label="Silvercode Studio on GitHub" title="GitHub"><svg viewBox="0 0 16 16" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"/></svg></a>
6247
<!-- Shown by js/site.js; without the script the page follows the system appearance. -->
6348
<button class="nav-icon theme-btn" type="button" aria-label="Switch appearance" title="Switch appearance" hidden><svg class="icon-sun" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"/></svg><svg class="icon-moon" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z"/></svg></button>
64-
<a class="ss-btn ss-btn--ghost ss-btn--small" href="#support">Support</a>
49+
<a class="ss-btn ss-btn--ghost ss-btn--small" href="sponsor.html">Support</a>
6550
<!-- On a phone the links above give way to this menu; it opens without the script too. -->
6651
<details class="nav-menu">
6752
<summary class="nav-icon" aria-label="Menu" title="Menu"><svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></summary>
@@ -80,7 +65,7 @@
8065
<div class="hero-stack">
8166
<img class="hero-icon" src="images/icon.png" alt="Silvercode Studio icon: a floppy disk with a rainbow disc" width="120" height="120">
8267
<h1 id="hero-title" class="ss-display hero-title">Free apps<br>for the Mac.</h1>
83-
<p class="lead">Silvercode Studio makes free, open-source Mac apps: tools I wanted for myself, and hope you'll find useful too.</p>
68+
<p class="lead">Silvercode Studio makes free, open-source apps for the Mac: tools that I wanted myself, and hope you'll find useful too.</p>
8469
<div class="actions">
8570
<a class="ss-btn ss-btn--ghost" href="#apps">See the apps</a>
8671
</div>
@@ -109,21 +94,21 @@ <h3 class="ss-card__title">Silverside</h3>
10994

11095
<article class="ss-card">
11196
<div class="ss-card__head">
112-
<img class="app-icon" src="images/silverbox.png" alt="" width="64" height="64">
97+
<img class="app-icon" src="images/silverbox-256.png" alt="" width="64" height="64">
11398
<span class="ss-chip ss-chip--soon">Coming soon</span>
11499
</div>
115100
<h3 class="ss-card__title">Silverbox</h3>
116-
<p class="ss-card__text">An emulation launcher for eXoDOS and other collections.</p>
101+
<p class="ss-card__text">An emulation launcher for eXoDOS and other retro game collections.</p>
117102
</article>
118103

119104
<article class="ss-card">
120105
<div class="ss-card__head">
121106
<!-- Swap for Silverplay's icon when it has one. -->
122-
<div class="app-icon app-icon--soon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l11-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="17" cy="16" r="3"/></svg></div>
107+
<img class="app-icon" src="images/silverplay-256.png" alt="" width="64" height="64">
123108
<span class="ss-chip ss-chip--soon">Coming soon</span>
124109
</div>
125110
<h3 class="ss-card__title">Silverplay</h3>
126-
<p class="ss-card__text">A player for the music files on your Mac, offline.</p>
111+
<p class="ss-card__text">A visually engaging music player for the files on your Mac or NAS, offline.</p>
127112
</article>
128113
</div>
129114
</div>
@@ -133,10 +118,10 @@ <h3 class="ss-card__title">Silverplay</h3>
133118
<div class="wrap">
134119
<div class="section-head">
135120
<span class="ss-eyebrow">About</span>
136-
<h2 id="about-title" class="ss-display section-title">One person, a few apps.</h2>
121+
<h2 id="about-title" class="ss-display section-title">A one man studio.</h2>
137122
</div>
138123
<div class="about">
139-
<p>I'm Preston Landers. I've been an enterprise software engineer for a long time. Silvercode Studio is where I build the Mac apps I want for my own use, and share them.</p>
124+
<p>I'm Preston Landers. I've been an enterprise software engineer for a long time. Silvercode Studio is where I build the Mac apps I want for my own use, and to share them with the world.</p>
140125
<p>Every app is free, and its code is open source on <a href="https://github.com/SilvercodeStudio">GitHub</a>. Questions and bug reports go to each app's GitHub issues; anything else to <a href="mailto:hello@silvercode.studio">hello@silvercode.studio</a>.</p>
141126
</div>
142127
</div>
@@ -149,8 +134,7 @@ <h2 id="about-title" class="ss-display section-title">One person, a few apps.</h
149134
<h2 id="support-title" class="ss-display download-title">Support the studio.</h2>
150135
<p class="lead">The apps are free. If one is useful to you, a tip is greatly appreciated. Thank you.</p>
151136
<div class="actions">
152-
<a class="ss-btn ss-btn--ghost" href="https://github.com/sponsors/SilvercodeStudio">Tip on GitHub Sponsors</a>
153-
<!-- When Ko-fi is set up: <a class="ss-btn ss-btn--ghost" href="https://ko-fi.com/[NAME]">Tip on Ko-fi</a> -->
137+
<a class="ss-btn ss-btn--ghost" href="sponsor.html">Ways to support</a>
154138
</div>
155139
</div>
156140
</section>
@@ -165,7 +149,7 @@ <h2 id="support-title" class="ss-display download-title">Support the studio.</h2
165149
<nav class="footer-links" aria-label="Footer">
166150
<a href="https://silverside.app">Silverside</a>
167151
<a href="mailto:hello@silvercode.studio">Contact</a>
168-
<a href="https://github.com/sponsors/SilvercodeStudio">Sponsor</a>
152+
<a href="sponsor.html">Sponsor</a>
169153
<a href="https://github.com/SilvercodeStudio">GitHub</a>
170154
</nav>
171155
</div>

0 commit comments

Comments
 (0)