Skip to content

Commit

Permalink
chore: remaining cowify
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Jan 9, 2024
1 parent c4a7d37 commit 27fd248
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2e2e2e" />
<meta
name="description"
content="Learn Svelte and SvelteKit with an interactive browser-based tutorial"
content="Learn CoW Protocol with an interactive browser-based tutorial"
/>
<link rel="manifest" href="/manifest.json" />
%sveltekit.head%
Expand Down
8 changes: 4 additions & 4 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{#if $page.status === 404}
<h1>Not found!</h1>
{:else if online}
<h1>Yikes!</h1>
<h1>Mooo!</h1>

{#if $page.error?.message}
<p class="error">{$page.status}: {$page.error.message}</p>
Expand All @@ -23,9 +23,9 @@
<p>Please try reloading the page.</p>

<p>
If the error persists, please drop by <a href="https://svelte.dev/chat">Discord chatroom</a>
and let us know, or raise an issue on
<a href="https://github.com/sveltejs/svelte">GitHub</a>. Thanks!
If the error persists, please drop by <a href="https://discord.com/invite/cowprotocol">#tech-talk</a>
on Discord and let us know, or raise an issue on
<a href="https://github.com/cowprotocol/tutorial">GitHub</a>. Thanks!
</p>
{:else}
<h1>It looks like you're offline</h1>
Expand Down
8 changes: 4 additions & 4 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
</svelte:fragment>

<svelte:fragment slot="external-links">
<a href="https://svelte.dev">Svelte</a>
<a href="https://cow.fi">CoW DAO</a>

<a href="https://kit.svelte.dev">SvelteKit</a>
<a href="https://docs.cow.fi">Documentation</a>

<Separator />

<a href="https://svelte.dev/chat" title="Discord Chat">
<a href="https://discord.com/invite/cowprotocol" title="Discord Chat">
<span class="small">Discord</span>
<span class="large"><Icon name="discord" /></span>
</a>

<a href="https://github.com/sveltejs/learn.svelte.dev" title="GitHub Repo">
<a href="https://github.com/cowprotocol/tutorial" title="GitHub Repo">
<span class="small">GitHub</span>
<span class="large"><Icon name="github" /></span>
</a>
Expand Down
22 changes: 11 additions & 11 deletions src/routes/tutorial/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,20 @@
</script>
<svelte:head>
<title>{data.exercise.chapter.title} / {data.exercise.title} • Svelte Tutorial</title>
<title>{data.exercise.chapter.title} / {data.exercise.title} • CoW Protocol Tutorial</title>
<meta name="twitter:title" content="{data.exercise.title} • Svelte Tutorial" />
<meta name="twitter:title" content="{data.exercise.title} • CoW Protocol Tutorial" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@sveltejs" />
<meta name="twitter:creator" content="@sveltejs" />
<meta name="twitter:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
<meta property="twitter:domain" content="learn.svelte.dev" />
<meta property="twitter:url" content="https://learn.svelte.dev" />
<meta property="og:title" content="{data.exercise.title} • Svelte Tutorial" />
<meta property="og:url" content="https://learn.svelte.dev" />
<meta name="twitter:site" content="@CoWSwap" />
<meta name="twitter:creator" content="@CoWSwap" />
<meta name="twitter:image" content="https://cow.fi/images/og-meta-cowprotocol.png" />
<meta property="twitter:domain" content="learn.cow.fi" />
<meta property="twitter:url" content="https://learn.cow.fi" />
<meta property="og:title" content="{data.exercise.title} • CoW Protocol Tutorial" />
<meta property="og:url" content="https://learn.cow.fi" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
<meta property="og:image" content="https://cow.fi/images/og-meta-cowprotocol.png" />
</svelte:head>
<svelte:window
Expand Down
12 changes: 2 additions & 10 deletions src/routes/tutorial/[slug]/Loading.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
/** @type {string} */
export let status;
$: is_svelte = /Part (1|2)/.test($page.data.exercise.part.title);
</script>

<div class="loading">
Expand All @@ -40,7 +38,7 @@
</p>
<p>
If you have 'Delete cookies and site data when Firefox is closed' enabled in
<code>about:preferences#privacy</code>, make sure <code>learn.svelte.dev</code> is included
<code>about:preferences#privacy</code>, make sure <code>learn.cow.fi</code> is included
as an exception.
</p>
{:else if /chrome/i.test(navigator.userAgent) && !/edg/i.test(navigator.userAgent)}
Expand All @@ -59,20 +57,14 @@
/>
</svg>
icon in the URL bar or go to
<code>chrome://settings/cookies</code> and add <code>learn.svelte.dev</code> to 'Sites that
<code>chrome://settings/cookies</code> and add <code>learn.cow.fi</code> to 'Sites that
can always use cookies'.
</p>
{:else}
<p>
We couldn't start the app. Please ensure third party cookies are enabled for this site.
</p>
{/if}

{#if is_svelte}
<a href="https://svelte.dev/tutorial/{$page.data.exercise.slug}">
Go to the legacy svelte tutorial instead <Icon name="arrow-right" />
</a>
{/if}
</div>

<small>{error.message}</small>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/tutorial/[slug]/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const dispatch = createEventDispatcher();
const namespace = 'learn.svelte.dev';
const namespace = 'learn.cow.fi';
const copy_enabled = `${namespace}:copy_enabled`;
/** @type {HTMLElement} */
Expand Down Expand Up @@ -84,7 +84,7 @@
target="_blank"
rel="noreferrer"
class="edit"
href="https://github.com/sveltejs/learn.svelte.dev/tree/main/{exercise.dir}"
href="https://github.com/cowprotocol/tutorial/tree/main/{exercise.dir}"
>
Edit this page
</a>
Expand Down

0 comments on commit 27fd248

Please sign in to comment.