Create class

This commit is contained in:
MeowcaTheoRange 2024-04-02 11:05:44 -05:00
parent f16e3d1fbf
commit 745bba3c08
10 changed files with 15 additions and 27 deletions

View file

@ -4,9 +4,7 @@ import Link from "next/link";
export default async function Home() { export default async function Home() {
return ( return (
<MainLayout currentPage="/about/" title="About" subtitle="abtmtr.link v9"> <MainLayout currentPage="/about/" title="About" subtitle="abtmtr.link v9">
<img style={{ <img className="headerImage" src="/headers/about.png" alt="ABOUT"></img>
marginTop: 16
}} src="/headers/about.png" alt="ABOUT"></img>
<h1>abtmtr.link</h1> <h1>abtmtr.link</h1>
<p>Created by <b>MeowcaTheoRange</b></p> <p>Created by <b>MeowcaTheoRange</b></p>
<p>Licensed under the <Link href="https://git.abtmtr.link/MeowcaTheoRange/KarkatPublicLicense/src/branch/master/LICENSE-v2.2" target="_blank">Karkat Public License (KKPL) v2.2</Link>.</p> <p>Licensed under the <Link href="https://git.abtmtr.link/MeowcaTheoRange/KarkatPublicLicense/src/branch/master/LICENSE-v2.2" target="_blank">Karkat Public License (KKPL) v2.2</Link>.</p>

View file

@ -17,9 +17,7 @@ export default async function Home({
const blogs = await fetch(`https://blog.abtmtr.link/api/collections/mtr/posts?page=${curPage}`).then(x=>x.json()); const blogs = await fetch(`https://blog.abtmtr.link/api/collections/mtr/posts?page=${curPage}`).then(x=>x.json());
return ( return (
<MainLayout currentPage="/blog/" title="Blog" subtitle="via blog.abtmtr.link"> <MainLayout currentPage="/blog/" title="Blog" subtitle="via blog.abtmtr.link">
<img style={{ <img className="headerImage" src="/headers/blog.png" alt="BLOG"></img>
marginTop: 16
}} src="/headers/blog.png" alt="BLOG"></img>
{blogs.data.posts.map((post:{ {blogs.data.posts.map((post:{
title: string, title: string,
body: string, body: string,

View file

@ -17,9 +17,7 @@ export default async function Home({
return ( return (
<MainLayout currentPage="/characters/" title="Characters" subtitle=""> <MainLayout currentPage="/characters/" title="Characters" subtitle="">
<img style={{ <img className="headerImage" src="/headers/characters.png" alt="CHARACTERS"></img>
marginTop: 16
}} src="/headers/characters.png" alt="CHARACTERS"></img>
<div className={styles.CharacterContainerGrid}> <div className={styles.CharacterContainerGrid}>
{characters.map(async (character:{ {characters.map(async (character:{
id: string, id: string,

View file

@ -16,9 +16,7 @@ export default async function Home({
const blogs = await fetch(`https://img.abtmtr.link/api/collections/mtr/posts?page=${curPage}`).then(x=>x.json()); const blogs = await fetch(`https://img.abtmtr.link/api/collections/mtr/posts?page=${curPage}`).then(x=>x.json());
return ( return (
<MainLayout currentPage="/gallery/" title="Gallery" subtitle="via img.abtmtr.link"> <MainLayout currentPage="/gallery/" title="Gallery" subtitle="via img.abtmtr.link">
<img style={{ <img className="headerImage" src="/headers/gallery.png" alt="GALLERY"></img>
marginTop: 16
}} src="/headers/gallery.png" alt="GALLERY"></img>
{blogs.data.posts.map((post:{ {blogs.data.posts.map((post:{
title: string, title: string,
body: string, body: string,

View file

@ -6,9 +6,7 @@ export default async function Home() {
return ( return (
<MainLayout currentPage="/links/" title="Links" subtitle="to other places I've been"> <MainLayout currentPage="/links/" title="Links" subtitle="to other places I've been">
<img style={{ <img className="headerImage" src="/headers/links.png" alt="LINKS"></img>
marginTop: 16
}} src="/headers/links.png" alt="LINKS"></img>
{data.links.map((link:string) => ( {data.links.map((link:string) => (
<div style={{ <div style={{
margin: "16px 0" margin: "16px 0"

View file

@ -4,9 +4,7 @@ import Link from "next/link";
export default async function Home() { export default async function Home() {
return ( return (
<MainLayout currentPage="/oao/" title="Opinions and Objections"> <MainLayout currentPage="/oao/" title="Opinions and Objections">
<img style={{ <img className="headerImage" src="/headers/oao.png" alt="OPINIONS & OBJECTIONS"></img>
marginTop: 16
}} src="/headers/oao.png" alt="OPINIONS & OBJECTIONS"></img>
<p>As a sentient, living being with thoughts, I have opinions on certain things. Here are mine.</p> <p>As a sentient, living being with thoughts, I have opinions on certain things. Here are mine.</p>
<ul> <ul>
<li> <li>

View file

@ -11,9 +11,7 @@ export default async function Home() {
const goodNames = data.names.filter((x:{status:string})=>x.status == "okay"); const goodNames = data.names.filter((x:{status:string})=>x.status == "okay");
return ( return (
<MainLayout currentPage="/" title="Root"> <MainLayout currentPage="/" title="Root">
<img style={{ <img className="headerImage" src="/welcome.png" alt="WELCOME! Enjoy your stay at abtmtr.link!"></img>
marginTop: 16
}} src="/welcome.png" alt="WELCOME! Enjoy your stay at abtmtr.link!"></img>
<p>abtmtr.link is a domain for a suite of services, ranging from micro-blogging to web search.</p> <p>abtmtr.link is a domain for a suite of services, ranging from micro-blogging to web search.</p>
<p>I'm {goodNames[0].value}, otherwise known as {goodNames.slice(1).map((name:{value:string}, idx:number) => ( <p>I'm {goodNames[0].value}, otherwise known as {goodNames.slice(1).map((name:{value:string}, idx:number) => (
idx == goodNames.length - 2 ? (<>or <b>{name.value}</b></>) : (<><b>{name.value}</b>{goodNames.length <= 2 ? ", " : " "}</>) idx == goodNames.length - 2 ? (<>or <b>{name.value}</b></>) : (<><b>{name.value}</b>{goodNames.length <= 2 ? ", " : " "}</>)

View file

@ -7,9 +7,7 @@ export default async function Home() {
const projects = await fetch("https://projects.abtmtr.link/projects.json").then(x=>x.json()); const projects = await fetch("https://projects.abtmtr.link/projects.json").then(x=>x.json());
return ( return (
<MainLayout currentPage="/projects/" title="Projects" subtitle="by MeowcaTheoRange"> <MainLayout currentPage="/projects/" title="Projects" subtitle="by MeowcaTheoRange">
<img style={{ <img className="headerImage" src="/headers/projects.png" alt="PROJECTS"></img>
marginTop: 16
}} src="/headers/projects.png" alt="PROJECTS"></img>
{projects.items.map((project:{ {projects.items.map((project:{
name: string, name: string,
date: number, date: number,

View file

@ -15,9 +15,7 @@ export default async function Home({
const blogs = await fetch(`https://blog.abtmtr.link/api/collections/stories/posts?page=${curPage}`).then(x=>x.json()); const blogs = await fetch(`https://blog.abtmtr.link/api/collections/stories/posts?page=${curPage}`).then(x=>x.json());
return ( return (
<MainLayout currentPage="/stories/" title="Stories" subtitle="via blog.abtmtr.link"> <MainLayout currentPage="/stories/" title="Stories" subtitle="via blog.abtmtr.link">
<img style={{ <img className="headerImage" src="/headers/stories.png" alt="STORIES"></img>
marginTop: 16
}} src="/headers/stories.png" alt="STORIES"></img>
{blogs.data.posts.map((post:{ {blogs.data.posts.map((post:{
title: string, title: string,
body: string, body: string,

View file

@ -82,4 +82,10 @@ button.fw a {
button.fw:hover { button.fw:hover {
background-color: var(--bg-2); background-color: var(--bg-2);
opacity: 1; opacity: 1;
}
img.headerImage {
margin-top: 16px;
width: 100%;
display: inline-block;
aspect-ratio: 768/300;
} }