Commit 9f412e19 authored by Aral Balkan's avatar Aral Balkan
Browse files

Remove earlier component test sections

parent b59344cf
import SetupSection from './sections/Setup.svelte'
import HomeSection from './sections/Home.svelte'
import AboutSection from './sections/About.svelte'
import SlidingSection from './sections/Sliding.svelte'
import SwitchSection from './sections/Switch.svelte'
import PrivateSection from './sections/Private.svelte'
import SignInSection from './sections/SignIn.svelte'
import SignOutSection from './sections/SignOut.svelte'
......@@ -23,8 +21,6 @@ signedIn.subscribe(value => {
export const sections = [
{ path: '/', title: 'Home', route: HomeSection},
{ path: '/about', title: 'About', route: AboutSection},
{ path: '/sliding', title: 'Sliding', route: SlidingSection},
{ path: '/switch', title: 'Switch', route: SwitchSection},
{ path: '/sign-in', title: 'Sign in', route: SignInSection},
{ path: '/sign-out', title: 'Sign out', route: SignOutSection, isPrivate: true},
{ path: '/private', title: 'Private', route: PrivateSection, isPrivate: true},
import Section from './Section.svelte'
import { slide } from 'svelte/transition'
let show = true
<Section path='/sliding' title='A little sliding thing'>
{#if show}
<div transition:slide={show}>
<h3>Hello, I am here!</h3>
<button on:click={() => show = !show}>Toggle visibility</button>
// @hmr:reset
import Section from './Section.svelte'
import Switch from 'svelte-switch'
let checkedValue = true;
function handleChange(e) {
const { checked } = e.detail;
checkedValue = checked;
p { font-size: 1.4em; }
<Section path='/switch' title='An npm-installed switch component'>
<Switch on:change={handleChange} checked={checkedValue} />
<p>The switch is <strong>{checkedValue ? 'on' : 'off'}</strong>.</p>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment