mirror of
https://github.com/kevinnlsamuel/rainbowcroissant.git
synced 2025-12-06 10:06:01 +05:30
create basic layout
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<body class="h-screen flex flex-col justify-between" data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
7
src/const.ts
Normal file
7
src/const.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
const consts = {
|
||||
app: {
|
||||
name: 'Fee Payment Details'
|
||||
}
|
||||
};
|
||||
|
||||
export { consts };
|
||||
@@ -1,5 +1,23 @@
|
||||
<script>
|
||||
import "../app.css";
|
||||
import '../app.css';
|
||||
import { consts } from '../const';
|
||||
</script>
|
||||
|
||||
<slot></slot>
|
||||
<header class="grid grid-flow-col justify-between px-4 py-2">
|
||||
<h1>{consts.app.name}</h1>
|
||||
<nav class="w-max">
|
||||
<ul class="grid grid-flow-col space-x-4">
|
||||
<li><a href="/form/">Form</a></li>
|
||||
<li><a href="/mail/">Mail</a></li>
|
||||
<li><a href="/about/">About</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="flex-grow">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© Kevin Samuel, McKenzie Joseph, 2023</p>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user