-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae63797
commit 1f075a4
Showing
8 changed files
with
329 additions
and
261 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> | ||
<link rel="manifest" href="%sveltekit.assets%/manifest.json" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
%sveltekit.head% | ||
<style> | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, | ||
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body data-sveltekit-preload-data="hover"> | ||
<div style="display: contents">%sveltekit.body%</div> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> | ||
<link rel="manifest" href="%sveltekit.assets%/manifest.json" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
%sveltekit.head% | ||
<style> | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, | ||
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
overflow: hidden; | ||
} | ||
|
||
* { | ||
color: inherit; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body data-sveltekit-preload-data="hover"> | ||
<div style="display: contents">%sveltekit.body%</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<script lang="ts" context="module"> | ||
export enum AvailableTools { | ||
Pointer, | ||
RectangleSelector, | ||
Paintbrush, | ||
} | ||
export interface ToolDescriptor { | ||
name: string | ||
icon: string | ||
description: string | ||
} | ||
</script> | ||
|
||
<script lang="ts"> | ||
const toolbelt: Record<AvailableTools, ToolDescriptor> = { | ||
[AvailableTools.Pointer]: { | ||
name: "Pointer", | ||
icon: "/theme/cursor-dark.png", | ||
description: "Pointer", | ||
}, | ||
[AvailableTools.RectangleSelector]: { | ||
name: "RectangleSelector", | ||
icon: "/theme/cursor-dark.png", | ||
description: "RectangleSelector", | ||
}, | ||
[AvailableTools.Paintbrush]: { | ||
name: "Paintbrush", | ||
icon: "/theme/cursor-dark.png", | ||
description: "Paintbrush", | ||
}, | ||
} | ||
</script> | ||
|
||
<ul class="toolbox"> | ||
{#each Object.values(toolbelt) as tool} | ||
<li> | ||
<button type="button" title={tool.name}> | ||
<img src={tool.icon} alt={tool.description} width="16" height="16" /> | ||
</button> | ||
</li> | ||
{/each} | ||
</ul> | ||
|
||
<style> | ||
.toolbox { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.toolbox li { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.