[O] Split components
This commit is contained in:
+2
-11
@@ -1,7 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { fade } from 'svelte/transition';
|
||||
import svelteLogo from './assets/svelte.svg'
|
||||
import viteLogo from '/vite.svg'
|
||||
import Number from './lib/Number.svelte'
|
||||
import { cfg, eStates, Fmt, JsonTy, Misc, nStates, randInt, range, zero8, type Checkpoint, type MetaCheckpoint } from "./utils";
|
||||
import Line from "./lib/Line.svelte";
|
||||
@@ -9,6 +7,7 @@
|
||||
import PuzzleInfo from './lib/PuzzleInfo.svelte';
|
||||
import CompletedOverlay from './lib/CompletedOverlay.svelte';
|
||||
import UploadOverlay from './lib/UploadOverlay.svelte';
|
||||
import Heading from './lib/Heading.svelte';
|
||||
|
||||
const params = new URLSearchParams(location.search)
|
||||
const hasTouch = Misc.hasTouch()
|
||||
@@ -290,15 +289,7 @@
|
||||
|
||||
<main class:color-mode={mode === 'color'} class:colorful-cross={colorfulCross} class:mobile={hasTouch}
|
||||
style="--gcw: {cfg.cellW}px; --glw: {cfg.lineW}px; --gtw: {cfg.totalW}px;">
|
||||
<div class="heading">Azalea's Colorful Slither Link</div>
|
||||
<div class="sub-heading">
|
||||
<img src={viteLogo} alt="Logo"/>
|
||||
<span><a href="https://github.com/hykilpikonna/colorful-link">GitHub</a> | <a href="https://aza.moe">Blog</a></span>
|
||||
<img src={svelteLogo} alt="Logo"/>
|
||||
</div>
|
||||
<div class="rules">
|
||||
Welcome to SlitherLink! 🧩 The rules are simple: Draw lines between the dots to create one big loop (no crossings, no branches). The numbers are your hints – they tell you how many lines should surround them. Left-click to draw, right-click to mark with an X. Can you crack the perfect path? <a href="https://www.youtube.com/watch?v=fqwE-CpeGS4&list=PLH_elo2OIwaBk44COgFhnJRt0-8xKMBQn">YouTube Tutorial</a>
|
||||
</div>
|
||||
<Heading/>
|
||||
|
||||
{#if statusMsg}
|
||||
<div class="status" class:error={!complete}>{statusMsg}</div>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import svelteLogo from '../assets/svelte.svg'
|
||||
import viteLogo from '../assets/vite.svg'
|
||||
</script>
|
||||
|
||||
<div class="heading">Azalea's Colorful Slither Link</div>
|
||||
<div class="sub-heading">
|
||||
<img src={viteLogo} alt="Logo"/>
|
||||
<span><a href="https://github.com/hykilpikonna/colorful-link">GitHub</a> | <a href="https://aza.moe">Blog</a></span>
|
||||
<img src={svelteLogo} alt="Logo"/>
|
||||
</div>
|
||||
<div class="rules">
|
||||
Welcome to SlitherLink! 🧩 The rules are simple: Draw lines between the dots to create one big loop (no crossings, no branches). The numbers are your hints – they tell you how many lines should surround them. Left-click to draw, right-click to mark with an X. Can you crack the perfect path? <a href="https://www.youtube.com/watch?v=fqwE-CpeGS4&list=PLH_elo2OIwaBk44COgFhnJRt0-8xKMBQn">YouTube Tutorial</a>
|
||||
</div>
|
||||
@@ -1,5 +1,7 @@
|
||||
<script lang="ts">
|
||||
export let puzzleData = {}
|
||||
import type { MetaCheckpoint } from "../utils";
|
||||
|
||||
export let puzzleData: MetaCheckpoint | null = null
|
||||
</script>
|
||||
|
||||
<div class="puzzle-desc">
|
||||
|
||||
Reference in New Issue
Block a user