diff --git a/app/blogs/page.js b/app/blogs/page.js
new file mode 100644
index 0000000..6a82c98
--- /dev/null
+++ b/app/blogs/page.js
@@ -0,0 +1,12 @@
+import BlogsPage from '@/components/blogs'
+import Layout from '@/components/layout'
+
+function Blogs() {
+ return (
+
+
+
+ )
+}
+
+export default Blogs
\ No newline at end of file
diff --git a/app/globals.css b/app/globals.css
index ecd3c15..edde379 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -193,6 +193,26 @@ body {
color: #EFEFEF;
}
+.cover-head-blogs {
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.07) 31.47%, rgba(0, 0, 0, 0.31) 59.72%, rgba(0, 0, 0, 0.70) 89.39%);
+ border-radius: 16px;
+ position: relative;
+ overflow: hidden;
+}
+
+.cover-head-blogs img {
+ width: 100%;
+}
+
+.cover-head-blogs p {
+ position: absolute;
+ bottom: 32px;
+ right: 24px;
+ color: #FAFAFA;
+ font-size: 24px;
+ font-weight: 700;
+}
+
@keyframes openx {
0% {
width: 0;
diff --git a/app/layout.js b/app/layout.js
index 470b948..461ccec 100644
--- a/app/layout.js
+++ b/app/layout.js
@@ -10,7 +10,7 @@ export default function RootLayout({ children }) {
return (
- {children}
+ {children}
);
diff --git a/app/specialties/page.js b/app/specialties/page.js
index 3b37acb..99db238 100644
--- a/app/specialties/page.js
+++ b/app/specialties/page.js
@@ -1,7 +1,7 @@
import Layout from '@/components/layout';
import SpecialtiesPage from '@/components/specialties';
-function Doctors() {
+function Specialties() {
return (
@@ -9,4 +9,4 @@ function Doctors() {
)
}
-export default Doctors
\ No newline at end of file
+export default Specialties
\ No newline at end of file
diff --git a/components/blogs/Head.js b/components/blogs/Head.js
new file mode 100644
index 0000000..e1c14b7
--- /dev/null
+++ b/components/blogs/Head.js
@@ -0,0 +1,47 @@
+import Image from 'next/image'
+import React from 'react'
+
+function Head() {
+ return (
+
+
+
+
روش های خانگی محافظت از پوست در تابستان
+
+
+
+
+
+
فواید نوشیدن آب برای سلامتی
+
+
+
+
راهکارهای ساده برای درمان سر درد
+
+
+
+
+
تغذیه مناسب برای کاهش فشار خون
+
+
+
+ )
+}
+
+export default Head
\ No newline at end of file
diff --git a/components/blogs/index.js b/components/blogs/index.js
new file mode 100644
index 0000000..1e82359
--- /dev/null
+++ b/components/blogs/index.js
@@ -0,0 +1,15 @@
+import Head from "./Head";
+import Title from "./title";
+import LatestArticles from "./latestArticles";
+
+function BlogsPage() {
+ return (
+
+
+
+
+
+ )
+}
+
+export default BlogsPage
\ No newline at end of file
diff --git a/components/blogs/latestArticles/Article.js b/components/blogs/latestArticles/Article.js
new file mode 100644
index 0000000..b6854b1
--- /dev/null
+++ b/components/blogs/latestArticles/Article.js
@@ -0,0 +1,28 @@
+import Image from 'next/image'
+import Link from 'next/link';
+
+function Article({ data }) {
+ return (
+
+
+
+
+
+
+
{data.title}
+
+
+
تاریخ انتشار: {data.date_of_release}
+
زمان مطالعه: {data.time}
+
+
+
+ )
+}
+
+export default Article;
\ No newline at end of file
diff --git a/components/blogs/latestArticles/index.js b/components/blogs/latestArticles/index.js
new file mode 100644
index 0000000..a39cf5c
--- /dev/null
+++ b/components/blogs/latestArticles/index.js
@@ -0,0 +1,20 @@
+import articles from '@/data/articles.json';
+import Article from "./Article";
+
+function LatestArticles() {
+ return (
+
+
جدیدترین مقاله ها
+
+ {articles.map(item => (
+
+ ))}
+
+
+ )
+}
+
+export default LatestArticles
\ No newline at end of file
diff --git a/components/blogs/title/ItemTitle.js b/components/blogs/title/ItemTitle.js
new file mode 100644
index 0000000..45633c5
--- /dev/null
+++ b/components/blogs/title/ItemTitle.js
@@ -0,0 +1,20 @@
+import { Button } from "@mui/material"
+
+function ItemTitle({ name, idx, activeBtn, setActiveBtn }) {
+
+ return (
+
+ )
+}
+
+export default ItemTitle
\ No newline at end of file
diff --git a/components/blogs/title/index.js b/components/blogs/title/index.js
new file mode 100644
index 0000000..8153ac2
--- /dev/null
+++ b/components/blogs/title/index.js
@@ -0,0 +1,26 @@
+'use client';
+import { useState } from "react";
+import ItemTitle from "./ItemTitle";
+
+const listTitle = ['سلامت روان', 'پوست و مو', 'کودک و نوجوان', 'دارو', 'تغذیه'];
+
+function Title() {
+
+ const [activeBtn, setActiveBtn] = useState(0);
+
+ return (
+
+ {listTitle.map((name, idx) => (
+
+ ))}
+
+ )
+}
+
+export default Title
\ No newline at end of file
diff --git a/components/layout/Footer.js b/components/layout/Footer.js
index 5f7973c..325a4d5 100644
--- a/components/layout/Footer.js
+++ b/components/layout/Footer.js
@@ -9,6 +9,7 @@ import LocationF from "../icons/LocationF";
import CalendarAddF from "../icons/CalendarAddF";
import StethoscopeF from "../icons/StethoscopeF";
import Logo from "@/app/component/Logo";
+import { Button } from "@mui/material";
const socialMedias = [
,
@@ -34,7 +35,11 @@ function Footer() {
{head.map((item, idx) => (
-
+
{item.icon}
{item.text}
diff --git a/components/layout/index.js b/components/layout/index.js
index 0e97f63..ac1309a 100644
--- a/components/layout/index.js
+++ b/components/layout/index.js
@@ -12,7 +12,7 @@ function Layout({ children, title, name }) {
{children}
-