Alloy CSS 示範不用 JavaScript 也能運作的對話方塊、選單和分頁
Show HN: Alloy CSS, dialogs, menus and tabs that work with JavaScript off
網頁通常得靠 JavaScript 才能做出對話方塊、選單和分頁,但 Alloy CSS 的示範頁展示了另一種做法。
- 這個頁面用單一 HTML 檔呈現虛構記帳 App Ledger,裡面有發票清單、逾期款項、付款紀錄和常見問題,整頁沒有使用 JavaScript。
- 想了解 Alloy CSS 怎麼呈現這些介面,可以檢視頁面的原始碼。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
Invoices
24 invoices in the last 90 days
Outstanding
$18,240
12 invoices
Overdue
$4,860
3 invoices
Paid in November
$32,410
18% more than October
Time to get paid
11 days
2 days faster than October
3 invoices are overdue, $4,860 in total. A friendly reminder usually does it.
Selected invoices
| Select | Invoice | Client | Due | Status | Amount | Actions |
|---|---|---|---|---|---|---|
| INV-0149Nov 15 | Okafor Legal | Nov 29 | Draft | $950.00 | ||
| INV-0148Nov 14 | Tidewater Coffee | Nov 28 | Draft | $1,250.00 | ||
| INV-0147Nov 12 | Lumen Architects | Nov 26 | Sent | $4,800.00 | ||
| INV-0146Nov 10 | Brightline Studio | Nov 24 | Opened | $2,340.00 | ||
| INV-0145Nov 3 | Okafor Legal | Nov 17 | Paid | $3,600.00 | ||
| INV-0144Oct 28 | Harbor & Pine | Nov 11 5 days late | Overdue | $1,980.00 | ||
| INV-0143Oct 24 | Northfield Clinic | Nov 7 9 days late | Overdue | $2,150.00 | ||
| INV-0142Oct 20 | Vega Logistics | Nov 3 | Paid | $6,400.00 |
1 to 8 of 24
Previous Next
| Invoice | Client | Due | Amount | Actions |
|---|---|---|---|---|
| INV-0144Oct 28 | Harbor & Pine | Nov 11 5 days late | $1,980.00 | |
| INV-0143Oct 24 | Northfield Clinic | Nov 7 9 days late | $2,150.00 | |
| INV-0141Oct 15 | Marlow Books | Oct 29 18 days late | $730.00 |
3 overdue, $4,860.00 in total
| Invoice | Client | Paid on | Amount |
|---|---|---|---|
| INV-0145 | Okafor Legal | Nov 11, by card | $3,600.00 |
| INV-0140 | Brightline Studio | Nov 9, bank transfer | $2,900.00 |
| INV-0139 | Tidewater Coffee | Nov 6, by card | $1,100.00 |
| INV-0142 | Vega Logistics | Nov 2, bank transfer | $6,400.00 |
1 to 4 of 10 Next
2 drafts waiting
INV-0149 for Okafor Legal and INV-0148 for Tidewater Coffee, $2,200.00 together.
Top clients
Last 90 days
Lumen Architects$14,200
Vega Logistics$12,800
Okafor Legal$9,450
Brightline Studio$7,540
Recent activity
- Okafor Legal paid INV-0145$3,600.00 by card Nov 11
- Brightline Studio opened INV-0146Twice, from an email Nov 12
- You sent INV-0147 to Lumen Architects$4,800.00, due Nov 26 Nov 12
- INV-0144 is overdueHarbor & Pine, $1,980.00 Nov 12
Questions
When does a client get a reminder on their own?
Three days before the due date, on the day, and every seven days after. Change it in Settings.
Can a client pay part of an invoice?
Yes. The invoice stays open, showing what's left, until the rest arrives.
Ledger is a made-up app. This page is one HTML file with Alloy CSS and no JavaScript. See its source.