diff --git a/app/components/Landing.tsx b/app/components/Landing.tsx index 9a1e25b..ecb6201 100644 --- a/app/components/Landing.tsx +++ b/app/components/Landing.tsx @@ -1,61 +1,162 @@ "use client"; import React from "react"; import Navbar from "../../components/Navbar"; -import { boxItems } from "@/constants"; +import Counter from "../../components/Counter"; +import SubmitRequest from "../../components/SubmitRequest"; +import { boxItems, newsItems } from "@/constants"; import Image from "next/image"; import { cn } from "@/lib/utils"; +import Link from "next/link"; +import bgimg from "../../public/img/bg.png"; export default function Landing() { return (
+ bg
-
-
- {boxItems.map((item) => { +
+
+ {boxItems.map((item, index) => { return ( -
-

{item.name}

+
+

+ {item.description} +

+

+ {item.name} +

+ icon + + icon
); })}
+ + {/* News */}
آخرین اخبار
-
-
- picture -
+
+ {/* Right News */} +
+
+ picture +
+ +
+

+ اخبار +

+

+ 24 آذر ماه 1402 +

+

+ شروع به کار سامانه سوت زنی +

+

+ این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور + مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده + است ... +

+ + بیشتر بخوانید{" "} + +
-
-
-
+ {/* Left News */} +
+ {newsItems.map((item, index) => { + return ( +
+
+

+ {item.title} +

+

+ {item.date} +

+
+

+ {item.content} +

+
+ ); + })}
+ + {/* Counter */} + + + {/*SubmitRequest */} +
); } diff --git a/components/Counter.tsx b/components/Counter.tsx new file mode 100644 index 0000000..00ea1db --- /dev/null +++ b/components/Counter.tsx @@ -0,0 +1,84 @@ +import React from 'react' +import { counterItems } from '@/constants' +// import patern from "../public/img/paternSvg.png" + +// Import Swiper React components +import { Swiper, SwiperSlide } from 'swiper/react'; +// Import Swiper styles +import 'swiper/css'; +import 'swiper/css/pagination'; +// import required modules +import { Pagination } from 'swiper/modules'; + +export default function Counter() { + return ( +
+
+
+ {counterItems.map((item) => { + return ( +
+

{item.count}

+

{item.name}

+
+ ); + })} +{/* + + {counterItems.map((item) => { + return ( + +

{item.count}

+

{item.name}

+
+ ); + })} + + {/* Slide 1 */} + + {/*
*/} + + +
+ + +
+
+ ) +} diff --git a/components/Navbar.tsx b/components/Navbar.tsx index c67cca7..6a97cf1 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -7,7 +7,7 @@ import { Button } from "./ui/button"; export default function Navbar() { return ( -
+

سال 1402 | مهارم تورم، رشد تولید @@ -18,7 +18,7 @@ export default function Navbar() { className=" h-9 bg-gray-300 border-none focus-visible:none w-64 rounded-xl" placeholder="جستجو..." /> -

+ ) +} diff --git a/constants/index.tsx b/constants/index.tsx index b6d66ef..ca19ccc 100644 --- a/constants/index.tsx +++ b/constants/index.tsx @@ -7,7 +7,46 @@ export const menuItems = [ ]; export const boxItems = [ - { id: 1, name: "ثبت شکایت", icon: "/img/box1.svg" }, - { id: 2, name: "پیگیری شکایت", icon: "/img/box2.svg" }, - { id: 3, name: "مشاهده آمار", icon: "/img/box3.svg" }, + { id: 1, name: "ثبت شکایت", icon: "/img/box1.svg" , icon2: "/img/box1-hover.svg" , description:"ارسال درخواست نارضایتی از پرسنل"}, + { id: 2, name: "پیگیری شکایت", icon: "/img/box2.svg" , icon2: "/img/box2-hover.svg" , description:"پیگیری درخواست ارسال شده" }, + { id: 3, name: "مشاهده آمار", icon: "/img/box3.svg" , icon2: "/img/box3-hover.svg" , description:"مشاهده آمار و گزارشات درخواست ها" }, +]; + +export const newsItems = [ + { + id: 1, + title: "شروع به کار سامانه سوت زنی", + content: + "این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده است ...", + date: "24 آذر ماه 1402", + }, + { + id: 2, + title: "شروع به کار سامانه سوت زنی", + content: + "این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده است ...", + date: "24 آذر ماه 1402", + }, + { + id: 3, + title: "شروع به کار سامانه سوت زنی ", + content: + "این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده است ...", + date: "24 آذر ماه 1402", + }, +]; + +export const counterItems = [ + { id: 1, name: "تعداد گزارشات ارسال شده", count: "1041+" }, + { id: 2, name: "تعداد گزارشات ارسال شده", count: "1041+" }, + { id: 3, name: "تعداد گزارشات ارسال شده", count: "1041+" }, + { id: 4, name: "تعداد گزارشات ارسال شده", count: "1041+" }, + { id: 5, name: "تعداد گزارشات ارسال شده", count: "1041+" }, +]; + +export const requestItems = [ + { id: 1, name: "درخواست از طرف شهروند" }, + { id: 2, name: "دریافت کد رهگیری" }, + { id: 3, name: "بررسی توسط بازرس شهرداری" }, + { id: 4, name: " اعلام نتیجه درخواست" }, ]; diff --git a/package-lock.json b/package-lock.json index dfe1298..76186cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "react-dom": "^18", "react-hook-form": "^7.48.2", "react-icons": "^4.12.0", + "swiper": "^11.0.5", "tailwind-merge": "^2.0.0", "tailwindcss-animate": "^1.0.7" }, @@ -3982,6 +3983,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/swiper": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-11.0.5.tgz", + "integrity": "sha512-rhCwupqSyRnWrtNzWzemnBLMoyYuoDgGgspAm/8iBD3jCvAWycPLH4Z3TB0O5520DHLzMx94yUMH/B9Efpa48w==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "engines": { + "node": ">= 4.7.0" + } + }, "node_modules/tailwind-merge": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.0.0.tgz", diff --git a/package.json b/package.json index d666aa1..537e8ea 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "react-dom": "^18", "react-hook-form": "^7.48.2", "react-icons": "^4.12.0", + "swiper": "^11.0.5", "tailwind-merge": "^2.0.0", "tailwindcss-animate": "^1.0.7" }, diff --git a/public/img/Connector line.svg b/public/img/Connector line.svg new file mode 100644 index 0000000..c6dae84 --- /dev/null +++ b/public/img/Connector line.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/img/box1-hover.svg b/public/img/box1-hover.svg new file mode 100644 index 0000000..90b4d9e --- /dev/null +++ b/public/img/box1-hover.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/public/img/box2-hover.svg b/public/img/box2-hover.svg new file mode 100644 index 0000000..a5089f9 --- /dev/null +++ b/public/img/box2-hover.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/public/img/box3-hover.svg b/public/img/box3-hover.svg new file mode 100644 index 0000000..63a173b --- /dev/null +++ b/public/img/box3-hover.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/public/img/patern.svg b/public/img/patern.svg new file mode 100644 index 0000000..8250638 --- /dev/null +++ b/public/img/patern.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/img/paternSvg.png b/public/img/paternSvg.png new file mode 100644 index 0000000..250b336 Binary files /dev/null and b/public/img/paternSvg.png differ diff --git a/tailwind.config.js b/tailwind.config.js index 1584525..c932c34 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -19,12 +19,16 @@ module.exports = { backgroundImage: { mainBg: "url('/img/bg.png')", }, + screens: { + "3xl": "1600px", + }, colors: { gradient1: "#E44D26", gradient2: "#F16529 ", blue: "#003778", yellow: "#F7A600", brown: "#D28249", + gray:"#BFBFBF", border: "hsl(var(--border))", input: "hsl(var(--input))", ring: "hsl(var(--ring))",