Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add skeleton pages for user dashboard routes #156

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/components/header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Text, Center } from '@chakra-ui/react';

export default function Header() {
return (
<header>
<Center>
<Text fontSize="2xl">Hi! I am the header</Text>
</Center>
</header>
);
}
14 changes: 14 additions & 0 deletions app/routes/__index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Box } from '@chakra-ui/react';
import { Outlet } from '@remix-run/react';
import Header from '~/components/header';

export default function Index() {
return (
<Box>
<Header />
<main>
<Outlet />
</main>
</Box>
);
}
11 changes: 11 additions & 0 deletions app/routes/__index/certificate/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Heading } from '@chakra-ui/react';

export default function CertificateIndexRoute() {
return (
<div>
Ririio marked this conversation as resolved.
Show resolved Hide resolved
<Heading as="h1" size="3xl">
Certificate Info or option to request a certificate
</Heading>
</div>
);
}
21 changes: 21 additions & 0 deletions app/routes/__index/certificate/instructions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Heading, Text, Link } from '@chakra-ui/react';

export default function CertificateInstructionsRoute() {
return (
<div>
<Heading as="h1" size="3xl">
Certificate Instructions Page
</Heading>
<Text fontSize="2xl">
For information about this page, click{' '}
<Link
href="https:/Seneca-CDOT/starchart/issues/114"
isExternal={true}
color="blue.500"
>
here
</Link>
</Text>
</div>
);
}
11 changes: 11 additions & 0 deletions app/routes/__index/domains/$domainId.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Heading } from '@chakra-ui/react';

export default function DomainRoute() {
return (
<div>
<Heading as="h1" size="3xl">
Domain Edit Page
</Heading>
</div>
);
}
11 changes: 11 additions & 0 deletions app/routes/__index/domains/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Heading } from '@chakra-ui/react';

export default function DomainsIndexRoute() {
return (
<div>
<Heading as="h1" size="3xl">
Domains List
</Heading>
</div>
);
}
11 changes: 11 additions & 0 deletions app/routes/__index/domains/new.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Heading } from '@chakra-ui/react';

export default function NewDomainRoute() {
return (
<div>
<Heading as="h1" size="3xl">
New Domain Form
</Heading>
</div>
);
}
6 changes: 3 additions & 3 deletions app/routes/index.tsx → app/routes/__index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export const loader = async ({ request }: LoaderArgs) => {
return json({ username });
};

export default function Index() {
export default function IndexRoute() {
const data = useLoaderData<typeof loader>();

return (
<main>
<div>
<Heading as="h1" size="3xl" noOfLines={1}>
Starchart
</Heading>
Expand All @@ -24,6 +24,6 @@ export default function Index() {
<Form action="/logout" method="post">
<Button type="submit">Logout</Button>
</Form>
</main>
</div>
);
}