mirror of https://github.com/sveltejs/svelte
Merge pull request #2524 from sveltejs/gh-2447
Move embedded REPL contents into examplespull/2558/head
commit
5b453ed569
@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
import { comicSans, link } from './styles.js';
|
||||||
|
import Hero from './Hero.html';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Hero/>
|
||||||
|
|
||||||
|
<div class={comicSans}>
|
||||||
|
<p>Did you enjoy your lunch, mom? You drank it fast enough. I know, I just call her Annabelle cause she's shaped like a…she's the belle of the ball! YOU'RE the Chiclet! Not me. Caw ca caw, caw ca caw, caw ca caw! A Colombian cartel that WON'T kidnap and kill you. You go buy a tape recorder and record yourself for a whole day. <a class={link} href="https://bluthipsum.com/">I think you'll be surprised at some of your phrasing.</a></p>
|
||||||
|
</div>
|
@ -0,0 +1,15 @@
|
|||||||
|
<script>
|
||||||
|
import { title, comicSans, box } from './styles.js';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="{title} {comicSans}">
|
||||||
|
<h1>
|
||||||
|
<div class={box}>
|
||||||
|
<div class={box}>
|
||||||
|
<div class={box}>CSS</div>
|
||||||
|
in JS
|
||||||
|
</div>
|
||||||
|
in HTML
|
||||||
|
</div>
|
||||||
|
</h1>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"title": "-"
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
import { css } from 'emotion/dist/emotion.umd.min.js';
|
||||||
|
|
||||||
|
const brand = '#74D900';
|
||||||
|
|
||||||
|
export const title = css`
|
||||||
|
color: ${brand};
|
||||||
|
font-size: 1em;
|
||||||
|
white-space: nowrap;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const comicSans = css`
|
||||||
|
font-family: 'Comic Sans MS';
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const box = css`
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
border: 2px solid ${brand};
|
||||||
|
line-height: 1;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const link = css`
|
||||||
|
color: inherit;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px solid ${brand};
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
background: ${brand};
|
||||||
|
}
|
||||||
|
`;
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
let a = 1;
|
||||||
|
let b = 2;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input type="number" bind:value={a}>
|
||||||
|
<input type="number" bind:value={b}>
|
||||||
|
|
||||||
|
<p>{a} + {b} = {a + b}</p>
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"title": "-"
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
{}
|
Loading…
Reference in new issue