Skip to content

Commit f3f943e

Browse files
committed
Homepage: remove image, clean up media
1 parent b73de56 commit f3f943e

File tree

9 files changed

+20
-12
lines changed

9 files changed

+20
-12
lines changed

components/Layout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const Layout = (props: Props) =>
3535
3636
<button class="-minimal" id="searchBtn">
3737
<svg width="20" height="20" viewBox="0 0 25 25" xmlns="http://www.w3.org/2000/svg">
38+
<title>Search</title>
3839
<path stroke-width="2" stroke="currentColor" d="m16.1507,15.85658l6.04878,6.04878l-6.04878,-6.04878za7.533,7.533 0 1 1 -10.653,-10.653a7.533,7.533 0 0 1 10.653,10.653" stroke-linejoin="round" stroke-linecap="round" fill="none" />
3940
</svg>
4041
<span>Search</span>

data/index.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ layout: hero
1818
<a class="button" data-goatcounter-click="home.try" data-goatcounter-title="top" href="https://github.dev/mastrojs/template-basic">Try online with GitHub</a>
1919
<a class="button -secondary" href="#powerful-for-experienced-developers">Install with Deno, Node.js or Bun</a>
2020

21-
<p>
22-
<picture>
23-
<source media="(width < 550px)" sizes="100vw" srcset="/assets/vscode-example-mobile.webp 512w, /assets/[email protected] 1024w">
24-
<source media="(width >= 550px)" sizes="100vw" srcset="/assets/vscode-example.webp 900w, /assets/[email protected] 1800w">
25-
<img src="/assets/vscode-example.webp" width="1800" height="1017" loading="lazy" alt="Screenshot">
26-
</picture>
27-
</p>
21+
<div class="tip center-text">
2822

29-
<div class="col2 -vertical-center">
23+
## As seen on the Internet!
24+
25+
<div class="flex">
3026

3127
<a href="https://thenewstack.io/minimalist-mastro-framework-offers-modern-take-on-mpas/"><img alt="The New Stack" loading="lazy" src="/assets/home/thenewstack.svg" width="427"></a>
3228

29+
<a href="https://typescript.fm/43#t=38m22s"><img alt="TypeScript.fm" loading="lazy" srcset="/assets/home/[email protected] 2x, /assets/home/typescriptfm.webp" width="110"></a>
30+
3331
<a href="https://thathtml.blog/2024/12/new-custom-element-superclass-on-the-block/"><img alt="That HTML blog" loading="lazy" src="/assets/home/thathtmlblog.svg" width="427"></a>
3432

3533
</div>
3634

35+
</div>
3736

3837
<div class="tabs">
3938
<details name="example" open>
@@ -116,7 +115,7 @@ Start with HTML and CSS. Then build a blog, and a to-do list app with JavaScript
116115

117116
## Powerful for experienced developers
118117

119-
I've seen things you people wouldn't believe. Megabytes of JavaScript on fire in the browser. I watched towers of complex abstractions collapse upon themselves. All those codebases will be lost in time, like tears in rain. Time to let them die.
118+
> I've seen things you people wouldn't believe. Megabytes of JavaScript on fire in the browser. I watched towers of complex abstractions collapse upon themselves. All those codebases will be lost in time, like tears in rain. Time to let them die.
120119
121120
There are [various way to run Mastro](/guide/cli-install/). If you're unsure which runtime to pick, we recommend [Deno](https://deno.com). For Node.js, `pnpm` is [recommended](https://jsr.io/docs/npm-compatibility), although `npm` and `yarn` also work.
122121

2.38 KB
Loading
5.78 KB
Loading
-23.7 KB
Binary file not shown.

routes/assets/[email protected]

-59.2 KB
Binary file not shown.

routes/assets/vscode-example.webp

-31.5 KB
Binary file not shown.

routes/assets/[email protected]

-75.1 KB
Binary file not shown.

routes/styles/styles.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ header {
278278
}
279279
> div {
280280
display: flex;
281+
@media (min-width: 400px) {
282+
> a {
283+
padding: 0 0.3em;
284+
}
285+
}
281286
@media (min-width: 1000px) {
282287
> a:first-child {
283288
margin-right: 1em;
@@ -378,16 +383,19 @@ main.hero {
378383

379384

380385
@media (min-width: 1000px) {
386+
.flex {
387+
display: flex;
388+
align-items: center;
389+
gap: 2em;
390+
}
391+
381392
.col2 {
382393
display: grid;
383394
grid-template-columns: repeat(2, minmax(0, 1fr));
384395
gap: 5em;
385396
> div > *:first-child {
386397
margin-top: 0;
387398
}
388-
&.-vertical-center {
389-
align-items: center;
390-
}
391399
}
392400
}
393401
.col3 > ul {

0 commit comments

Comments
 (0)