From ef691e0b45aed46438d33e8dfcbaa07d4ada7d58 Mon Sep 17 00:00:00 2001 From: ehsan gheychisaz Date: Sat, 27 Apr 2024 22:49:14 +0330 Subject: [PATCH] add new section --- pages/[regular].js | 2 +- pages/index.js | 194 +++++++++++++++++++++++++------------- styles/cloudanimetion.css | 8 +- 3 files changed, 131 insertions(+), 73 deletions(-) diff --git a/pages/[regular].js b/pages/[regular].js index 3ac1b3b..51b5107 100755 --- a/pages/[regular].js +++ b/pages/[regular].js @@ -25,7 +25,7 @@ const RegularPages = ({ data }) => { ) : layout === "contact" ? ( - ) : layout === "pricing" ? ( + ) : layout === "products" ? ( ) : layout === "faq" ? ( diff --git a/pages/index.js b/pages/index.js index 3d0fd2a..de5d6f3 100644 --- a/pages/index.js +++ b/pages/index.js @@ -3,12 +3,15 @@ import Base from "@layouts/Baseof"; import Cta from "@layouts/components/Cta"; import { markdownify } from "@lib/utils/textConverter"; import Image from "next/image"; +import pic1 from "../public/images/blog-1.jpg" import Link from "next/link"; import { Autoplay, Pagination } from "swiper"; import { Swiper, SwiperSlide } from "swiper/react"; import "swiper/swiper.min.css"; import { getListPage } from "../lib/contentParser"; +import { useEffect, useRef, useState } from "react"; + const Home = ({ frontmatter }) => { const { banner, feature, services, workflow, call_to_action } = frontmatter; const { title } = config.site; @@ -43,65 +46,8 @@ const Home = ({ frontmatter }) => { */} -
-
-
-
-
-
-
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-

{banner.title}

-

{markdownify(banner.content)}

-
-
-
- {/* Features */} - {/*
-
-
-

{markdownify(feature.title)}

-
-
- {feature.features.map((item, i) => ( -
- {item.icon && ( - - )} -
- {markdownify(item.name, "h3", "h5")} -

{item.content}

-
-
- ))} -
-
-
*/} - + {/* services */} {/* {services.map((service, index) => { const isOdd = index % 2 > 0; @@ -163,23 +109,135 @@ const Home = ({ frontmatter }) => { ); })} */} - {/* workflow */} - {/*
-
- {markdownify( - workflow.title, - "h2", - "mx-auto max-w-[400px] font-bold leading-[44px]" - )} - {markdownify(workflow.description, "p", "mt-3")} +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+

orem ipsum dolor sit amet, consectetur adipiscing elit. Proin vitae lorem nec urna faucibus bibendum. Nam scelerisque, orci ac vehicula malesuada, justo elit blandit velit, nec gravida risus

+
+ + +
+
+
+ +
+

+ محصولات پرطرفدار +

+
+
+ + +
+
+ + +
+
+
+ +
+
+ +
+ + +
+
+
+
+
+
+
+

{markdownify(feature.title)}

+
+
+ {feature.features.map((item, i) => ( +
+ {item.icon && ( + + )} +
+ {markdownify(item.name, "h3", "h5")} +

{item.content}

+
+
+ ))} +
+
+ +
+
+
+
+
+
+
+ {/*
+
+
+ +
+
+
+ +
+
+
*/} +
+ {/*
+
+

{banner.title}

+

{markdownify(banner.content)}

+
+
*/} +
+ + {/* workflow */} +
+ {/*
+
+

حهت دریافت مشاوره

+
+ +
+
+ +
+
+
*/} workflow image -
*/} +
{/* Cta */} {/* */} diff --git a/styles/cloudanimetion.css b/styles/cloudanimetion.css index 26a32d8..6353e93 100644 --- a/styles/cloudanimetion.css +++ b/styles/cloudanimetion.css @@ -2,7 +2,7 @@ background: rgb(10 168 167 / var(--tw-text-opacity)); color: #333; font: 100% Arial, Sans Serif; - height: 100vh; + height: 104vh; width: 100%; margin: 0; padding: 0; @@ -25,7 +25,7 @@ @-webkit-keyframes animateCloud { 0% { - margin-left: -300%; + margin-left: -500%; } 100% { margin-left: 100%; @@ -34,7 +34,7 @@ @-moz-keyframes animateCloud { 0% { - margin-left: -300%; + margin-left: -500%; } 100% { margin-left: 100%; @@ -43,7 +43,7 @@ @keyframes animateCloud { 0% { - margin-left: -300%; + margin-left: -500%; } 100% { margin-left: 100%;