From 668b8729a8e7d535eef19c75b700359a6f114557 Mon Sep 17 00:00:00 2001 From: Tim Howitz Date: Tue, 29 Apr 2025 16:52:03 +0100 Subject: [PATCH] Did lots of cleaning and polishing --- src/app/contact-us/page.tsx | 36 +++++----- src/app/shop/page.tsx | 80 +++++++++++----------- src/app/the-team/page.module.css | 75 --------------------- src/app/the-team/page.tsx | 104 +++++++++++++++++------------ src/components/navbar.tsx | 111 ++++++++++++++++--------------- 5 files changed, 178 insertions(+), 228 deletions(-) delete mode 100644 src/app/the-team/page.module.css diff --git a/src/app/contact-us/page.tsx b/src/app/contact-us/page.tsx index 048d9b1..4a5c07b 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({ @@ -9,11 +9,11 @@ const ContactUs = () => { message: "", }); - const handleChange = (e) => { + const handleChange = (e: { target: { name: any; value: any } }) => { setFormData({ ...formData, [e.target.name]: e.target.value }); }; - const handleSubmit = (e) => { + const handleSubmit = (e: { preventDefault: () => void }) => { e.preventDefault(); console.log("Form submitted with data:", formData); alert("Thank you for reaching out! We will get back to you soon."); @@ -21,16 +21,22 @@ const ContactUs = () => { }; return ( -
- Logo +
+ Logo {/* Overlay for readability */} -
+
{/* Container */} -
+
{/* Header */}

Contact Us

-

+

Have questions or concerns about earthquake preparedness? Contact us using the form below or through the provided contact details.

@@ -81,10 +87,11 @@ const ContactUs = () => { id="message" value={formData.message} onChange={handleChange} - rows="5" + rows={5} placeholder="Your Message" className="w-full p-3 border border-neutral-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" required + style={{ resize: "none" }} />
@@ -98,11 +105,13 @@ const ContactUs = () => {
{/* Contact Details Section */} -
+

Get in Touch

Email

-

getintouch@tremortracker.org.uk

+ + getintouch@tremortracker.com +

Phone

@@ -130,9 +139,6 @@ const ContactUs = () => { LinkedIn Logo -

- @tremor.tracker -

diff --git a/src/app/shop/page.tsx b/src/app/shop/page.tsx index ca2bd7b..29a28fa 100644 --- a/src/app/shop/page.tsx +++ b/src/app/shop/page.tsx @@ -1,4 +1,5 @@ "use client"; +import Image from 'next/image'; import { Dispatch, SetStateAction, useCallback, useState } from 'react'; import Artifact from '@appTypes/Artifact'; @@ -13,7 +14,7 @@ const artifacts: Artifact[] = [ name: "Golden Scarab", description: "An ancient Egyptian artifact symbolizing rebirth.", location: "Cairo, Egypt", - image: "/images/artifact1.jpg", + image: "/artifact1.jpg", price: 150, }, { @@ -21,7 +22,7 @@ const artifacts: Artifact[] = [ name: "Aztec Sunstone", description: "A replica of the Aztec calendar (inscriptions intact).", location: "Peru", - image: "/images/artifact2.jpg", + image: "/artifact2.jpg", price: 200, }, { @@ -29,7 +30,7 @@ const artifacts: Artifact[] = [ name: "Medieval Chalice", description: "Used by royalty in medieval ceremonies.", location: "Cambridge, England", - image: "/images/artifact3.jpg", + image: "/artifact3.jpg", price: 120, }, { @@ -37,7 +38,7 @@ const artifacts: Artifact[] = [ name: "Roman Coin", description: "An authentic Roman coin from the 2nd century CE.", location: "Rome, Italy", - image: "/images/artifact4.jpg", + image: "/artifact4.jpg", price: 80, }, { @@ -45,7 +46,7 @@ const artifacts: Artifact[] = [ name: "Samurai Mask", description: "Replica of Japanese Samurai battle masks.", location: "Tokyo, Japan", - image: "/images/artifact5.jpg", + image: "/artifact5.jpg", price: 300, }, { @@ -53,7 +54,7 @@ const artifacts: Artifact[] = [ name: "Ancient Greek Vase", description: "Depicts Greek mythology, found in the Acropolis.", location: "Athens, Greece", - image: "/images/artifact6.jpg", + image: "/artifact6.jpg", price: 250, }, { @@ -61,7 +62,7 @@ const artifacts: Artifact[] = [ name: "Incan Pendant", description: "Represents the Sun God Inti.", location: "India", - image: "/images/artifact7.jpg", + image: "/artifact7.jpg", price: 175, }, { @@ -69,7 +70,7 @@ const artifacts: Artifact[] = [ name: "Persian Carpet Fragment", description: "Ancient Persian artistry.", location: "Petra, Jordan", - image: "/images/artifact8.jpg", + image: "/artifact8.jpg", price: 400, }, { @@ -77,7 +78,7 @@ const artifacts: Artifact[] = [ name: "Stone Buddha", description: "Authentic stone Buddha carving.", location: "India", - image: "/images/artifact9.jpg", + image: "/artifact9.jpg", price: 220, }, { @@ -85,7 +86,7 @@ const artifacts: Artifact[] = [ name: "Victorian Brooch", description: "A beautiful Victorian-era brooch with a ruby centre.", location: "Oxford, England", - image: "/images/artifact10.jpg", + image: "/artifact10.jpg", price: 150, }, { @@ -93,7 +94,7 @@ const artifacts: Artifact[] = [ name: "Ancient Scroll", description: "A mysterious scroll from ancient times.", location: "Madrid, Spain", - image: "/images/artifact11.jpg", + image: "/artifact11.jpg", price: 500, }, { @@ -101,7 +102,7 @@ const artifacts: Artifact[] = [ name: "Ming Dynasty Porcelain", description: "Porcelain from China's Ming Dynasty.", location: "Beijing, China", - image: "/images/artifact12.jpg", + image: "/artifact12.jpg", price: 300, }, { @@ -109,7 +110,7 @@ const artifacts: Artifact[] = [ name: "African Tribal Mask", description: "A unique tribal mask from Africa.", location: "Nigeria", - image: "/images/artifact13.jpg", + image: "/artifact13.jpg", price: 250, }, { @@ -117,7 +118,7 @@ const artifacts: Artifact[] = [ name: "Crystal Skull", description: "A mystical pre-Columbian artifact.", location: "Colombia", - image: "/images/artifact14.jpg", + image: "/artifact14.jpg", price: 1000, }, { @@ -125,7 +126,7 @@ const artifacts: Artifact[] = [ name: "Medieval Armor Fragment", description: "A fragment of medieval armor.", location: "Normandy, France", - image: "/images/artifact15.jpg", + image: "/artifact15.jpg", price: 400, }, ]; @@ -171,31 +172,29 @@ export default function Shop() { className="fixed inset-0 bg-neutral-900 bg-opacity-50 flex justify-center items-center z-50" onClick={handleOverlayClick} > -
-

{artifact.name}

- {artifact.name} -

{artifact.description}

-

Location: {artifact.location}

-

Price: ${artifact.price}

-
- +
+

{artifact.name}

+ {artifact.name} +

+ {currencyTickers[selectedCurrency]} + {convertPrice(artifact.price, selectedCurrency)} +

+

{artifact.description}

+

Location: {artifact.location}

+ +
-
@@ -211,10 +210,9 @@ export default function Shop() { > {artifact.name}
-

{artifact.name}

-

{artifact.description}

+

{artifact.name}

{artifact.location}

-

+

{currencyTickers[selectedCurrency]} {convertPrice(artifact.price, selectedCurrency)}

@@ -234,6 +232,7 @@ export default function Shop() { ))}
+ {/* Sidebar */}
{/* Pagination Footer */} -