feat: Refactor contact form and improve 404 page
This commit refactors the contact form for better reusability and moves it from the global footer to a dedicated section on the homepage. Additionally, it enhances the user experience on the 404 page. Key changes: - The `ContactUsForm` component is now configurable with props for grid layout (`columnsPerRow`) and button text, making it more versatile. - The contact form has been removed from the shared footer in the main layout and is now explicitly included only on the homepage. - The 404 "Not Found" page has been updated to include a direct link to the homepage for easier navigation. - Minor style adjustments were made to the 404 page layout and input field padding for improved visual consistency.
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
import ContactUsForm from "@/app/_contact-us/form";
|
||||
import { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Opp lens - Contact Us",
|
||||
description:
|
||||
"Automated tender management platform for SMEs. Find tailored tenders, automate document handling, and get real-time alerts. Win more opportunities with less effort.",
|
||||
keywords:
|
||||
"tender management, AI tender search, SME tenders, public procurement, automated bidding, tender alerts",
|
||||
authors: [{ name: "PBL Partners AB" }],
|
||||
openGraph: {
|
||||
title: "Opp lens - AI-Powered Tender Management",
|
||||
description: "Win more tenders automatically with our AI-powered platform",
|
||||
type: "website",
|
||||
locale: "en_US",
|
||||
siteName: "Opp lens",
|
||||
},
|
||||
icons: {
|
||||
icon: "/fav-icon.svg",
|
||||
},
|
||||
};
|
||||
|
||||
const ContactUsPage = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col gap-6 items-center">
|
||||
<p className="bg-(--primary)/20 w-fit px-2.5 py-1.5 text-(--primary) rounded-full">
|
||||
Contact Us
|
||||
</p>
|
||||
<h1 className="font-extrabold text-5xl">Let's Get In Touch</h1>
|
||||
<p className="text-[16px] font-normal">
|
||||
Or just reach out manually to
|
||||
<a
|
||||
href="mailto:info@opplens.com"
|
||||
className="text-(--primary) mx-1">
|
||||
info@opplens.com
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col items-center mt-16 px-8 ">
|
||||
<section className="border border-gray-300 rounded-4xl w-full md:max-w-2/3 flex flex-col items-center bg-white">
|
||||
<ContactUsForm columnsPerRow={1} />
|
||||
</section>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default ContactUsPage;
|
||||
@@ -0,0 +1,172 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { ToastContainer, Zoom } from "react-toastify";
|
||||
import NavigationBar from "../_components/NavigationBar";
|
||||
import "../globals.css";
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
icons: {
|
||||
icon: "/fav-icon.svg",
|
||||
},
|
||||
};
|
||||
|
||||
function ContactInfo({
|
||||
icon,
|
||||
contact,
|
||||
href,
|
||||
ariaLabel,
|
||||
contactIconSrc,
|
||||
}: {
|
||||
icon: string;
|
||||
contact: string;
|
||||
href?: string;
|
||||
ariaLabel: string;
|
||||
contactIconSrc?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex gap-3 my-3 text-white">
|
||||
<Image
|
||||
src={icon}
|
||||
width={24}
|
||||
height={24}
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
/>
|
||||
{href ? (
|
||||
<a
|
||||
href={href}
|
||||
className="cursor-pointer min-w-fit"
|
||||
aria-label={ariaLabel}>
|
||||
{contact}
|
||||
</a>
|
||||
) : (
|
||||
<p className="flex gap-3">
|
||||
{!!contactIconSrc && (
|
||||
<Image
|
||||
src={contactIconSrc}
|
||||
width={20}
|
||||
height={20}
|
||||
alt="flag"
|
||||
/>
|
||||
)}
|
||||
{contact}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const contactInfo = [
|
||||
{
|
||||
icon: "/Message.svg",
|
||||
contact: "info@opplens.com",
|
||||
href: "mailto:info@opplens.com",
|
||||
ariaLabel: "Email us at info@opplens.com",
|
||||
},
|
||||
{
|
||||
icon: "/Phone.svg",
|
||||
contact: "(+46) - 761581526",
|
||||
href: "tel:+46761581526",
|
||||
ariaLabel: "Call us at +46 761581526",
|
||||
},
|
||||
{
|
||||
icon: "/Location.svg",
|
||||
contact: "Stockholm, Sweden",
|
||||
ariaLabel: "Our location in Stockholm, Sweden",
|
||||
contactIconSrc: "/sweden.svg",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<html lang="en">
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased flex flex-col bg-[url('/header-bg.svg')] bg-top-right bg-no-repeat bg-contain md:bg-cover`}>
|
||||
<header className="flex justify-center pt-8 items-center pb-4 container px-4 py-4 m-auto md:px-28 md:justify-between flex-wrap gap-5">
|
||||
<section>
|
||||
<Link
|
||||
href="/"
|
||||
aria-label="Opp lens home">
|
||||
<Image
|
||||
src="/main-logo.svg"
|
||||
alt="Opp lens logo"
|
||||
width={180}
|
||||
height={30}
|
||||
priority
|
||||
/>
|
||||
</Link>
|
||||
</section>
|
||||
|
||||
<NavigationBar />
|
||||
</header>
|
||||
|
||||
<ToastContainer
|
||||
position="top-right"
|
||||
autoClose={2500}
|
||||
theme={"colored"}
|
||||
transition={Zoom}
|
||||
hideProgressBar
|
||||
newestOnTop
|
||||
closeOnClick
|
||||
pauseOnFocusLoss
|
||||
draggable
|
||||
pauseOnHover
|
||||
/>
|
||||
|
||||
<main className="container px-4 py-4 m-auto flex-grow">{children}</main>
|
||||
<footer className="relative h-full bg-[url('/footer-bg.svg')] bg-cover bg-no-repeat mt-40">
|
||||
<div className="relative z-10 container px-4 py-4 m-auto flex flex-col justify-center items-center mt-24 ">
|
||||
<div className="flex justify-between flex-col md:flex-row gap-14 w-full md:w-1/2">
|
||||
<div className="flex flex-col gap-10">
|
||||
<Image
|
||||
src={"/footer-logo.svg"}
|
||||
alt="Opp lens logo"
|
||||
width={180}
|
||||
height={30}
|
||||
priority
|
||||
/>
|
||||
<div>
|
||||
<p className="text-white my-2">
|
||||
Democratizing Tender Access for SMEs.
|
||||
</p>
|
||||
<p className="text-white my-2">
|
||||
© 2025 Opplens.com by PBL Partners AB. All Rights Reserved.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
{contactInfo.map((contact, index) => (
|
||||
<ContactInfo
|
||||
key={index}
|
||||
icon={contact.icon}
|
||||
contact={contact.contact}
|
||||
href={contact.href}
|
||||
ariaLabel={contact.ariaLabel}
|
||||
contactIconSrc={contact.contactIconSrc}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
import { Metadata } from "next";
|
||||
import Image from "next/image";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Opp lens - AI-Powered Tender Management for SMEs | Win More Tenders",
|
||||
description:
|
||||
"Automated tender management platform for SMEs. Find tailored tenders, automate document handling, and get real-time alerts. Win more opportunities with less effort.",
|
||||
keywords:
|
||||
"tender management, AI tender search, SME tenders, public procurement, automated bidding, tender alerts",
|
||||
authors: [{ name: "PBL Partners AB" }],
|
||||
openGraph: {
|
||||
title: "Opp lens - AI-Powered Tender Management",
|
||||
description: "Win more tenders automatically with our AI-powered platform",
|
||||
type: "website",
|
||||
locale: "en_US",
|
||||
siteName: "Opp lens",
|
||||
},
|
||||
icons: {
|
||||
icon: "/fav-icon.svg",
|
||||
},
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
const advItems = [
|
||||
{
|
||||
title: "user",
|
||||
amount: 200,
|
||||
description:
|
||||
"lacking the time, dedicated staff, and expertise to constantly monitor the market and prepare high-quality bids.",
|
||||
},
|
||||
{
|
||||
title: "contract",
|
||||
amount: 520,
|
||||
description:
|
||||
"Navigating complex requirements and processes designed for large corporations with dedicated tender departments.",
|
||||
},
|
||||
{
|
||||
title: "tenders",
|
||||
amount: 1500,
|
||||
description:
|
||||
"Did you know 68% of SMEs in Sweden rarely or never win public tenders? It's time to change that.",
|
||||
},
|
||||
];
|
||||
return (
|
||||
<>
|
||||
<section className="md:flex md:flex-row justify-around items-center">
|
||||
<div className=" md:ml-28 w-full md:w-1/2 flex flex-col gap-10">
|
||||
<h1 className="font-black text-8xl text-[#013280]">AI-Powered</h1>
|
||||
<h2 className="font-black text-(--primary) text-5xl leading-14">
|
||||
Tender
|
||||
<br />
|
||||
Management
|
||||
</h2>
|
||||
<div className="flex flex-col gap-6 ">
|
||||
<h3 className="font-black text-3xl text-[#222]">
|
||||
Win more tenders, automatically!
|
||||
</h3>
|
||||
<p className="font-normal text-[#777]">
|
||||
Our platform finds tenders tailored to your business, automates
|
||||
document handling, and sends real-time alerts. Win more
|
||||
opportunities with less effort and zero manual search.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="m-auto mt-5 w-xs -z-20 relative flex justify-center h-[650px] md:h-[750px] md:w-auto">
|
||||
<Image
|
||||
src={"/dynamic-island.svg"}
|
||||
alt="dynamic island"
|
||||
width={75}
|
||||
height={22}
|
||||
className="absolute top-4 left-1/2 -translate-x-1/2"
|
||||
/>
|
||||
<Image
|
||||
className="-z-10 border-8 border-black rounded-4xl overflow-hidden h-full w-full"
|
||||
src="/mobile.gif"
|
||||
width={300}
|
||||
height={920}
|
||||
loading="lazy"
|
||||
alt="phone"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
<section className="text-left flex flex-col gap-6 bg-gradient-to-b from-[#011132] to-[#012B80] text-white rounded-[56px] relative p-6 md:p-14 -mt-16 z-20 md:ml-28">
|
||||
<hgroup className="md:flex gap-5 text-center">
|
||||
{advItems.map((item) => (
|
||||
<div
|
||||
key={item.title}
|
||||
className="flex flex-col gap-4">
|
||||
<h3 className="font-black text-[90px]">{item.amount}</h3>
|
||||
<h4 className="font-semibold text-3xl capitalize text-[#99dde5]">
|
||||
{item.title}
|
||||
</h4>
|
||||
<p className="font-normal text-[16px]">{item.description}</p>
|
||||
</div>
|
||||
))}
|
||||
</hgroup>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user