+
@@ -11,27 +14,22 @@ function Hero() {
-
+
آرامش را در
هر لحظه
تجربه کنید
-
-
- آراملند دستیار شخصی شما برای یافتن آرامش درونی. با مدیتیشنهای اختصاصی،
- موسیقی آرامشبخش و راهنماییهای حرفهای.
-
-
+
-
+ {/*
شروع کنید رایگان
-
-
+ */}
+ scrollToSectionWithHeader('what-you-can-do')} className=" bg-gradient-to-r from-primary-500 to-primary-600 border-2 text-white font-bold py-4 px-8 rounded-2xl hover:border-primary-200 hover:text-primary-50 transition-all duration-300">
مشاهده ویژگیها
@@ -40,11 +38,11 @@ function Hero() {
مورد اعتماد هزاران کاربر
-
★ ۴.۹
-
-
+۱۰۰۰ دانلود
-
-
۹۸٪ رضایت
+
★ ۴.۹
+
+
+۱۰۰۰ دانلود
+
+
۹۸٪ رضایت
diff --git a/app/components/WhatYouCanDo.jsx b/app/components/WhatYouCanDo.jsx
index 8c9df0d..99b5b7d 100644
--- a/app/components/WhatYouCanDo.jsx
+++ b/app/components/WhatYouCanDo.jsx
@@ -49,7 +49,7 @@ function WhatYouCanDo() {
];
return (
-
+
{/* Section Header */}
@@ -57,7 +57,7 @@ function WhatYouCanDo() {
قابلیتهای اصلی
- هر آنچه برای آرامش نیاز داری
+ اینجا زندگی آسون تر میشه
ابزارهای متنوع و تخصصی برای رسیدن به آرامش در هر شرایطی
@@ -109,14 +109,14 @@ function WhatYouCanDo() {
{/* Bottom CTA */}
-
+ {/*
بیش از ۱۰۰۰ کاربر از این ویژگیها استفاده میکنند
کشف همه قابلیتها
-
+
*/}
);
}
diff --git a/app/favicon.ico b/app/favicon.ico
deleted file mode 100644
index 718d6fe..0000000
Binary files a/app/favicon.ico and /dev/null differ
diff --git a/app/hooks/useScroll.js b/app/hooks/useScroll.js
new file mode 100644
index 0000000..3b8d22f
--- /dev/null
+++ b/app/hooks/useScroll.js
@@ -0,0 +1,40 @@
+// hooks/useScroll.js
+import { useCallback } from 'react';
+
+export const useScroll = () => {
+ const scrollToSection = useCallback((sectionId, offset = 0) => {
+ if (typeof window === 'undefined') return;
+
+ const element = document.getElementById(sectionId);
+
+ if (element) {
+ const elementPosition = element.getBoundingClientRect().top;
+ const offsetPosition = elementPosition + window.pageYOffset - offset;
+
+ window.scrollTo({
+ top: offsetPosition,
+ behavior: 'smooth'
+ });
+ }
+ }, []);
+
+ const scrollToSectionWithHeader = useCallback((sectionId) => {
+ const headerOffset = 80; // Adjust based on your header height
+ scrollToSection(sectionId, headerOffset);
+ }, [scrollToSection]);
+
+ const scrollToTop = useCallback(() => {
+ if (typeof window === 'undefined') return;
+
+ window.scrollTo({
+ top: 0,
+ behavior: 'smooth'
+ });
+ }, []);
+
+ return {
+ scrollToSection,
+ scrollToSectionWithHeader,
+ scrollToTop
+ };
+};
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
index 9b470e0..ad1d947 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -4,13 +4,11 @@ import './globals.css';
export const metadata: Metadata = {
title: 'آراملند | تمرین تنفسی و مدیتیشن',
description: 'لحظهای آرام بگیر، زندگی را حس کن',
+ icons: {
+ icon: '/favicon.png',
+ },
};
-
+
export default function RootLayout({
children,
}: {
diff --git a/public/favicon.png b/public/favicon.png
new file mode 100644
index 0000000..f717562
Binary files /dev/null and b/public/favicon.png differ
diff --git a/public/images/appstore.png b/public/images/appstore.png
new file mode 100644
index 0000000..3ef9867
Binary files /dev/null and b/public/images/appstore.png differ
diff --git a/public/images/cafe.png b/public/images/cafe.png
new file mode 100644
index 0000000..69a6fda
Binary files /dev/null and b/public/images/cafe.png differ
diff --git a/public/images/myket.png b/public/images/myket.png
new file mode 100644
index 0000000..9e55faa
Binary files /dev/null and b/public/images/myket.png differ