Skip to content

Commit b764173

Browse files
committed
update
1 parent 84b0757 commit b764173

6 files changed

Lines changed: 34 additions & 6 deletions

File tree

public/fonts/Rokh-Bold.woff2

79.7 KB
Binary file not shown.

src/components/templates/firstpage/HeaderFirstPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const HeaderFirstPage = () => {
1313
initial={{ opacity: 0, scale: 0 }}
1414
animate={{ opacity: 1, scale: 1 }}
1515
transition={{ duration: 0.3, delay: 0.3 }}
16-
className="w-[50%] text-center font-bold text-[56px] text-dark-yellow mt-0 whitespace-nowrap"
16+
className="w-[50%] text-center font-bold text-[56px] text-dark-yellow whitespace-nowrap font-rokh mt-5"
1717
>
18-
متاورس رنک
18+
متاورس رنگ
1919
</motion.h1>
2020
<motion.div
2121
initial={{ opacity: 0, scale: 0 }}

src/components/utils/fonts.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ export const azarMehr = localFont({
4545
],
4646
variable: "--font-font-azar",
4747
});
48+
49+
export const rokh = localFont({
50+
src: [
51+
{
52+
path: "./../../../public/fonts/Rokh-Bold.woff2",
53+
weight: "950",
54+
style: "bold",
55+
},
56+
],
57+
variable: "--font-font-rokh",
58+
});

src/pages/[lang]/index.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@ import LastContent from "@/components/templates/firstpage/LastContent";
1717
import DetailsEducationSection from "@/components/templates/firstpage/DetailsEducationSection";
1818
import VersionSection from "@/components/templates/firstpage/VersionSection";
1919
import Image from "next/image";
20+
import BaseLayout from "@/components/BaseLayout";
2021

2122
type IndexProps = {};
2223

23-
const Index: React.FC<IndexProps> = ({ footerTabs }: any) => {
24+
const Index: React.FC<IndexProps> = ({
25+
profileData,
26+
titleData,
27+
nameSite,
28+
localSite,
29+
error,
30+
nameUser,
31+
footerTabs,
32+
}: any) => {
2433
const { languageSelected } = useContext(LangContext);
2534
const [themeDataActive, setThemeDataActive] = useState<any>("dark");
35+
const [showLogOut, setShowLogOut] = useState<boolean>(false);
2636

2737
return (
2838
<>
@@ -33,7 +43,12 @@ const Index: React.FC<IndexProps> = ({ footerTabs }: any) => {
3343
dir={languageSelected.dir}
3444
className={`overflow-auto relative `}
3545
>
36-
<BaseLayoutEducation>
46+
<BaseLayout
47+
profileData={profileData}
48+
error={error}
49+
titleData={titleData}
50+
setShowLogOut={setShowLogOut}
51+
>
3752
<section
3853
className={`w-full relative flex flex-col justify-start overflow-x-clip overflow-y-auto items-center bg-[#f8f8f8] dark:bg-[#2F2D28] bg-opacity20 `}
3954
>
@@ -132,7 +147,7 @@ const Index: React.FC<IndexProps> = ({ footerTabs }: any) => {
132147
<DynamicFooter footerTabs={footerTabs} />
133148
</div>
134149
</section>
135-
</BaseLayoutEducation>
150+
</BaseLayout>
136151
</section>
137152
</>
138153
);

src/pages/_app.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import AuthProvider from "@/context/AuthContext";
88
import { TokenProvider } from "@/components/context/TokenContext";
99
//FONTS
1010
import { azarMehr } from "@/utils/fonts";
11+
import { rokh } from "@/utils/fonts";
1112

1213
export default function App({ Component, pageProps }: AppProps) {
1314
return (
1415
<ThemeProvider defaultTheme="dark" enableSystem={false} attribute="class">
1516
<LangProvider>
1617
<TokenProvider>
1718
<AuthProvider>
18-
<main className={`${azarMehr.variable}`}>
19+
<main className={`${azarMehr.variable} ${rokh.variable}`}>
1920
<SidebarProvider>
2021
<Component {...pageProps} />
2122
</SidebarProvider>

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ module.exports = {
7979
extend: {
8080
fontFamily: {
8181
azarMehr: ["var(--font-font-azar)"],
82+
rokh: ["var(--font-font-rokh)"],
8283
},
8384
boxShadow: {
8485
"3xl": "0px 35px 60px 15px rgba(0, 0, 0, 0.6)",

0 commit comments

Comments
 (0)