Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions next_webapp/src/app/[locale]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";
import { useEffect, useState } from "react";

export default function Loading() {
const [show, setShow] = useState(true);

useEffect(() => {
const timer = setTimeout(() => {
setShow(false);
}, 1000); // change time

return () => clearTimeout(timer);
}, []);

if (!show) return null;

return (
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-white">
<div className="flex flex-col items-center gap-4">
<div className="h-12 w-12 animate-spin rounded-full border-4 border-green-200 border-t-green-600"></div>
<p className="text-sm font-semibold text-green-600">Loading...</p>
</div>
</div>
);
}
2 changes: 2 additions & 0 deletions next_webapp/src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import PartnersSection from "@/components/PartnersSection";
import TestimonialsSection from "@/components/TestimonialsSection";
import CityMetricCard from "@/components/CityMetricCard";
import Insights from "@/components/Insights";
import BackToTopButton from "@/components/BackToTopButton";

const Home = () => {
return (
Expand All @@ -21,6 +22,7 @@ const Home = () => {
<SocialMediaFeed />
<BackToTopButton />
<Chatbot />
<BackToTopButton />
<Footer />

</div>
Expand Down
4 changes: 2 additions & 2 deletions next_webapp/src/app/chatbot/chatbot.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
display: flex;
align-items: center;
justify-content: center;
color: #4CAF50;
color: rgb(76, 175, 80);
}

.textarea1 {
Expand All @@ -29,7 +29,7 @@
font-weight: inherit;
line-height: inherit;
letter-spacing: inherit;
color: green;
color: rgb(0, 128, 0);
margin: 0;
padding: 8px;
width: 100%;
Expand Down