diff --git a/src/info/components/footer-button.js b/src/info/components/footer-button.js index 76adf4c..697de29 100644 --- a/src/info/components/footer-button.js +++ b/src/info/components/footer-button.js @@ -1,19 +1,34 @@ import Link from "next/link"; -export default function footerButton({ url, inner_text, is_external }) { +export default function footerButton({ local, url, inner_text, is_external }) { const target = Boolean(is_external) ? is_external : ""; - - return ( -
- - -
-

- {inner_text} -

-
-
- -
- ); + if (local) { + return ( +
+ + +
+

+ {inner_text} +

+
+
+ +
+ ); + } else { + return ( +
+ + +
+

+ {inner_text} +

+
+
+ +
+ ); + } } diff --git a/src/info/components/footer-card.js b/src/info/components/footer-card.js index ca5f30c..5f49396 100755 --- a/src/info/components/footer-card.js +++ b/src/info/components/footer-card.js @@ -1,39 +1,82 @@ import FButton from "./footer-button"; -export default function FooterCard() { - return ( - - ); +
+ This site uses{" "} +
+ +
+ , which are licensed under a{" "} +
+ +
+
+ + ); + } else { + return ( + + ); + } } 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} - - -
- - - - - {children} - +export default function HomePage({ local, page_title, card_title, children }) { + if (local) { + return ( +
+ + {page_title} + + +
+ + {children} + +
-
- ); + ); + } else { + return ( +
+ + {page_title} + + +
+ + + + + {children} + +
+
+ ); + } } 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 ( -
- - - {images.map((source) => ( - - {source.alt} - - ))} - {` ${title}`} - - -
- ); + if (local) { + if (Boolean(new_tab)) { + return ( +
+ + + {images.map((source) => ( + + {source.alt} + + ))} + {` ${title}`} + + +
+ ); + } else { + return ( +
+ + + {images.map((source) => ( + + {source.alt} + + ))} + {` ${title}`} + + +
+ ); + } } else { - return ( -
- - - {images.map((source) => ( - - {source.alt} - - ))} - {` ${title}`} - - -
- ); + if (Boolean(new_tab)) { + return ( +
+ + + {images.map((source) => ( + + {source.alt} + + ))} + {` ${title}`} + + +
+ ); + } else { + return ( +
+ + + {images.map((source) => ( + + {source.alt} + + ))} + {` ${title}`} + + +
+ ); + } } } 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 ( -
- - It's Alice in emoji form. - - {"- "} - {card_title} -
- ); +export default function TitleCard({ local, card_title }) { + if (local) { + return ( +
+ + It's Alice in emoji form. + + {"- "} + {card_title} +
+ ); + } else { + return ( +
+ + It's Alice in emoji form. + + {"- "} + {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_emoji["alt"]} - -

- {` ${title}`} -

-
- ); +export default function WerefoxCardTitle({ local, title, title_emoji }) { + if (local) { + if (Boolean(title_emoji)) { + return ( +
+ + {title_emoji["alt"]} + +

+ {` ${title}`} +

+
+ ); + } else { + return ( +
+

+ {title} +

+
+ ); + } } else { - return ( -
-

- {title} -

-
- ); + if (Boolean(title_emoji)) { + return ( +
+ + {title_emoji["alt"]} + +

+ {` ${title}`} +

+
+ ); + } else { + return ( +
+

+ {title} +

+
+ ); + } } } 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 ( +
+ +
+ {children} +
-
- ); + ); + } else { + return ( +
+ +
+ {children} +
+
+ ); + } } else { - return ( -
- -
- {children} + if (Boolean(title_emoji)) { + return ( +
+ +
+ {children} +
-
- ); + ); + } else { + return ( +
+ +
+ {children} +
+
+ ); + } } } 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 ( - - - + + + - - + + );