diff --git a/public/artifacts.jpg b/public/artifacts.jpg new file mode 100644 index 0000000..35768b6 Binary files /dev/null and b/public/artifacts.jpg differ diff --git a/public/crackedRoad.jpg b/public/crackedRoad.jpg new file mode 100644 index 0000000..2e332ea Binary files /dev/null and b/public/crackedRoad.jpg differ diff --git a/public/tectonicPlate.jpg b/public/tectonicPlate.jpg new file mode 100644 index 0000000..64be6cc Binary files /dev/null and b/public/tectonicPlate.jpg differ diff --git a/src/app/api/login/route.ts b/src/app/api/login/route.ts index 12974e6..78baa37 100644 --- a/src/app/api/login/route.ts +++ b/src/app/api/login/route.ts @@ -1,11 +1,11 @@ -import bcrypt from "bcrypt"; -import { env } from "@utils/env"; -import { NextResponse } from "next/server"; -import { SignJWT } from "jose"; +import bcrypt from 'bcrypt'; +import { SignJWT } from 'jose'; +import { NextResponse } from 'next/server'; -import { PrismaClient } from "@prisma/client"; +import { PrismaClient } from '@prisma/client'; +import { env } from '@utils/env'; -import { findUserByEmail, readUserCsv, User } from "../functions/csvReadWrite"; +import { findUserByEmail, readUserCsv, User } from '../functions/csvReadWrite'; const usingPrisma = false; let prisma: PrismaClient; @@ -45,12 +45,12 @@ export async function POST(req: Request) { include: { earthquakes: true, observatories: true, - artefacts: true, + artifacts: true, superior: true, subordinates: true, }, }, - purchasedArtefacts: true, + purchasedArtifacts: true, }, }); diff --git a/src/app/api/warehouse/route.ts b/src/app/api/warehouse/route.ts index 027d92e..ffcc6d0 100644 --- a/src/app/api/warehouse/route.ts +++ b/src/app/api/warehouse/route.ts @@ -1,15 +1,15 @@ -import { NextResponse } from "next/server"; -import { env } from "@utils/env"; +import { NextResponse } from 'next/server'; -import { PrismaClient } from "@prisma/client"; -import { verifyJwt } from "@utils/verifyJwt"; +import { PrismaClient } from '@prisma/client'; +import { env } from '@utils/env'; +import { verifyJwt } from '@utils/verifyJwt'; const usingPrisma = false; let prisma: PrismaClient; if (usingPrisma) prisma = new PrismaClient(); -// Artefact type -interface Artefact { +// Artifact type +interface Artifact { id: number; name: string; description: string; @@ -29,7 +29,7 @@ export async function POST(req: Request) { if (!token) return NextResponse.json({ message: "Unauthorised" }, { status: 401 }); await verifyJwt({ token, secret: env.JWT_SECRET_KEY }); - const warehouseArtefacts: Artefact[] = [ + const warehouseArtifacts: Artifact[] = [ { id: 1, name: "Solidified Lava Chunk", @@ -87,17 +87,17 @@ export async function POST(req: Request) { }, ]; - let artefacts; - if (usingPrisma) artefacts = await prisma.artefacts.findMany(); + let artifacts; + if (usingPrisma) artifacts = await prisma.artifacts.findMany(); - if (artefacts) { - return NextResponse.json({ message: "Got artefacts successfully", artefacts }, { status: 200 }); + if (artifacts) { + return NextResponse.json({ message: "Got artifacts successfully", artifacts }, { status: 200 }); } else { - return NextResponse.json({ message: "Got earthquakes successfully", earthquakes: warehouseArtefacts }, { status: 200 }); + return NextResponse.json({ message: "Got earthquakes successfully", earthquakes: warehouseArtifacts }, { status: 200 }); // return NextResponse.json({ message: "Failed to get earthquakes" }, { status: 401 }); } } catch (error) { - console.error("Error in artefacts endpoint:", error); + console.error("Error in artifacts endpoint:", error); return NextResponse.json({ message: "Internal Server Error" }, { status: 500 }); } finally { if (usingPrisma) await prisma.$disconnect(); diff --git a/src/app/contact-us/page.tsx b/src/app/contact-us/page.tsx index 42d971c..fc371e8 100644 --- a/src/app/contact-us/page.tsx +++ b/src/app/contact-us/page.tsx @@ -1,6 +1,6 @@ "use client"; -import Image from "next/image"; -import React, { useState } from "react"; +import Image from 'next/image'; +import React, { useState } from 'react'; const ContactUs = () => { const [formData, setFormData] = useState({ @@ -36,8 +36,8 @@ const ContactUs = () => {
- Have questions or concerns about earthquake preparedness? Contact us using the form below or through the provided +
+ Have questions or concerns about earthquakes, observatories or artifacts? Contact us via phone, email, social media or using the form below with the relevant contact details.
@@ -106,20 +106,20 @@ const ContactUs = () => { {/* Contact Details Section */}+44 7538 359022
++44 7538 359022
1 Swentown Row, Greenwich, London, SE3 0FQ
+1 Swentown Row, Greenwich, London, SE3 0FQ
- At Tremor Tracker, we empower communities worldwide to prepare for - and recover from earthquakes through education, cutting-edge research, and innovative technology. -
-- We bridge scientific insights with public awareness, delivering resources, tools, and real-time updates to enhance - preparedness, save lives, and build resilience against seismic events. -
-- Delivering accessible resources to educate communities on earthquake preparedness. -
-- Advancing scientific studies to deepen understanding of seismic activity. -
-- Harnessing innovation for real-time alerts and safety solutions. -
-+ Earthquake awareness accessible for everyone +
++ At Tremor Tracker, we empower communities worldwide to understand where and why earthquakes occur to enable better preparation + and recovery. Education, cutting-edge research, and innovative technology combine together. +
++ We combine scientific insights with public awareness, delivering resources, tools, and real-time updates to enhance + preparedness for earthquakes in order to save lives, improve recovery efficiency, and build resilience against seismic events. +
++ Delivering accessible resources to educate communities on earthquakes. +
++ Advancing scientific studies to deepen understanding of seismic activity. +
++ Harnessing innovation for real-time alerts and safety solutions. +
++ {currencyTickers[selectedCurrency]} + {convertPrice(artifact.price, selectedCurrency)} +
+{artifact.description}
+Location: {artifact.location}
+{artifact.location}
++ {currencyTickers[selectedCurrency]} + {convertPrice(artifact.price, selectedCurrency)} +
+- {currencyTickers[selectedCurrency]} - {convertPrice(artefact.price, selectedCurrency)} -
-{artefact.description}
-Location: {artefact.location}
+ return ( ++ Discover extraordinary historical artifacts and collectibles from major seismic events from around the world - now available for purchase. +
-{artefact.location}
-- {currencyTickers[selectedCurrency]} - {convertPrice(artefact.price, selectedCurrency)} -
-- Our world-class scientists drive innovation across the globe. Meet our department heads below. -
- - {/* Team Members Section */} -{member.title}
-{member.description}
-+ Our world-class scientists and engineers drive innovation across the globe. Meet our four department heads: +
+{member.title}
+{member.description}
+{error}
}{error}
}