Skip to content

Commit

Permalink
fds
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajrekwar committed Aug 31, 2024
1 parent 6552231 commit ef54ab8
Show file tree
Hide file tree
Showing 11 changed files with 1,857 additions and 200 deletions.
6 changes: 3 additions & 3 deletions app/components/GoogleTagManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ interface GoogleTagManagerProps {
containerId: string;
}

export default function MyGoogleTagManager({ containerId }: GoogleTagManagerProps) {
return <GoogleTagManager gtmId={containerId} dataLayer={[`containerId: ${containerId}`]} />;
}
export default function MyGoogleTagManager({ containerId }: GoogleTagManagerProps) {
return <GoogleTagManager gtmId={containerId} dataLayer={{ containerId }} />;
}
2 changes: 1 addition & 1 deletion app/components/ImageSlides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from "react";
import { useState, useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { wrap } from "popmotion";


const images = [
"https://d33wubrfki0l68.cloudfront.net/dd23708ebc4053551bb33e18b7174e73b6e1710b/dea24/static/images/wallpapers/[email protected]",
Expand Down
7 changes: 0 additions & 7 deletions app/components/ShareDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ import {
IconBrandFacebookFilled,
IconBrandXFilled,
} from "@tabler/icons-react";
import {
FacebookShareButton,
FacebookIcon,
GithubIcon,
TwitterShareButton,
TwitterIcon

} from 'next-share'
import { LinkIcon } from "@nextui-org/react";
import { text } from "stream/consumers";

Expand Down
115 changes: 46 additions & 69 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import React, { useState } from "react";
import { Button } from "@/components/ui/button";
import { ToastAction } from "@/components/ui/toast";
import { useToast } from "@/components/ui/use-toast";

import CurrentTime from "../components/CurrentTime";
import AdminWeather from "../components/AdminWeather";
import QuotesSlider from "../components/QuotesSlider";
import { useToast } from "@/hooks/use-toast";

const ContactPage: React.FC = () => {
const { toast } = useToast();
Expand All @@ -18,7 +19,7 @@ const ContactPage: React.FC = () => {
});

const handleChange = (
e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,
e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
) => {
setFormData({
...formData,
Expand Down Expand Up @@ -64,58 +65,51 @@ const ContactPage: React.FC = () => {
};

return (
<main className="md:p-8 p-2 bg-custom-radial-md bg-primary min-h-screen">
<main className="md:p-8 p-2 bg-custom-radial-md bg-primary min-h-screen">
<div className="flex justify-between px-2 rounded-full bg-seven items-center text-four text-xs h-[3vh] mb-8">
<ul className="flex font-semibold text-five sm:text-xl">
<li> nee </li>
<li>nee</li>
</ul>
<ul className="flex gap-1 text-five">
<li className="">
{" "}
{/* <CurrentTime />{" "} */}
</li>
Reach at me &#9679; <CurrentTime/>

<ul className="flex gap-1 text-five">
<li>Reach at me &#9679; <CurrentTime /></li>
</ul>
</div>
<section className="">
<div className="max-w-6xl justify-center lg:h-[87vh] m-auto rounded-xl border-rose-600 sm:flex sm:border-rose-600 md:border-blue-400 gap-2 lg:w-[70%] lg:flex-1 lg:border-yellow-500">
<div className="basis-1/2 backdrop-blur-sm flex flex-col justify-between border-four md:w-[40%] p-2 aspect-square bg-seven rounded-xl m-2">
<section>
<div className="max-w-6xl justify-center lg:h-[87vh] m-auto rounded-xl border-rose-600 sm:flex sm:border-rose-600 md:border-blue-400 gap-2 lg:w-[70%] lg:flex-1 lg:border-yellow-500">
<div className="basis-1/2 backdrop-blur-sm flex flex-col justify-between border-four md:w-[40%] p-2 aspect-square bg-seven rounded-xl m-2">
<h1 className="md:text-3xl text-2xl font-medium tracking-tight lg:text-5xl text-five font-bold mb-6">
Connecting You with Us – Reach Out Anytime, Anywhere.
{/* Facilis blanditiis impedit atque. */}
</h1>
<div className="rounded-xl backdrop-brightness-150 overflow-hidden bg-[url('https://images.unsplash.com/photo-1724373506008-ab646f67067c?q=80&w=1563&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')] relative h-44 w-full bg-cover bg-no-repeat bg-bottom ">
<div className="rounded-xl backdrop-brightness-150 overflow-hidden bg-[url('https://images.unsplash.com/photo-1724373506008-ab646f67067c?q=80&w=1563&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')] relative h-44 w-full bg-cover bg-no-repeat bg-bottom">
<p className="z-10 relative rounded-t-xl h-14 text-sm text-four p-2 bg-[#ffffff69] backdrop-blur-sm">
<QuotesSlider />
<QuotesSlider />
</p>
</div>
<div className="text-four p-1 mt-2 justify-between flex-col flex ">
<h4 className="font-semibold text-xl">admin Info</h4>
<div className="flex text-five text-xs my-1 font-bold justify-between">
<p className=" border-five">Delhi, Dwarka.</p>
<div className="text-four p-1 mt-2 justify-between flex-col flex">
<h4 className="font-semibold text-xl">Admin Info</h4>
<div className="flex text-five text-xs my-1 font-bold justify-between">
<p className="border-five">Delhi, Dwarka.</p>
<p>Hin &#9679; Eng &#9679; Sans</p>
<AdminWeather />
</div>
<AdminWeather />
</div>
</div>

</div>

<div className="basis-2/2 text-primary bg-secondary border-four md:w-[60%] aspect-square bg-gradient-to-r from-seven rounded-xl m-2 p-2 sm:w-[60%]">
<h6 className="mb-1 p-2 text-four text-xl font-semibold md:text-2xl md:font-medium tracking-tight ">
&#9679; Your Matters – Drop Me a Line.
<div className="basis-2/2 text-primary bg-secondary border-four md:w-[60%] aspect-square bg-gradient-to-r from-seven rounded-xl m-2 p-2 sm:w-[60%]">
<h6 className="mb-1 p-2 text-four text-xl font-semibold md:text-2xl md:font-medium tracking-tight">
&#9679; Your Matters – Drop Me a Line.
</h6>

<form
action="https://formspree.io/f/mnqebqjq"
method="POST"
onSubmit={handleSubmit}
className="space-y-4 bg-custom-radial m-auto max-w-4xl"
className="space-y-4 bg-custom-radial m-auto max-w-4xl"
>
<div className="p-2">
<label
htmlFor="name"
className="block text-sm font-semibold text-four"
className="block text-sm font-semibold text-four"
>
Name
</label>
Expand All @@ -127,29 +121,32 @@ const ContactPage: React.FC = () => {
onChange={handleChange}
placeholder="Enter your name"
required
className="mt-1 border border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
className="mt-1 border border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
/>
</div>
<div className="p-2">
<label htmlFor="moblie" className="block text-sm font-semibold text-four">
Moblie
</label>
<input
type="text"
id="moblie"
name="moblie"
value={formData.name}
onChange={handleChange}
placeholder="Enter your moblie number"
required
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
/>
</div>
<label
htmlFor="mobile"
className="block text-sm font-semibold text-four"
>
Mobile
</label>
<input
type="text"
id="mobile"
name="mobile"
value={formData.name}
onChange={handleChange}
placeholder="Enter your mobile number"
required
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
/>
</div>

<div className="p-2">
<label
htmlFor="email"
className="block text-sm font-semibold text-four"
className="block text-sm font-semibold text-four"
>
Email
</label>
Expand All @@ -161,33 +158,13 @@ const ContactPage: React.FC = () => {
onChange={handleChange}
placeholder="Enter your email"
required
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
/>
</div>

{/* <div className="p-2">
<label
htmlFor="subject"
className="block text-sm font-semibold text-four"
>
Subject
</label>
<input
type="text"
id="subject"
name="subject"
value={formData.subject}
onChange={handleChange}
placeholder="Enter your subject"
required
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:ring-2 flex h-10 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
/>
</div> */}

<div className="p-2">
<label
htmlFor="message"
className="block text-sm font-semibold text-four"
className="block text-sm font-semibold text-four"
>
Message
</label>
Expand All @@ -199,14 +176,14 @@ const ContactPage: React.FC = () => {
placeholder="Enter your message"
required
rows={4}
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring-2 focus-visible:ring-2 flex h-20 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
className="mt-1 border-input bg-[#ffffff0a] ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring-2 focus-visible:ring-2 flex h-20 w-full rounded border-none px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus:bg-seven disabled:cursor-not-allowed disabled:opacity-50 focus:ring-four focus:border-four"
/>
</div>

<div className="p-2">
<Button
type="submit"
className="w-fit inline-flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-four hover:opacity-75 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
className="w-fit inline-flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-four hover:opacity-75 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
>
Send Message
</Button>
Expand Down
5 changes: 4 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import ExpSection from "./components/ExpSection";
import { VisionSection } from "./components/VisionSection";
import StickyRelativeDemo from "./components/StickyRelativeDemo";
import { Accordion } from "@/components/ui/accordion";
import { AccordionDemo } from "@/components/Accordion";




export const metadata: Metadata = {
Expand Down Expand Up @@ -38,7 +41,7 @@ export default function Home() {
</section>
<section className="text-five">

<Accordion />
<AccordionDemo/>
</section>
</main>

Expand Down
51 changes: 51 additions & 0 deletions components/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion";

export function AccordionDemo() {
return (
<>
<div className="text-five min-h-screen pt-20 text-left">
<div className="max-w-6xl p-2 m-auto">
<div className="text-center text-2xl">FAQ</div>
<Accordion type="single" collapsible className="w-full text-left">
<AccordionItem value="item-1">
<AccordionTrigger>What web solutions do you offer?</AccordionTrigger>
<AccordionContent>
We offer responsive web design services to improve user experience across different devices. Our solutions include successful implementation examples and can help boost user engagement and conversion rates for businesses. Let&apos;s discuss how we can tailor our web solutions to meet your needs.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>How scalable are your web solutions?</AccordionTrigger>
<AccordionContent>
I&apos;ve noted down your request to remember the text How scalable are your web solutions?
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionTrigger>Are your web solutions customizable to fit specific business needs?
</AccordionTrigger>
<AccordionContent>
Absolutely, our web solutions can be tailored to meet specific business requirements.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-4">
<AccordionTrigger>What makes your web solutions reliable?</AccordionTrigger>
<AccordionContent>
Our web solutions are built on a foundation of robust technology and rigorous testing, ensuring reliability at every step.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-5">
<AccordionTrigger>How can we get in touch to discuss our business needs?</AccordionTrigger>
<AccordionContent>
You can reach out to discuss our business needs via email at [email address] or by phone at [phone number]. Looking forward to connecting with you.
</AccordionContent>
</AccordionItem>
</Accordion>
</div>
</div>
</>
);
}
56 changes: 56 additions & 0 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/90",
destructive:
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
outline:
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
secondary:
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default: "h-10 px-4 py-2",
sm: "h-9 rounded-md px-3",
lg: "h-11 rounded-md px-8",
icon: "h-10 w-10",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)

export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean
}

const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, size, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button"
return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
/>
)
}
)
Button.displayName = "Button"

export { Button, buttonVariants }
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const nextConfig = {
},
],
},
webpack: (config) => {
config.cache = false;
return config;
},
};

export default nextConfig;
Expand Down
Loading

0 comments on commit ef54ab8

Please sign in to comment.