-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
9 changed files
with
54 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { Component } from 'solid-js' | ||
import { useI18n } from '@solid-primitives/i18n' | ||
|
||
interface Variables { | ||
[key: string]: string | ||
} | ||
|
||
interface Props { | ||
key: string | ||
variable?: Variables | ||
} | ||
|
||
const Paragraph: Component<Props> = (props) => { | ||
const [t] = useI18n() | ||
return ( | ||
|
||
<p>{t(props.key, props.variable)}</p> | ||
) | ||
} | ||
|
||
export default Paragraph |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 +1,26 @@ | ||
import C404 from '@layouts/404' | ||
import Paragraph from '@islands/paragraph' | ||
import { Provider } from '@locales' | ||
import { Link } from '@solidjs/router' | ||
|
||
export default function () { | ||
export default function() { | ||
return ( | ||
<Provider> | ||
<C404 /> | ||
<Title>404</Title> | ||
<div class="full flex-center flex-col bg-gray-100/75 text-gray-400"> | ||
<h1 class="text-4xl font-extrabold">404</h1> | ||
<div class="flex space-x-1 mt-1"> | ||
<Paragraph key='hello' /> | ||
<div class="pt-1"> | ||
<div class="i-carbon-face-dissatisfied-filled h-4 w-4" /> | ||
</div> | ||
</div> | ||
<Link href="/" class="flex items-center space-x-1 mt-4 transition hover:(text-gray-400/40)"> | ||
<div class="i-carbon-arrow-left h-7 w-7" /> | ||
<span class="font-extrabold"> | ||
<Paragraph key='goback' /> | ||
</span> | ||
</Link> | ||
</div> | ||
</Provider> | ||
) | ||
} |
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,11 +1,19 @@ | ||
import Name from '@layouts/name' | ||
import Paragraph from '@islands/paragraph' | ||
import { Provider } from '@locales' | ||
import { Link, useParams } from '@solidjs/router' | ||
|
||
export default function() { | ||
const params = useParams() | ||
|
||
export default function () { | ||
return ( | ||
<Provider> | ||
<Title>Hi</Title> | ||
<Name /> | ||
<Title>Hello World</Title> | ||
<div class="full flex-center flex-col bg-gray-100/75 space-y-2"> | ||
<Paragraph key='hello' variable={{ name: params.name }} /> | ||
<Link href="/"> | ||
<div class="i-carbon-arrow-left h-7 w-7" /> | ||
</Link> | ||
</div> | ||
</Provider> | ||
) | ||
} |
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
58ed652
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bat – ./
bat-olgam4.vercel.app
bat-brown.vercel.app
bat-git-main-olgam4.vercel.app
bat.glo.quebec