update Header
This commit is contained in:
parent
6dd71dcb5b
commit
efc4bac978
1250
dist/index.js
vendored
1250
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@ -1,17 +1,18 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React from "react";
|
|
||||||
import { Box, HStack, Image, Text, VStack } from "@chakra-ui/react";
|
import { Box, HStack, Image, Text, VStack } from "@chakra-ui/react";
|
||||||
|
import biLogo from "../assets/bi-logo.webp";
|
||||||
|
|
||||||
function HeaderRoot({ children, ...props }) {
|
function HeaderRoot({ children, dir = "rtl", ...props }) {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
as="header"
|
as="header"
|
||||||
|
dir={dir}
|
||||||
w="100%"
|
w="100%"
|
||||||
h="110px"
|
h="110px"
|
||||||
borderBottom="1px"
|
borderBottom="1px"
|
||||||
borderColor="gray.200"
|
borderColor="gray.200"
|
||||||
bg="blue.400"
|
bg="#4299E1"
|
||||||
px="20px"
|
px="20px"
|
||||||
zIndex={10}
|
zIndex={10}
|
||||||
position="fixed"
|
position="fixed"
|
||||||
@ -63,7 +64,7 @@ function Description({ children, ...props }) {
|
|||||||
return <Text {...props}>{children}</Text>;
|
return <Text {...props}>{children}</Text>;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Bi({ logoSrc = "/logob.png", ...props }) {
|
function Bi({ logoSrc = biLogo, ...props }) {
|
||||||
return (
|
return (
|
||||||
<VStack
|
<VStack
|
||||||
w="fit-content"
|
w="fit-content"
|
||||||
@ -72,7 +73,7 @@ function Bi({ logoSrc = "/logob.png", ...props }) {
|
|||||||
py="10px"
|
py="10px"
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<Image src={logoSrc} loading="lazy" />
|
<Image src={logoSrc} loading="lazy" maxW="90px" />
|
||||||
<Text fontSize="xs" fontWeight="bold" textAlign="center">
|
<Text fontSize="xs" fontWeight="bold" textAlign="center">
|
||||||
مؤسسه تولید سیستمهای خبره و هوشمند اسلامی باقرالعلوم(ع)
|
مؤسسه تولید سیستمهای خبره و هوشمند اسلامی باقرالعلوم(ع)
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user