Skip to content

Commit

Permalink
rm: repositiory link
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed May 20, 2024
1 parent 6cd7fef commit 2f8476f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
21 changes: 10 additions & 11 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<script lang="ts" context="module">
import { time } from "$lib/dates";
import { images } from "$lib/images";
import { time } from '$lib/dates';
import { images } from '$lib/images';
import DateForm from "$lib/components/DateForm.svelte";
import Control from "$lib/components/Control.svelte";
import Counter from "$lib/components/Counter.svelte";
import Quote from "$lib/components/Quote.svelte";
import DateForm from '$lib/components/DateForm.svelte';
import Control from '$lib/components/Control.svelte';
import Counter from '$lib/components/Counter.svelte';
import Quote from '$lib/components/Quote.svelte';
import { quotes } from "$lib/quotes";
import { counters } from "$lib/counters";
import { quotes } from '$lib/quotes';
import { counters } from '$lib/counters';
</script>

<script lang="ts">
export let name: Name;
export let repository: Repository;
let active: string | undefined;
Expand All @@ -40,7 +39,7 @@
</header>
<Counter {counter} />
{#key counter.quote}
<Quote quote={counter.quote} href={repository} />
<Quote quote={counter.quote} />
{/key}
</section>
{/each}
Expand All @@ -58,7 +57,7 @@
{/await}

<style>
@import "app.css";
@import 'app.css';
header {
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import App from './App.svelte';

export default new App({
target: document.body,
props: { name, repository: repository.url }
props: { name }
});
10 changes: 2 additions & 8 deletions src/lib/components/Quote.svelte
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<script lang="ts" context="module">
import { fade } from "svelte/transition";
import { fade } from 'svelte/transition';
</script>

<script lang="ts">
export let quote: [text: string, author: string];
export let href = "";
</script>

{#if quote}
{@const [text, author] = quote}
<blockquote in:fade>
<p>{text}</p>
<p>
<a {href} target="_blank">~ {author}</a>
</p>
<cite>~ {author}</cite>
</blockquote>
{/if}

Expand All @@ -26,7 +23,4 @@
font-style: italic;
margin: 1em;
}
blockquote a {
font-style: normal;
}
</style>

0 comments on commit 2f8476f

Please sign in to comment.