diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx
new file mode 100644
index 0000000..c831b45
--- /dev/null
+++ b/src/app/about/page.tsx
@@ -0,0 +1,154 @@
+"use client";
+
+import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
+import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
+import TextAbout from "@/components/sections/about/TextAbout";
+import FeatureCardTwentySeven from "@/components/sections/feature/FeatureCardTwentySeven";
+import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
+import ContactCTA from "@/components/sections/contact/ContactCTA";
+import FooterSimple from "@/components/sections/footer/FooterSimple";
+import { CheckCircle, Heart, Users } from "lucide-react";
+
+export default function AboutPage() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx
new file mode 100644
index 0000000..7990225
--- /dev/null
+++ b/src/app/contact/page.tsx
@@ -0,0 +1,114 @@
+"use client";
+
+import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
+import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
+import ContactCTA from "@/components/sections/contact/ContactCTA";
+import ContactText from "@/components/sections/contact/ContactText";
+import FooterSimple from "@/components/sections/footer/FooterSimple";
+import { Heart, Mail, MapPin, Phone } from "lucide-react";
+
+export default function ContactPage() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 528d1cc..d666dcd 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -4,9 +4,14 @@ import { Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
-import { Roboto } from "next/font/google";
+const dmSans = DM_Sans({
+ variable: "--font-dm-sans", subsets: ["latin"],
+});
+const inter = Inter({
+ variable: "--font-inter", subsets: ["latin"],
+});
export const metadata: Metadata = {
title: "Pet Adoption & Shelter | Paws & Care", description: "Find your perfect pet companion at Paws & Care. Adopt rescue dogs, cats, and small animals. Learn about our adoption process, volunteer, and support our mission to save lives.", keywords: "pet adoption, animal shelter, rescue dogs, rescue cats, pet rescue, adopt a pet, animal welfare", robots: {
@@ -24,12 +29,6 @@ export const metadata: Metadata = {
},
};
-const roboto = Roboto({
- variable: "--font-roboto",
- subsets: ["latin"],
- weight: ["100", "300", "400", "500", "700", "900"],
-});
-
export default function RootLayout({
children,
}: Readonly<{
@@ -38,7 +37,7 @@ export default function RootLayout({
return (
-
+
{children}
@@ -283,7 +282,9 @@ export default function RootLayout({
const getElementInfo = (element, assignId = false) => {
const rect = element.getBoundingClientRect();
const tagName = element.tagName.toLowerCase();
-
+ const selector = getUniqueSelector(element, assignId);
+ const sectionId = getSectionId(element);
+
let className = undefined;
try {
if (element.className) {
@@ -311,7 +312,8 @@ export default function RootLayout({
};
if (tagName === 'img') {
- info.imageData = {
+ const originalSrc = extractOriginalUrl(element.src);
+ info.imageData = {
src: originalSrc,
alt: element.alt || undefined,
naturalWidth: element.naturalWidth,
@@ -322,7 +324,8 @@ export default function RootLayout({
if (tagName === 'video') {
const rawSrc = element.src || element.currentSrc || (element.querySelector('source') && element.querySelector('source').src) || '';
- info.imageData = {
+ const resolvedSrc = extractOriginalUrl(rawSrc);
+ info.imageData = {
src: resolvedSrc,
alt: element.getAttribute('aria-label') || undefined,
isBackground: false,
@@ -335,7 +338,8 @@ export default function RootLayout({
if (backgroundImage && backgroundImage !== 'none') {
const urlMatch = backgroundImage.match(/url(['"]?([^'")]+)['"]?)/);
if (urlMatch) {
- if (tagName !== 'img') {
+ const originalBgSrc = extractOriginalUrl(urlMatch[1]);
+ if (tagName !== 'img') {
info.imageData = {
src: originalBgSrc,
isBackground: true
@@ -347,7 +351,8 @@ export default function RootLayout({
}
}
- info.elementType = elementType;
+ const elementType = getElementType(element);
+ info.elementType = elementType;
if (elementType === 'Button') {
const buttonText = element.textContent?.trim() || element.value || element.getAttribute('aria-label') || '';
@@ -440,11 +445,13 @@ export default function RootLayout({
};
const isTextElement = (element) => {
- return elementType === 'Text';
+ const elementType = getElementType(element);
+ return elementType === 'Text';
};
const isButtonElement = (element) => {
- return elementType === 'Button';
+ const elementType = getElementType(element);
+ return elementType === 'Button';
};
const updateButtonText = (element, newText) => {
@@ -519,7 +526,8 @@ export default function RootLayout({
};
const handleInput = () => {
- let currentText = element.textContent;
+ const elementInfo = getElementInfo(element);
+ let currentText = element.textContent;
// Ensure there's always at least a space to keep the element editable
if (currentText === '' || currentText === null || currentText.length === 0) {
@@ -632,7 +640,8 @@ export default function RootLayout({
}, '*');
if (save && originalContent !== element.textContent) {
- let finalText = element.textContent;
+ const elementInfo = getElementInfo(element);
+ let finalText = element.textContent;
// Trim the final text and convert space-only to empty string for saving
if (finalText === ' ' || finalText.trim() === '') {
@@ -761,7 +770,7 @@ export default function RootLayout({
lastMouseX = e.clientX;
lastMouseY = e.clientY;
- || e.target;
+ const target = getMostSpecificElement(e.clientX, e.clientY) || e.target;
if (!isValidElement(target) || target === hoveredElement || target === selectedElement) {
return;
@@ -793,7 +802,8 @@ export default function RootLayout({
hoverOverlay = createHoverOverlay(target);
}
- showElementTypeLabel(target, elementType);
+ const elementType = getElementType(target);
+ showElementTypeLabel(target, elementType);
window.parent.postMessage({
type: 'webild-element-hover',
@@ -835,7 +845,7 @@ export default function RootLayout({
e.preventDefault();
e.stopPropagation();
- || e.target;
+ const target = getMostSpecificElement(e.clientX, e.clientY) || e.target;
if (!isValidElement(target)) return;
if (selectedElement && selectedElement !== target) {
@@ -880,7 +890,8 @@ export default function RootLayout({
hoveredElement = null;
}
- selectedElement.dataset.webildSelector = elementInfo.selector;
+ const elementInfo = getElementInfo(target, true);
+ selectedElement.dataset.webildSelector = elementInfo.selector;
showElementTypeLabel(target, elementInfo.elementType);
window.parent.postMessage({
@@ -963,7 +974,8 @@ export default function RootLayout({
isScrolling = false;
if (lastMouseX > 0 && lastMouseY > 0) {
- if (target && isValidElement(target) && target !== selectedElement) {
+ const target = getMostSpecificElement(lastMouseX, lastMouseY);
+ if (target && isValidElement(target) && target !== selectedElement) {
hoveredElement = target;
const computedStyle = window.getComputedStyle(target);
@@ -977,7 +989,8 @@ export default function RootLayout({
hoveredElement.classList.add(hoverClass);
hoverOverlay = createHoverOverlay(target);
- showElementTypeLabel(target, elementType);
+ const elementType = getElementType(target);
+ showElementTypeLabel(target, elementType);
window.parent.postMessage({
type: 'webild-element-hover',
@@ -1000,7 +1013,8 @@ export default function RootLayout({
const saveChangeToStorage = (change) => {
try {
- const existingChanges = JSON.parse(localStorage.getItem(storageKey) || '[]');
+ const storageKey = getStorageKey();
+ const existingChanges = JSON.parse(localStorage.getItem(storageKey) || '[]');
const filteredChanges = existingChanges.filter(c => {
return !(c.oldValue === change.oldValue && c.sectionId === change.sectionId);
@@ -1020,7 +1034,8 @@ export default function RootLayout({
const clearLocalChanges = () => {
try {
- localStorage.removeItem(storageKey);
+ const storageKey = getStorageKey();
+ localStorage.removeItem(storageKey);
window.parent.postMessage({
type: 'webild-local-changes-cleared',
data: {}
@@ -1069,7 +1084,8 @@ export default function RootLayout({
if (e.data.type === 'webild-cancel-changes') {
try {
- const savedChanges = localStorage.getItem(storageKey);
+ const storageKey = getStorageKey();
+ const savedChanges = localStorage.getItem(storageKey);
if (savedChanges) {
const changes = JSON.parse(savedChanges);
changes.forEach(change => {
@@ -1091,7 +1107,8 @@ export default function RootLayout({
if (isBackground) {
element.style.backgroundImage = change.oldValue ? 'url(' + change.oldValue + ')' : '';
} else {
- if (revertTag === 'video' && oldMediaType === 'image') {
+ const oldMediaType = getMediaTypeFromUrl(change.oldValue);
+ if (revertTag === 'video' && oldMediaType === 'image') {
swapMediaElement(element, 'img', change.oldValue);
} else if (revertTag === 'img' && oldMediaType === 'video') {
swapMediaElement(element, 'video', change.oldValue);
@@ -1139,7 +1156,8 @@ export default function RootLayout({
const el = textElements[i];
if (isTextElement(el) && el.textContent.trim() === (oldValue || '').trim()) {
element = el;
- if (newSelector) {
+ const newSelector = getUniqueSelector(element, true);
+ if (newSelector) {
element.dataset.webildSelector = newSelector;
}
break;
@@ -1230,8 +1248,10 @@ export default function RootLayout({
replaced = true;
} else if (element.tagName.toLowerCase() === 'img') {
oldValue = element.src;
- if (newMediaType === 'video' && allowMediaTypeSwap) {
- if (selectedElement === element) selectedElement = swapped;
+ const newMediaType = getMediaTypeFromUrl(newSrc);
+ if (newMediaType === 'video' && allowMediaTypeSwap) {
+ const swapped = swapMediaElement(element, 'video', newSrc);
+ if (selectedElement === element) selectedElement = swapped;
element = swapped;
} else {
element.src = newSrc;
@@ -1239,9 +1259,11 @@ export default function RootLayout({
replaced = true;
} else if (element.tagName.toLowerCase() === 'video') {
oldValue = element.src || element.currentSrc || '';
- const sources = element.querySelectorAll('source');
+ const newMediaType = getMediaTypeFromUrl(newSrc);
+ const sources = element.querySelectorAll('source');
if (newMediaType === 'image' && allowMediaTypeSwap) {
- if (selectedElement === element) selectedElement = swapped;
+ const swapped = swapMediaElement(element, 'img', newSrc);
+ if (selectedElement === element) selectedElement = swapped;
element = swapped;
} else {
if (sources.length > 0) {
@@ -1263,7 +1285,8 @@ export default function RootLayout({
}
if (replaced) {
-
+ const elementInfo = getElementInfo(element);
+
let cleanOldValue = oldValue;
if (oldValue.includes('url(')) {
const urlMatch = oldValue.match(/url(['"]?([^'")]+)['"]?)/);
@@ -1334,7 +1357,13 @@ export default function RootLayout({
}
}, true);
-
+ const urlCheckInterval = setInterval(() => {
+ if (lastPathname !== window.location.pathname) {
+ lastPathname = window.location.pathname;
+ notifyPageChange();
+ }
+ }, 500);
+
notifyPageChange();
window.webildCleanup = () => {
diff --git a/src/app/our-pets/page.tsx b/src/app/our-pets/page.tsx
new file mode 100644
index 0000000..b647626
--- /dev/null
+++ b/src/app/our-pets/page.tsx
@@ -0,0 +1,150 @@
+"use client";
+
+import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
+import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
+import ProductCardOne from "@/components/sections/product/ProductCardOne";
+import FeatureCardTwentySeven from "@/components/sections/feature/FeatureCardTwentySeven";
+import ContactCTA from "@/components/sections/contact/ContactCTA";
+import FooterSimple from "@/components/sections/footer/FooterSimple";
+import { Heart, Sparkles, CheckCircle } from "lucide-react";
+
+export default function OurPetsPage() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index dcb85e2..3db6c2a 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -31,11 +31,13 @@ export default function LandingPage() {
@@ -51,7 +53,7 @@ export default function LandingPage() {
background={{ variant: "sparkles-gradient" }}
buttons={[
{ text: "Browse Pets", href: "#featured-pets" },
- { text: "Learn More", href: "#about" },
+ { text: "Learn More", href: "/about" },
]}
buttonAnimation="slide-up"
mediaItems={[
@@ -89,7 +91,7 @@ export default function LandingPage() {
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
- buttons={[{ text: "View All Pets", href: "#" }]}
+ buttons={[{ text: "View All Pets", href: "/our-pets" }]}
/>
@@ -173,7 +175,7 @@ export default function LandingPage() {
useInvertedBackground={false}
animationType="smooth"
faqsAnimation="slide-up"
- buttons={[{ text: "Contact Us", href: "#" }]}
+ buttons={[{ text: "Contact Us", href: "/contact" }]}
/>
@@ -197,10 +199,10 @@ export default function LandingPage() {
columns={[
{
title: "Navigate", items: [
- { label: "Home", href: "#" },
- { label: "Available Pets", href: "#featured-pets" },
+ { label: "Home", href: "/" },
+ { label: "Available Pets", href: "/our-pets" },
{ label: "Adoption", href: "#adopt" },
- { label: "About Us", href: "#about" },
+ { label: "About Us", href: "/about" },
],
},
{
@@ -208,7 +210,7 @@ export default function LandingPage() {
{ label: "Donate", href: "#" },
{ label: "Volunteer", href: "#" },
{ label: "Sponsorship", href: "#" },
- { label: "Contact Us", href: "#" },
+ { label: "Contact Us", href: "/contact" },
],
},
{