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

release: start indexing by search engine #14

Merged
merged 4 commits into from
Feb 13, 2025
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
12 changes: 12 additions & 0 deletions app/components/Favicon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// generated with https://realfavicongenerator.net

export const Favicons = () => (
<>
<link href="/favicon-96x96.png" rel="icon" sizes="96x96" type="image/png" />
<link href="/favicon.svg" rel="icon" type="image/svg+xml" />
<link href="/favicon.ico" rel="shortcut icon" />
<link href="/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
<meta content="BirdXPlorer" name="apple-mobile-web-app-title" />
<link href="/site.webmanifest" rel="manifest" />
</>
);
2 changes: 2 additions & 0 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import dayjs from "dayjs";
import customParseFormat from "dayjs/plugin/customParseFormat";

import { Favicons } from "./components/Favicon";
import { mantineTheme } from "./config/mantine";

dayjs.extend(customParseFormat);
Expand All @@ -25,6 +26,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
<head>
<meta charSet="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<Favicons />
<Meta />
<Links />
<ColorSchemeScript />
Expand Down
10 changes: 4 additions & 6 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ import {

export const meta: MetaFunction = () => {
return [
{ title: "BirdXPlorer Viewer" },
{ title: "BirdXplorer" },
{
name: "description",
content:
"BirdXPlorer Viewer is a X community note viewer with search functionality.",
"BirdXplorer is software that helps users explore community notes data on X (formerly known as Twitter).",
},
{
// TODO: 2. サブドメインの紐付けが完了したら外す
name: "robots",
content: "noindex, nofollow",
content: "index, follow",
},
];
};
Expand All @@ -47,7 +46,6 @@ export const links: LinksFunction = () => {
return [
{
rel: "canonical",
// TODO: 1. サブドメインの紐付けが完了したら必要に応じて URL を差し替える
href: "https://birdxplorer.code4japan.org",
},
];
Expand Down Expand Up @@ -113,7 +111,7 @@ export default function Index() {
<>
<header className="border-b border-gray-300">
<Container className="p-4" size="lg">
<h1 className="text-2xl font-bold">BirdXPlorer</h1>
<h1 className="text-2xl font-bold">BirdXplorer</h1>
</Container>
</header>
<main>
Expand Down
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "BirdXPlorer",
"short_name": "BirdXPlorer",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added public/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.