pull/8579/head
Puru Vijay 3 years ago
parent fd9088bbf5
commit d581538a8c

@ -22,7 +22,8 @@
<div class="blurb-shifter">
<Blurb>
<div slot="one">
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div slot="one" id="main" tabindex="0">
<h2>Write less code</h2>
<p>
Build boilerplate-free components using languages you already know — HTML, CSS and

@ -67,6 +67,10 @@
margin: 0 0 2em 0;
}
a[href] {
color: color-mix(in srgb, var(--sk-theme-1) 90%, var(--sk-text-1) 15%);
}
.supporter {
width: 100%;
aspect-ratio: 1;

@ -2,7 +2,6 @@
import { page } from '$app/stores';
import '@sveltejs/site-kit/styles/code.css';
/** @type {import('./$types').PageData} */
export let data;
</script>
@ -18,7 +17,8 @@
<meta name="og:image" content="https://svelte.dev/blog/{$page.params.slug}/card.png" />
</svelte:head>
<article class="post listify text">
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<article class="post listify text" id="main" tabindex="0">
<h1>{data.post.title}</h1>
<p class="standfirst">{data.post.description}</p>
@ -97,12 +97,12 @@
border-radius: 0 var(--sk-border-radius) var(--sk-border-radius) 0;
}
.post :global(code) {
/* .post :global(code) {
padding: 0.3rem 0.8rem 0.3rem;
margin: 0 0.2rem;
top: -0.1rem;
background: var(--sk-back-4);
}
} */
.post :global(pre) :global(code) {
padding: 0;

@ -1,6 +1,4 @@
<script>
import '@sveltejs/site-kit/styles/code.css';
export let data;
</script>
@ -15,7 +13,7 @@
<div class="faqs stretch">
<h1>Frequently Asked Questions</h1>
{#each data.faqs as faq}
<article class="faq">
<article class="faq text">
<h2>
<span id={faq.slug} class="offset-anchor" />
{faq.title}

@ -132,7 +132,8 @@
</div>
</div>
<div class="tutorial-repl">
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div class="tutorial-repl" id="main" tabindex="0">
{#if browser}
<Repl
bind:this={repl}

@ -7,6 +7,8 @@
export let slug;
export let selected;
let select_focused = false;
function navigate(e) {
goto(`/tutorial/${e.target.value}`);
}
@ -22,7 +24,7 @@
<Icon name="arrow-left" />
</a>
<div>
<div style:box-shadow={select_focused ? 'var(--sk-focus-outline)' : null}>
<span>
<strong>
<span style="position: relative; top: -0.1em; margin: 0 0.5em 0 0"
@ -33,7 +35,13 @@
{selected.chapter.title}
</span>
<select value={slug} on:change={navigate}>
<select
aria-label="{selected.section.title} / {selected.chapter.title}"
value={slug}
on:change={navigate}
on:focus={() => (select_focused = true)}
on:blur={() => (select_focused = false)}
>
{#each sections as section, i}
<optgroup label="{i + 1}. {section.title}">
{#each section.tutorials as chapter, i}

Loading…
Cancel
Save