summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/announcements.ts24
-rw-r--r--src/data/districts/arcadia.ts15
-rw-r--r--src/data/districts/arles.ts3
-rw-r--r--src/data/districts/districts.ts64
-rw-r--r--src/data/districts/functions.ts58
-rw-r--r--src/data/districts/hollywood.ts3
-rw-r--r--src/data/districts/oxford.ts3
-rw-r--r--src/data/districts/petsburg.ts3
-rw-r--r--src/data/districts/purgatory.ts3
-rw-r--r--src/data/districts/siliconValley.ts3
-rw-r--r--src/data/districts/silverLake.ts3
-rw-r--r--src/data/districts/stratfordUponAvon.ts3
-rw-r--r--src/data/districts/tokyo.ts15
-rw-r--r--src/data/districts/types.ts16
14 files changed, 0 insertions, 216 deletions
diff --git a/src/data/announcements.ts b/src/data/announcements.ts
deleted file mode 100644
index 33a7fb0..0000000
--- a/src/data/announcements.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-export interface Announcement {
- text: string;
- date: string;
- isNew: boolean;
-}
-
-const announcements: Announcement[] = [
- {
- text: "Welcome to Pagoda on Neocities. The site is currently under construction and as we progress and add more features and content, this announcement section will get updated alongside it. Stay tuned for more updates!",
- date: "2025-05-13 02:00",
- isNew: false,
- },
- {
- text: "Announcement section and Districts are now added!",
- date: "2025-05-13 02:15",
- isNew: true,
- },
-];
-
-export const getAnnouncements = (): Announcement[] => {
- return announcements.sort((a, b) => {
- return new Date(b.date).getTime() - new Date(a.date).getTime();
- });
-};
diff --git a/src/data/districts/arcadia.ts b/src/data/districts/arcadia.ts
deleted file mode 100644
index 88b12b8..0000000
--- a/src/data/districts/arcadia.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import type { Site } from "./types";
-
-export const arcadia: Site[] = [
- {
- name: "The Great Pretender",
- url: "https://thegreatpretender02.neocities.org/",
- description:
- "Howdy! You can call me Eve or Pretender—that’s what I go by online (and in my head, lol). I’m a 22-year-old gal who uses she/her pronouns, and I live in Texas, aka cowboy land. Yeehaw! 🤠🐄 <br><br> I’m extremely online, which is one reason I created this website. I’ve always been a creative person, even if my skills aren’t perfect—I have to express myself somehow! My journey started with Carrd, but I wanted more freedom, so here we are.<br><br> A little about me: I love gaming, drawing, writing, roleplaying, and yapping about my hyperfixations.",
- owner: "thegreatpretender02",
- tags: ["art", "videogames", "startrek", "oldies", "personal"],
- added: new Date("2025-05-13 08:50"),
- screenshotUrl:
- "https://neocities.org/site_screenshots/14/07/thegreatpretender02/index.html.540x405.webp",
- },
-];
diff --git a/src/data/districts/arles.ts b/src/data/districts/arles.ts
deleted file mode 100644
index 246553a..0000000
--- a/src/data/districts/arles.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const arles: Site[] = [];
diff --git a/src/data/districts/districts.ts b/src/data/districts/districts.ts
deleted file mode 100644
index a134d56..0000000
--- a/src/data/districts/districts.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import type { District } from "./types";
-
-export const districts: District[] = [
- {
- id: "arcadia",
- name: "Arcadia",
- description: "Video games, puzzles, toys",
- image: "/images/districts/internal/arcadia.png",
- },
- {
- id: "arles",
- name: "Arles",
- description: "Drawings, photos, visual art",
- image: "/images/districts/internal/arles.png",
- },
- {
- id: "hollywood",
- name: "Hollywood",
- description: "Cartoons, movies, western media",
- image: "/images/districts/internal/hollywood.png",
- },
- {
- id: "oxford",
- name: "Oxford",
- description: "Books, literature, poetry",
- image: "/images/districts/internal/oxford.png",
- },
- {
- id: "petsburg",
- name: "Petsburg",
- description: "Animals and people who love them",
- image: "/images/districts/internal/petsburg.png",
- },
- {
- id: "purgatory",
- name: "Purgatory",
- description: "Horror, dark, gothic",
- image: "/images/districts/internal/purgatory.png",
- },
- {
- id: "silicon-valley",
- name: "Silicon Valley",
- description: "Tech, programming, computers",
- image: "/images/districts/internal/silicon.png",
- },
- {
- id: "silver-lake",
- name: "Silver Lake",
- description: "Music, bands, concerts",
- image: "/images/districts/internal/silver.png",
- },
- {
- id: "stratford-upon-avon",
- name: "Stratford-upon-Avon",
- description: "Writers and their writing",
- image: "/images/districts/internal/stratford.png",
- },
- {
- id: "tokyo",
- name: "Tokyo",
- description: "Anime, manga, and the far east",
- image: "/images/districts/internal/tokyo.png",
- },
-];
diff --git a/src/data/districts/functions.ts b/src/data/districts/functions.ts
deleted file mode 100644
index 6e34f11..0000000
--- a/src/data/districts/functions.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import type { District, Site } from "./types";
-import { districts } from "./districts";
-import { arcadia } from "./arcadia";
-import { arles } from "./arles";
-import { hollywood } from "./hollywood";
-import { oxford } from "./oxford";
-import { petsburg } from "./petsburg";
-import { purgatory } from "./purgatory";
-import { siliconValley } from "./siliconValley";
-import { silverLake } from "./silverLake";
-import { stratfordUponAvon } from "./stratfordUponAvon";
-import { tokyo } from "./tokyo";
-
-export const getDistrictById = (id: string): District | undefined => {
- return districts.find((district) => district.id === id);
-};
-
-export const getSitesByDistrictId = (id: string): Site[] => {
- switch (id) {
- case "arcadia":
- return arcadia;
- case "arles":
- return arles;
- case "hollywood":
- return hollywood;
- case "oxford":
- return oxford;
- case "petsburg":
- return petsburg;
- case "purgatory":
- return purgatory;
- case "silicon-valley":
- return siliconValley;
- case "silver-lake":
- return silverLake;
- case "stratford-upon-avon":
- return stratfordUponAvon;
- case "tokyo":
- return tokyo;
- default:
- return [];
- }
-};
-
-export const getPaginatedSitesByDistrictId = (
- id: string,
- page: number,
- limit: number
-): { sites: Site[]; totalPages: number; currentPage: number } => {
- const sites = getSitesByDistrictId(id);
- const startIndex = (page - 1) * limit;
- const endIndex = startIndex + limit;
- return {
- sites: sites.slice(startIndex, endIndex),
- totalPages: Math.ceil(sites.length / limit),
- currentPage: page,
- };
-};
diff --git a/src/data/districts/hollywood.ts b/src/data/districts/hollywood.ts
deleted file mode 100644
index 9689426..0000000
--- a/src/data/districts/hollywood.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const hollywood: Site[] = [];
diff --git a/src/data/districts/oxford.ts b/src/data/districts/oxford.ts
deleted file mode 100644
index 599b46b..0000000
--- a/src/data/districts/oxford.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const oxford: Site[] = [];
diff --git a/src/data/districts/petsburg.ts b/src/data/districts/petsburg.ts
deleted file mode 100644
index 56b62d5..0000000
--- a/src/data/districts/petsburg.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const petsburg: Site[] = [];
diff --git a/src/data/districts/purgatory.ts b/src/data/districts/purgatory.ts
deleted file mode 100644
index 8aee047..0000000
--- a/src/data/districts/purgatory.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const purgatory: Site[] = [];
diff --git a/src/data/districts/siliconValley.ts b/src/data/districts/siliconValley.ts
deleted file mode 100644
index 8b0fe61..0000000
--- a/src/data/districts/siliconValley.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const siliconValley: Site[] = [];
diff --git a/src/data/districts/silverLake.ts b/src/data/districts/silverLake.ts
deleted file mode 100644
index 878762e..0000000
--- a/src/data/districts/silverLake.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const silverLake: Site[] = [];
diff --git a/src/data/districts/stratfordUponAvon.ts b/src/data/districts/stratfordUponAvon.ts
deleted file mode 100644
index 3e818bb..0000000
--- a/src/data/districts/stratfordUponAvon.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Site } from "./types";
-
-export const stratfordUponAvon: Site[] = [];
diff --git a/src/data/districts/tokyo.ts b/src/data/districts/tokyo.ts
deleted file mode 100644
index 8788c21..0000000
--- a/src/data/districts/tokyo.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import type { Site } from "./types";
-
-export const tokyo: Site[] = [
- {
- name: "Shifoo (That Computer Scientist)",
- url: "https://crvs.neocities.org/",
- description:
- "Welcome to the home of Shifoo (previously That Computer Scientist). My name is Bobby, and this is my personal website. I aim to build a retro looking personal website, where I share my thoughts, ideas, and experiences through articles, and will showcase some cool nostalgic features and tools.",
- owner: "crvs",
- tags: ["anime", "personal", "community", "programming", "blog"],
- added: new Date("2025-05-16 02:22"),
- screenshotUrl:
- "https://neocities.org/site_screenshots/40/23/crvs/index.html.540x405.webp",
- },
-];
diff --git a/src/data/districts/types.ts b/src/data/districts/types.ts
deleted file mode 100644
index e495070..0000000
--- a/src/data/districts/types.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-export interface District {
- id: string;
- name: string;
- description: string;
- image: string;
-}
-
-export interface Site {
- name: string;
- url: string;
- description: string;
- owner: string;
- tags: string[];
- added: Date;
- screenshotUrl: string;
-}