diff --git a/app/components/BlogWrapper.tsx b/app/components/BlogWrapper.tsx deleted file mode 100644 index 6fb8ed1..0000000 --- a/app/components/BlogWrapper.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export function BlogWrapper({ children }: React.PropsWithChildren) { - return ( -
-
{children}
-
- ); -} diff --git a/app/components/Notbyai.tsx b/app/components/Notbyai.tsx index 1c37384..1587252 100644 --- a/app/components/Notbyai.tsx +++ b/app/components/Notbyai.tsx @@ -1,6 +1,6 @@ export function Notbyai() { return ( -
+
diff --git a/app/hooks/index.ts b/app/hooks/index.ts new file mode 100644 index 0000000..986a91d --- /dev/null +++ b/app/hooks/index.ts @@ -0,0 +1 @@ +export * from "./useFormattedDate"; diff --git a/app/hooks/useFormattedDate.ts b/app/hooks/useFormattedDate.ts new file mode 100644 index 0000000..bfa7ef3 --- /dev/null +++ b/app/hooks/useFormattedDate.ts @@ -0,0 +1,4 @@ +export function useFormattedDate(_date: string) { + const date = new Date(_date) + return `${date.getUTCFullYear()}/${date.getUTCMonth()}/${date.getUTCDate()}` +} diff --git a/app/root.tsx b/app/root.tsx index d425739..852de44 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -13,7 +13,6 @@ import { import stylesheet from "~/tailwind.css?url"; import { Body } from "./components/Body"; import { LinkWrapper } from "./components/LinkWrapper"; -import { Notbyai } from "./components/Notbyai"; export const links: LinksFunction = () => [ { rel: "stylesheet", href: stylesheet }, @@ -29,7 +28,7 @@ export const meta: MetaFunction = () => [ }, { property: "viewport", - content: "width=device-width,initial-scale=1", + content: "width=device-width,initial-scale=1.0", }, ]; @@ -42,7 +41,6 @@ export default function App() { - diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index ffd22ce..0f9888f 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -11,6 +11,7 @@ import { import { IconContext } from "react-icons/lib"; import { MdEmail } from "react-icons/md"; import { LinkWrapper } from "~/components/LinkWrapper"; +import { Notbyai } from "~/components/Notbyai"; export default function Index() { return ( @@ -22,6 +23,7 @@ export default function Index() { |