-
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
Showing
5 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
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,6 +1,50 @@ | ||
<script lang="ts"> | ||
import '../app.css'; | ||
import IndyLogo from '$lib/IndyLogo.svelte'; | ||
let { children } = $props(); | ||
</script> | ||
|
||
{@render children()} | ||
<svelte:head> | ||
<title>ICCT - Indy Center Controller Tools</title> | ||
</svelte:head> | ||
|
||
<div class="flex min-h-screen flex-col"> | ||
<!-- Navbar --> | ||
<nav | ||
class="flex h-16 w-full items-center justify-between bg-gray-700 px-4 shadow-md dark:bg-gray-900" | ||
> | ||
<a href="/"> | ||
<div class="flex gap-x-2 items-center text-xl font-medium text-white hover:text-gray-200"> | ||
<div class="w-32"><IndyLogo/></div><div>Controller Tools</div> | ||
</div> | ||
</a> | ||
<ul | ||
class="flex list-none flex-row space-x-2 text-white hover:text-gray-200" | ||
> | ||
<li><a href="/restrictions">Restrictions</a></li> | ||
</ul> | ||
</nav> | ||
|
||
<!-- Main Content Area --> | ||
<div class="flex-grow bg-gray-50 p-6 dark:bg-gray-800"> | ||
{@render children()} | ||
</div> | ||
|
||
<!-- Footer --> | ||
<footer | ||
class="flex w-full flex-col items-center justify-center bg-gray-700 py-4 dark:bg-gray-900" | ||
> | ||
<span class="p-2 text-center text-sm text-gray-300 dark:text-gray-400"> | ||
This site is not affiliated with the Federal Aviation Administration or | ||
any governing aviation body. All content is approved only for use on the | ||
VATSIM network. | ||
</span> | ||
</footer> | ||
</div> | ||
|
||
<style> | ||
:global(body) { | ||
@apply bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200; | ||
} | ||
</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
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,32 @@ | ||
<script> | ||
import IndyLogo from '$lib/IndyLogo.svelte'; | ||
const { data } = $props(); | ||
</script> | ||
|
||
<div class="text-center"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Airport</th> | ||
<th>Route</th> | ||
<th>From</th> | ||
<th>To</th> | ||
<th>Restriction</th> | ||
<th>Notes</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{#each data.restrictions as restriction} | ||
<tr> | ||
<td>{restriction.airport}</td> | ||
<td>{restriction.route}</td> | ||
<td>{restriction.from}</td> | ||
<td>{restriction.to}</td> | ||
<td>{restriction.restriction}</td> | ||
<td>{restriction.notes}</td> | ||
</tr> | ||
{/each} | ||
</tbody> | ||
</table> | ||
</div> |
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,7 @@ | ||
export async function load({ fetch }) { | ||
const restrictions = await fetch('/api/restrictions'); | ||
|
||
return { | ||
restrictions: await restrictions.json() | ||
}; | ||
} |