Skip to content

Commit 14a0b8b

Browse files
committed
Add Website Sections category with 10 projects (051-060), fix phone header on all demos, dynamic project count
1 parent 3fae83e commit 14a0b8b

96 files changed

Lines changed: 5621 additions & 65 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎01-ai-in-the-browser/001-local-ai-chatbot/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,17 @@
159159
.starters{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}
160160
@media (max-width:760px){.msg{max-width:92%}}
161161

162+
163+
/* mobile header fix */
164+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
165+
.strip dd{overflow-wrap:anywhere}
162166
</style>
163167
</head>
164168
<body>
165169
<div class="wrap">
166170
<header class="topbar">
167171
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
168-
<nav><span>Project 01 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
172+
<nav><span>Project 01 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
169173
</header>
170174
<main>
171175
<section class="hero">

‎01-ai-in-the-browser/002-image-classifier/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,17 @@
155155
.results li:not(:first-child) .track span{opacity:.55}
156156
@media (max-width:760px){.stage{grid-template-columns:1fr}}
157157

158+
159+
/* mobile header fix */
160+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
161+
.strip dd{overflow-wrap:anywhere}
158162
</style>
159163
</head>
160164
<body>
161165
<div class="wrap">
162166
<header class="topbar">
163167
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
164-
<nav><span>Project 02 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
168+
<nav><span>Project 02 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
165169
</header>
166170
<main>
167171
<section class="hero">

‎01-ai-in-the-browser/003-speech-to-text-notes/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,17 @@
158158
.notes .acts button{font-size:13px;min-height:32px;padding:6px 10px}
159159
mark{background:color-mix(in srgb,var(--accent) 30%,transparent);color:inherit}
160160

161+
162+
/* mobile header fix */
163+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
164+
.strip dd{overflow-wrap:anywhere}
161165
</style>
162166
</head>
163167
<body>
164168
<div class="wrap">
165169
<header class="topbar">
166170
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
167-
<nav><span>Project 03 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
171+
<nav><span>Project 03 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
168172
</header>
169173
<main>
170174
<section class="hero">

‎01-ai-in-the-browser/004-ai-text-summarizer/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,17 @@
150150
.stats b{color:var(--ink);font:700 20px var(--display);display:block}
151151
.engine{font-size:14px;margin:0 0 10px}
152152

153+
154+
/* mobile header fix */
155+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
156+
.strip dd{overflow-wrap:anywhere}
153157
</style>
154158
</head>
155159
<body>
156160
<div class="wrap">
157161
<header class="topbar">
158162
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
159-
<nav><span>Project 04 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
163+
<nav><span>Project 04 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
160164
</header>
161165
<main>
162166
<section class="hero">

‎01-ai-in-the-browser/005-smart-writing-assistant/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,17 @@
160160
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:8px}
161161
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px}
162162

163+
164+
/* mobile header fix */
165+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
166+
.strip dd{overflow-wrap:anywhere}
163167
</style>
164168
</head>
165169
<body>
166170
<div class="wrap">
167171
<header class="topbar">
168172
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
169-
<nav><span>Project 05 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
173+
<nav><span>Project 05 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
170174
</header>
171175
<main>
172176
<section class="hero">

‎01-ai-in-the-browser/006-live-translator/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,17 @@
156156
.hist li span:last-child{color:var(--muted)}
157157
@media (max-width:760px){.bar{grid-template-columns:1fr auto 1fr}}
158158

159+
160+
/* mobile header fix */
161+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
162+
.strip dd{overflow-wrap:anywhere}
159163
</style>
160164
</head>
161165
<body>
162166
<div class="wrap">
163167
<header class="topbar">
164168
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
165-
<nav><span>Project 06 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
169+
<nav><span>Project 06 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
166170
</header>
167171
<main>
168172
<section class="hero">

‎01-ai-in-the-browser/007-background-remover/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,17 @@
157157
.bgs input[type=color]{width:40px;height:40px;border:2px solid var(--line);border-radius:50%;padding:0;cursor:pointer;background:none}
158158
@media (max-width:860px){.stage{grid-template-columns:1fr}}
159159

160+
161+
/* mobile header fix */
162+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
163+
.strip dd{overflow-wrap:anywhere}
160164
</style>
161165
</head>
162166
<body>
163167
<div class="wrap">
164168
<header class="topbar">
165169
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
166-
<nav><span>Project 07 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
170+
<nav><span>Project 07 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
167171
</header>
168172
<main>
169173
<section class="hero">

‎01-ai-in-the-browser/008-semantic-search-notes/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,17 @@
162162
.add{display:grid;grid-template-columns:1fr 2fr auto;gap:10px;margin-top:20px}
163163
@media (max-width:760px){.list li{grid-template-columns:1fr auto}.list .sim{grid-column:1/-1}.add{grid-template-columns:1fr}}
164164

165+
166+
/* mobile header fix */
167+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
168+
.strip dd{overflow-wrap:anywhere}
165169
</style>
166170
</head>
167171
<body>
168172
<div class="wrap">
169173
<header class="topbar">
170174
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
171-
<nav><span>Project 08 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
175+
<nav><span>Project 08 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
172176
</header>
173177
<main>
174178
<section class="hero">

‎01-ai-in-the-browser/009-voice-command-controller/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,17 @@
167167
.help{font-size:14px;color:var(--muted);margin:12px 0 0}
168168
@media (max-width:820px){.console{grid-template-columns:1fr}}
169169

170+
171+
/* mobile header fix */
172+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
173+
.strip dd{overflow-wrap:anywhere}
170174
</style>
171175
</head>
172176
<body>
173177
<div class="wrap">
174178
<header class="topbar">
175179
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
176-
<nav><span>Project 09 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
180+
<nav><span>Project 09 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
177181
</header>
178182
<main>
179183
<section class="hero">

‎01-ai-in-the-browser/010-barcode-qr-scanner/demo.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,17 @@
157157
.hist .acts{display:flex;gap:8px}.hist .acts .btn{min-height:32px;padding:6px 10px;font-size:13px}
158158
.panel[hidden]{display:none}
159159

160+
161+
/* mobile header fix */
162+
@media (max-width:560px){.topbar{flex-wrap:wrap;gap:8px}.topbar nav{display:flex;flex-wrap:wrap;gap:6px 12px}.topbar nav span{display:none}.topbar nav a{margin-left:0}}
163+
.strip dd{overflow-wrap:anywhere}
160164
</style>
161165
</head>
162166
<body>
163167
<div class="wrap">
164168
<header class="topbar">
165169
<a class="brand" href="../../">Vanilla JavaScript Projects</a>
166-
<nav><span>Project 10 of 50</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
170+
<nav><span>Project 10 of 100</span><a href="./">About this project</a><a href="../../">All projects</a><button class="theme-btn" type="button" aria-label="Switch light or dark theme">Theme</button></nav>
167171
</header>
168172
<main>
169173
<section class="hero">

0 commit comments

Comments
 (0)