+ );
+ }
}
diff --git a/src/info/components/home-page.js b/src/info/components/home-page.js
index a38c4e0..64f5a87 100755
--- a/src/info/components/home-page.js
+++ b/src/info/components/home-page.js
@@ -2,27 +2,43 @@ import Head from "next/head";
import TCard from "../components/title-card";
import FCard from "../components/footer-card";
-export default function HomePage({ page_title, card_title, children }) {
- return (
-
-
-
{page_title}
-
-
-
-
- Mastodon
-
-
- Mastodon
-
-
- Mastodon
-
-
- {children}
-
+export default function HomePage({ local, page_title, card_title, children }) {
+ if (local) {
+ return (
+
+
+
{page_title}
+
+
+
+
+ {children}
+
+
-
- );
+ );
+ } else {
+ return (
+
+ );
+ }
}
diff --git a/src/info/components/introduction-card.js b/src/info/components/introduction-card.js
index 20322cd..756f3b4 100644
--- a/src/info/components/introduction-card.js
+++ b/src/info/components/introduction-card.js
@@ -20,9 +20,9 @@ export function formatCustomEmoji(str, emoji_paths) {
if (Boolean(emoji_paths)) {
return (
<>
- {values.map((v, i) =>
- replaceWithImageTags(i, v, emoji_paths[v])
- )}
+ {values.map((v, i) => (
+
{replaceWithImageTags(i, v, emoji_paths[v])}
+ ))}
>
);
} else {
@@ -36,11 +36,7 @@ export function renderPossibleInfo(info, emoji_paths) {
infoarray = infoarray.slice(0, infoarray.length - 1);
return infoarray.map((line) => (
- {line == "" ? (
-
- ) : (
- formatCustomEmoji(line, emoji_paths)
- )}
+ {line == "" ?
: formatCustomEmoji(line, emoji_paths)}
));
} else {
@@ -48,10 +44,18 @@ export function renderPossibleInfo(info, emoji_paths) {
}
}
-export default function introductionCard({ introduction, emoji_paths }) {
- return (
-
- {renderPossibleInfo(introduction, emoji_paths)}
-
- );
+export default function introductionCard({ local, introduction, emoji_paths }) {
+ if (local) {
+ return (
+
+ {renderPossibleInfo(introduction, emoji_paths)}
+
+ );
+ } else {
+ return (
+
+ {renderPossibleInfo(introduction, emoji_paths)}
+
+ );
+ }
}
diff --git a/src/info/components/page-block.js b/src/info/components/page-block.js
index 9727153..3b25ff4 100644
--- a/src/info/components/page-block.js
+++ b/src/info/components/page-block.js
@@ -1,19 +1,38 @@
import PButton from "./page-button";
-export default function ProjectBlock({ pages }) {
- return (
-
- );
+export default function ProjectBlock({ local, pages }) {
+ if (local) {
+ return (
+
+ );
+ } else {
+ return (
+
+ );
+ }
}
diff --git a/src/info/components/page-button.js b/src/info/components/page-button.js
index 5cb5bd6..92f5b86 100644
--- a/src/info/components/page-button.js
+++ b/src/info/components/page-button.js
@@ -2,62 +2,118 @@ import Link from "next/link";
import Image from "next/image";
export default function PageButton({
+ local,
title,
images,
url,
extra_classes,
new_tab,
}) {
- if (Boolean(new_tab)) {
- return (
-
- );
+ if (local) {
+ if (Boolean(new_tab)) {
+ return (
+
+ );
+ } else {
+ return (
+
+ );
+ }
} else {
- return (
-
- );
+ if (Boolean(new_tab)) {
+ return (
+
+ );
+ } else {
+ return (
+
+ );
+ }
}
}
diff --git a/src/info/components/title-card.js b/src/info/components/title-card.js
index c20de1d..f9fb750 100755
--- a/src/info/components/title-card.js
+++ b/src/info/components/title-card.js
@@ -1,19 +1,36 @@
import Link from "next/link";
import Image from "next/image";
-export default function TitleCard({ card_title }) {
- return (
-
-
-
-
- {"- "}
- {card_title}
-
- );
+export default function TitleCard({ local, card_title }) {
+ if (local) {
+ return (
+
+
+
+
+ {"- "}
+ {card_title}
+
+ );
+ } else {
+ return (
+
+
+
+
+ {"- "}
+ {card_title}
+
+ );
+ }
}
diff --git a/src/info/components/werefox-card-title.js b/src/info/components/werefox-card-title.js
index dbe3e7b..0676a70 100644
--- a/src/info/components/werefox-card-title.js
+++ b/src/info/components/werefox-card-title.js
@@ -1,29 +1,57 @@
import Image from "next/image";
-export default function WerefoxCardTitle({ title, title_emoji }) {
- if (Boolean(title_emoji)) {
- return (
-
-
-
-
-
- {` ${title}`}
-
-
- );
+export default function WerefoxCardTitle({ local, title, title_emoji }) {
+ if (local) {
+ if (Boolean(title_emoji)) {
+ return (
+
+
+
+
+
+ {` ${title}`}
+
+
+ );
+ } else {
+ return (
+
+ );
+ }
} else {
- return (
-
- );
+ if (Boolean(title_emoji)) {
+ return (
+
+
+
+
+
+ {` ${title}`}
+
+
+ );
+ } else {
+ return (
+
+ );
+ }
}
}
diff --git a/src/info/components/werefox-card.js b/src/info/components/werefox-card.js
index 89cfb7f..950683e 100644
--- a/src/info/components/werefox-card.js
+++ b/src/info/components/werefox-card.js
@@ -1,23 +1,45 @@
import WCT from "./werefox-card-title";
-export default function WerefoxCard({ title_emoji, title, children }) {
- if (Boolean(title_emoji)) {
- return (
-
-
-
- {children}
+export default function WerefoxCard({ local, title_emoji, title, children }) {
+ if (local) {
+ if (Boolean(title_emoji)) {
+ return (
+
-
- );
+ );
+ } else {
+ return (
+
+ );
+ }
} else {
- return (
-
-
-
- {children}
+ if (Boolean(title_emoji)) {
+ return (
+
-
- );
+ );
+ } else {
+ return (
+
+ );
+ }
}
}
diff --git a/src/info/pages/local/index.js b/src/info/pages/local/index.js
index 44ad403..f2614e3 100644
--- a/src/info/pages/local/index.js
+++ b/src/info/pages/local/index.js
@@ -32,12 +32,20 @@ export default function Home({ INTRODUCTION, SUBDOMAINS }) {
// const introdict = Object.assign({}, introarray);
return (
-
-
-
+
+
+
-
-
+
+
);