-
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.
* isolate new templates * change default languages * add runes support
- Loading branch information
Showing
12 changed files
with
113 additions
and
6 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
src/sveltekit-component/files/v2/runes/__name@classify__.svelte.template
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,54 @@ | ||
<script<% if (language !== "js") { %> lang="<%= language %>"<% } %>> | ||
let name = $state(`<%= classify(name) %>`); | ||
let message = $derived(`${name} works`); | ||
</script> | ||
|
||
<article> | ||
{message} | ||
</article> | ||
|
||
<style<% if (style !== "css") { %> lang="<%= style %>"<% } %>> | ||
article { | ||
--some-color: rgba(0, 0, 0, 0.2); | ||
box-shadow: | ||
0 2px 2px 0 var(--some-color), | ||
0 12px 22px 0 var(--some-color); | ||
max-width: 30ch; | ||
outline: 1px solid var(--some-color); | ||
overflow: hidden; | ||
padding: 0.5em; | ||
text-align: center; | ||
} | ||
|
||
article:hover { | ||
animation: tada 1s; | ||
} | ||
|
||
@keyframes tada { | ||
from { | ||
transform: scale3d(1, 1, 1); | ||
} | ||
|
||
10%, | ||
20% { | ||
transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); | ||
} | ||
|
||
30%, | ||
50%, | ||
70%, | ||
90% { | ||
transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); | ||
} | ||
|
||
40%, | ||
60%, | ||
80% { | ||
transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); | ||
} | ||
|
||
to { | ||
transform: scale3d(1, 1, 1); | ||
} | ||
} | ||
</style> |
File renamed without changes.
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
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,25 @@ | ||
<script lang="ts"> | ||
import type { PageData } from './$types'; | ||
let { data }: { data: PageData } = $props(); | ||
let title = $derived(`${data.subject} - Generated`); | ||
</script> | ||
|
||
<svelte:head> | ||
<title>{title}</title> | ||
</svelte:head> | ||
|
||
<h1>{data.subject} works</h1> | ||
|
||
<style<% if (style !== "css") { %> lang="<%= style %>"<% } %>> | ||
h1 { | ||
all: unset; | ||
display: block; | ||
font-size: 2em; | ||
margin-block-start: 0.67em; | ||
margin-block-end: 0.67em; | ||
margin-inline-start: 0px; | ||
margin-inline-end: 0px; | ||
font-weight: bold; | ||
unicode-bidi: isolate; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { error } from '@sveltejs/kit'; | ||
import type { PageLoad } from './$types'; | ||
|
||
export const load: PageLoad = async (ctx) => { | ||
console.log(`${ctx.route.id} route has a routeId.`); | ||
// error(500, "oh oh problems"); | ||
return { | ||
subject: '<%= name %> route' | ||
}; | ||
}; |
File renamed without changes.
File renamed without changes.
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