the MenuSm and Footer is done
parent
7b4ad3f86d
commit
e0452c1fcc
|
|
@ -8,6 +8,7 @@ import Image from "next/image";
|
|||
import { cn } from "@/lib/utils";
|
||||
import Link from "next/link";
|
||||
import bgimg from "../../public/img/bg.png";
|
||||
import Footer from "@/components/Footer";
|
||||
|
||||
export default function Landing() {
|
||||
return (
|
||||
|
|
@ -17,7 +18,7 @@ export default function Landing() {
|
|||
// backgroundSize: "cover",
|
||||
// backgroundSize: "100%"
|
||||
}}
|
||||
className="w-full bg-contain bg-top lg:bg-center bg-no-repeat h-[13rem] sm:h-[20rem] md:h-[24rem] xl:h-[33rem]"
|
||||
className="w-full bg-top lg:bg-center bg-no-repeat h-[13rem] sm:h-[20rem] md:h-[24rem] xl:h-[33rem]"
|
||||
>
|
||||
<Image
|
||||
alt="bg"
|
||||
|
|
@ -160,6 +161,8 @@ export default function Landing() {
|
|||
|
||||
{/*SubmitRequest */}
|
||||
<SubmitRequest />
|
||||
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export default function Counter() {
|
|||
max-md:gap-4 max-lg:flex-wrap max-lg:justify-center'>
|
||||
{counterItems.map((item) => {
|
||||
return (
|
||||
<div className='h-48 flex flex-col justify-end items-center gap-1 px-7 py-6 rounded-lg
|
||||
<div className='h-48 flex flex-col justify-end items-center gap-1 px-7 py-6 rounded-lg bg-blue50
|
||||
hover:bg-[#002A5B] transition-all duration-500 text-center
|
||||
max-md:px-1 max-md:py-1 max-lg:h-36 max-md:h-32'
|
||||
key={item.id}>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,84 @@
|
|||
import React from "react";
|
||||
import Image from "next/image";
|
||||
import img1 from "../public/img/footerImg1.png";
|
||||
import img2 from "../public/img/footerImg2.png";
|
||||
import { footerItems } from "@/constants";
|
||||
import { aboutFooterItems } from "@/constants";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
// <div classNameName="flex justify-center items-center w-full bg-blue ">
|
||||
|
||||
<footer className="bg-blue dark:bg-gray-900">
|
||||
<div
|
||||
className="mx-auto w-full max-w-screen-3xl px-4 py-7 md:px-8 md:py-8 lg:pt-14 lg:pb-7 lg:px-11 "
|
||||
>
|
||||
<div className="md:flex md:justify-between w-full ">
|
||||
<div className="grid gap-10 sm:gap-16 md:gap-20 lg:gap-28 grid-cols-1 w-full md:grid-cols-2 md:w-3/4 lg:w-2/4" >
|
||||
<div>
|
||||
<h2 className="text-white text-sm sm:text-base font-bold mb-4 ">
|
||||
درباره سامانه سوت زنی
|
||||
</h2>
|
||||
|
||||
{aboutFooterItems.map((item) => {
|
||||
return (
|
||||
<div key={item.id}>
|
||||
<p className=" text-white text-xs md:text-sm font-normal leading-10">{item.name}</p>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 className="text-white text-sm sm:text-base font-bold mb-4">
|
||||
دسترسی سریع
|
||||
</h2>
|
||||
<ul className="text-gray-500 dark:text-gray-400 font-medium text-right">
|
||||
{footerItems.map((item, index, array) => {
|
||||
return (
|
||||
<Link key={item.id} href={item.href}>
|
||||
<div className=" text-white text-xs md:text-sm font-normal leading-6 mb-3">{item.name}</div>
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className=" max-md:mt-6 flex flex-row justify-center md:justify-end items-start w-full md:w-1/4 ">
|
||||
<div className="w-23 h-23 sm:w-36 sm:h-36 ">
|
||||
<Image
|
||||
src={img1}
|
||||
className="h-full w-full object-contain"
|
||||
alt=" Logo1"
|
||||
quality={100}
|
||||
width={100}
|
||||
height={100}
|
||||
/>
|
||||
</div>
|
||||
<div className="w-23 h-23 sm:w-36 sm:h-36 ">
|
||||
<Image
|
||||
src={img2}
|
||||
className="h-full w-full object-contain"
|
||||
alt=" Logo2"
|
||||
quality={100}
|
||||
width={100}
|
||||
height={100}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr className=" border-gray-200 sm:mx-auto dark:border-gray-700 mt-5 sm:mt-10" />
|
||||
<div className="sm:flex sm:items-center sm:justify-between">
|
||||
<p className="text-white text-xs font-normal mt-4">
|
||||
تمامی حقوق مادی و معنوی این وب سایت متعلق به سوت زنی میباشد.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
// </div>
|
||||
);
|
||||
}
|
||||
|
|
@ -59,12 +59,12 @@ export default function NavbarSm() {
|
|||
animate={{ opacity: 1 }}
|
||||
exit={{ opacity: 0 }}
|
||||
transition={{ duration: 0.2 }}
|
||||
className="fixed z-[100] left-0 shadow-4xl right-0 top-[3rem] p-5 bg-blue border-b border-b-white/20"
|
||||
className="fixed z-[100] left-0 shadow-4xl right-0 top-[3rem] p-5 bg-gradient-to-b from-blue to-white border-b border-b-white/20"
|
||||
>
|
||||
<ul className="grid gap-2">
|
||||
<ul className="grid gap-2 ">
|
||||
{menuItems.map((item, idx , array) => {
|
||||
// const { Icon } = item;
|
||||
|
||||
const lastItem = (array.length - 1);
|
||||
return (
|
||||
<motion.li
|
||||
initial={{ scale: 0, opacity: 0 }}
|
||||
|
|
@ -76,12 +76,13 @@ export default function NavbarSm() {
|
|||
delay: 0.1 + idx / 10,
|
||||
}}
|
||||
key={item.name}
|
||||
className="w-full p-[0.08rem] rounded-xl bg-gradient-to-tr from-neutral-800 via-white to-neutral-700"
|
||||
className=" w-full p-[0.08rem] rounded-xl bg-gradient-to-tr from-neutral-800 via-white to-neutral-700"
|
||||
>
|
||||
<Link
|
||||
onClick={() => setOpen((prev) => !prev)}
|
||||
className={
|
||||
"flex items-center justify-between w-full p-3 rounded-xl bg-blue text-white"
|
||||
`flex items-center justify-between w-full p-3 rounded-xl text-white
|
||||
${lastItem === idx ? 'bg-yellow': 'bg-blue'} `
|
||||
}
|
||||
href={item.href}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
"use client"
|
||||
import React, { useState , useEffect} from "react";
|
||||
"use client";
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { Input } from "./ui/input";
|
||||
import { Label } from "./ui/label";
|
||||
import { Button } from "./ui/button";
|
||||
|
|
@ -19,12 +19,10 @@ import {
|
|||
import { IoMdClose } from "react-icons/io";
|
||||
|
||||
export default function Search() {
|
||||
|
||||
|
||||
// resize
|
||||
function getSize() {
|
||||
return {
|
||||
width: window.innerWidth
|
||||
width: window.innerWidth,
|
||||
};
|
||||
}
|
||||
const [windowSize, setWindowSize] = useState(getSize);
|
||||
|
|
@ -38,8 +36,6 @@ export default function Search() {
|
|||
return () => window.removeEventListener("resize", handleResize);
|
||||
}, [windowSize]);
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
{window.innerWidth >= 768 ? (
|
||||
|
|
@ -61,51 +57,51 @@ export default function Search() {
|
|||
<CiSearch />
|
||||
</button>
|
||||
</div>
|
||||
) :
|
||||
|
||||
|
||||
(
|
||||
|
||||
) : (
|
||||
<div className="">
|
||||
<AlertDialog>
|
||||
<AlertDialogTrigger asChild>
|
||||
|
||||
<button
|
||||
// variant="outline"
|
||||
// type="submit"
|
||||
className=" bg-gradient2 text-black rounded-full p-2"
|
||||
className=" bg-gradient2 text-black rounded-md p-1"
|
||||
>
|
||||
<CiSearch />
|
||||
</button>
|
||||
</AlertDialogTrigger>
|
||||
|
||||
<AlertDialogContent>
|
||||
<AlertDialogHeader>
|
||||
|
||||
<AlertDialogTitle>
|
||||
<p className="text-[#464646] text-base font-bold">فرم جستجو</p>
|
||||
<AlertDialogCancel className="p-0 border-0 h-auto"><IoMdClose /></AlertDialogCancel>
|
||||
<AlertDialogContent className=" h-1/5 min-w-[80%] max-w-fit">
|
||||
<AlertDialogHeader className="w-full" >
|
||||
<AlertDialogTitle className=" py-1">
|
||||
<p className="text-[#464646] text-base font-bold">
|
||||
فرم جستجو
|
||||
</p>
|
||||
<AlertDialogCancel className="p-0 border-0 h-auto">
|
||||
<IoMdClose />
|
||||
</AlertDialogCancel>
|
||||
</AlertDialogTitle>
|
||||
|
||||
<AlertDialogDescription>
|
||||
<p className="text-[#464646] text-sm font-medium"> موضوع شکایت: <span className="text-[#7C838A] text-sm font-medium">متن تستی</span></p>
|
||||
<AlertDialogDescription className="justify-center sm:px-14 sm:py-6">
|
||||
|
||||
<Input
|
||||
// type="search"
|
||||
id="default-search"
|
||||
className="mb-0 h-12 bg-gray border-none focus-visible:none rounded-lg
|
||||
block w-full min-w-[13rem] lg:min-w-[16rem] text-xs text-black text-opacity-60 dark:text-white "
|
||||
placeholder="جستجو..."
|
||||
required
|
||||
/>
|
||||
|
||||
<button className="absolute left-16 text-black">
|
||||
<CiSearch />
|
||||
</button>
|
||||
</AlertDialogDescription>
|
||||
|
||||
</AlertDialogHeader>
|
||||
|
||||
<AlertDialogFooter>
|
||||
{/* <AlertDialogCancel>Cancel</AlertDialogCancel> */}
|
||||
<AlertDialogAction className="bg-blue text-white w-1/2 sm:w-1/6">پرینت گزارش</AlertDialogAction>
|
||||
</AlertDialogFooter>
|
||||
|
||||
</AlertDialogContent>
|
||||
</AlertDialog>
|
||||
</div>
|
||||
|
||||
)}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default function TopNav() {
|
|||
<Search/>
|
||||
|
||||
|
||||
<div className=" flex items-center gap-3 ml-4">
|
||||
<div className=" flex items-center gap-3 md:ml-4">
|
||||
|
||||
<p className="bg-gradient-to-r from-gradient1 to-gradient2 inline-block text-transparent bg-clip-text text-sm max-md:text-xs">
|
||||
امروز: چهارشنبه 24 آبان 1402
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ const AlertDialogContent = React.forwardRef<
|
|||
`fixed left-[50%] top-[50%] z-50 grid w-full max-w-4xl translate-x-[-50%] translate-y-[-50%] gap-4 border duration-200
|
||||
data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95
|
||||
data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2
|
||||
data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg
|
||||
data-[state=open]:slide-in-from-top-[48%] rounded-lg
|
||||
h-full max-h-[32em] content-between p-0 bg-opacity-30 bg-[#FFFFF999] filter
|
||||
shadow-[0px_0px_30px_0px_rgba(0,0,0,0.3)]
|
||||
`,
|
||||
|
|
|
|||
|
|
@ -51,3 +51,15 @@ export const requestItems = [
|
|||
{ id: 3, name: "بررسی توسط بازرس شهرداری" },
|
||||
{ id: 4, name: " اعلام نتیجه درخواست" },
|
||||
];
|
||||
|
||||
|
||||
|
||||
export const aboutFooterItems = [
|
||||
{ id: 1, name: "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و بااستفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجلهدر ستون و سطرآنچنان که لازم است لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ " },
|
||||
];
|
||||
export const footerItems = [
|
||||
{ id: 1, name: "قوانین مربوط به سوت زنی" , href:"/"},
|
||||
{ id: 2, name: "ارسال گزارش در سامانه سوت زنی قوه قضاییه", href:"/" },
|
||||
{ id: 3, name: "وب سایت قوه قضاییه" , href:"/"},
|
||||
{ id: 4, name: " وب سایت ریاست جمهوری" , href:"/"},
|
||||
];
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
|
|
@ -26,6 +26,7 @@ module.exports = {
|
|||
gradient1: "#E44D26",
|
||||
gradient2: "#F16529 ",
|
||||
blue: "#003778",
|
||||
blue50: "#335F9380",
|
||||
yellow: "#F7A600",
|
||||
brown: "#D28249",
|
||||
gray:"#BFBFBF",
|
||||
|
|
|
|||
Loading…
Reference in New Issue