Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions packages/docs/src/assets/depot-logo-horizontal-on-light.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/docs/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ const { title = 'Framework Tracker' } = Astro.props
background-color: var(--ft-bg);
}

:root {
color-scheme: light;

&.dark {
color-scheme: dark;
}
}

main {
display: flex;
justify-content: center;
Expand Down
56 changes: 23 additions & 33 deletions packages/docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import PageHeader from '../components/PageHeader.astro'
import SPACharts from '../components/SPACharts.astro'
import SSRCharts from '../components/SSRCharts.astro'
import Layout from '../layouts/Layout.astro'
import DepotLogoDark from '../assets/depot-logo-horizontal-on-dark.svg'
import DepotLogoLight from '../assets/depot-logo-horizontal-on-light.svg'
import DepotLogo from '../assets/depot-logo-horizontal.svg'
---

<Layout>
Expand All @@ -24,27 +23,27 @@ import DepotLogoLight from '../assets/depot-logo-horizontal-on-light.svg'
rel="noopener noreferrer"
class="roadmap-link"
>
roadmap
</a>.
roadmap</a
>.
</Description>
<Description>
Stats are currently in active development and may change as we refine our
methodology and testing process.
</Description>

<p class="depot-text">
All tests and stat generation is run on Depot runners to ensure fairer and
faster testing.
</p>
<div class="depot-logo">
<div class="depot">
<p>
All of the testing and stat generation is run by our Infrastructure
Partner Depot to ensure consistent, fairer, and faster testing.
</p>

<a
href="https://depot.dev/"
target="_blank"
rel="noopener noreferrer"
aria-label="Depot"
>
<DepotLogoLight class="logo logo-light" />
<DepotLogoDark class="logo logo-dark" />
<DepotLogo class="logo logo-light" />
</a>
</div>

Expand Down Expand Up @@ -90,29 +89,20 @@ import DepotLogoLight from '../assets/depot-logo-horizontal-on-light.svg'
font-weight: 500;
}

.depot-text {
color: var(--ft-muted);
display: inline;
}
.depot {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;

.depot-logo {
display: inline;
}

.depot-logo :global(svg) {
transform: scale(0.75);
transform-origin: left center;
}

.logo-dark {
display: none;
}

:global(html.dark) .logo-light {
display: none;
}
p {
color: var(--ft-muted);
flex: 1 1 66%;
}

:global(html.dark) .logo-dark {
display: inline;
:global(svg) {
height: 42px;
width: auto;
}
}
</style>
Loading