feat(frontend): internationalization
This commit is contained in:
parent
2323810b06
commit
498d79de4e
16 changed files with 1092 additions and 167 deletions
|
@ -6,40 +6,8 @@ export const meta: MetaFunction = () => {
|
|||
|
||||
export default function Index() {
|
||||
return (
|
||||
<div className="font-sans p-4">
|
||||
<h1 className="text-3xl">Welcome to Remix</h1>
|
||||
<ul className="list-disc mt-4 pl-6 space-y-2">
|
||||
<li>
|
||||
<a
|
||||
className="text-blue-700 underline visited:text-purple-900"
|
||||
target="_blank"
|
||||
href="https://remix.run/start/quickstart"
|
||||
rel="noreferrer"
|
||||
>
|
||||
5m Quick Start
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
className="text-blue-700 underline visited:text-purple-900"
|
||||
target="_blank"
|
||||
href="https://remix.run/start/tutorial"
|
||||
rel="noreferrer"
|
||||
>
|
||||
30m Tutorial
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
className="text-blue-700 underline visited:text-purple-900"
|
||||
target="_blank"
|
||||
href="https://remix.run/docs"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Remix Docs
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div>
|
||||
<h1>pronouns.cc</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
11
Foxnouns.Frontend/app/routes/auth.log-out/route.tsx
Normal file
11
Foxnouns.Frontend/app/routes/auth.log-out/route.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { ActionFunction } from "@remix-run/node";
|
||||
import { writeCookie } from "~/lib/request.server";
|
||||
|
||||
export const action: ActionFunction = async () => {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
"Set-Cookie": writeCookie("pronounscc-token", "token", 0),
|
||||
},
|
||||
status: 204,
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue