Skip to content

Commit

Permalink
add more routes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaHaWo committed Aug 21, 2024
1 parent 9dc247e commit 71b0320
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
</script>

<AbstractContent showBottomNavbar={false}>
<Frontpage getStarted={'/dummydropdown'} />
<Frontpage getStarted={'/firstdropdown'} />
</AbstractContent>
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions src/routes/firstdropdown/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script>
import AbstractContent from '$lib/components/AbstractContent.svelte';
import AbstractDropdown from '$lib/components/AbstractDropdown.svelte';
import { DropdownDataElement } from '$lib/js/dropdowndata.js';
const letteroptions = ['a', 'b', 'c', 'd'];
const defaultOptions = ['gar nicht', 'ansatzweise', 'weitgehend', 'zuverlässig'];
const dropdownData = [
new DropdownDataElement(
'standing up',
letteroptions,
'How well can the child stand up from sitting or crawling around and how readily is it able to do so'
),
new DropdownDataElement(
'gripping a pen the right way',
defaultOptions,
'How well can the child hold a pen or pencil and how coordinated can it use it'
),
new DropdownDataElement(
'talking in full sentences',
letteroptions,
'How well articulated is the child in its speech and how well can it express itself'
)
];
const heading = 'some initial dummy dropdown page';
</script>

<AbstractContent showBottomNavbar={true} lastPage="/" nextPage="/nextdropdown" infoPage="/info">
<AbstractDropdown {dropdownData} {heading} />
</AbstractContent>
5 changes: 5 additions & 0 deletions src/routes/nextdropdown/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
import '../../app.css';
</script>

<slot></slot>
1 change: 1 addition & 0 deletions src/routes/nextdropdown/+layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
)
];
const heading = 'some dummy dropdown page';
const heading = 'the second dummy dropdown page';
</script>

<AbstractContent showBottomNavbar={true} lastPage="/" nextPage="/" infoPage="/info">
<AbstractContent showBottomNavbar={true} lastPage="/firstdropdown" nextPage="/" infoPage="/info">
<AbstractDropdown {dropdownData} {heading} />
</AbstractContent>

0 comments on commit 71b0320

Please sign in to comment.