Compare commits
2 Commits
7d722f1435
...
70996ad7dc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70996ad7dc | ||
|
|
183be258b5 |
|
|
@ -3,13 +3,17 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/App/Logo.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/App/Logo.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/App/Logo.png" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||
|
||||
<title>React-ts</title>
|
||||
<title>Misbar</title>
|
||||
</head>
|
||||
<script type="module" src="/src/index.tsx"></script>
|
||||
|
||||
|
|
|
|||
BIN
public/App/Logo.png
Normal file
BIN
public/App/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
|
|
@ -2,9 +2,9 @@ import React, { useState, ReactNode, ReactElement } from 'react';
|
|||
import type { DrawerProps } from 'antd';
|
||||
import { Drawer, Space } from 'antd';
|
||||
|
||||
interface WithDrawerProps {
|
||||
interface WithDrawerProps extends DrawerProps {
|
||||
button: React.ReactNode;
|
||||
children: (props: { closeDrawer: () => void }) => ReactElement;
|
||||
children: any;
|
||||
title: string;
|
||||
className?: string;
|
||||
width?: string;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ const Footer = ({data, isLoading}:THeaderPage) => {
|
|||
<div className='contact_links_section'>
|
||||
<FooterTItleWithSeparator title="Contact Us"/>
|
||||
<div className='media_container_info'>
|
||||
|
||||
<div className='single_contact_info'>
|
||||
<MediaButton isStatic={true} img={MdLocalPhone}/>
|
||||
<ContactInfo
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@ const Header = ({data, isLoading}:THeaderPage) => {
|
|||
<div className='header_container'>
|
||||
|
||||
<div className='image_container'>
|
||||
{ isLoading ? <Spinner/> :
|
||||
|
||||
{
|
||||
isLoading ? <Spinner/> :
|
||||
<img src={BaseURL_IMAGE + Logo?.value} alt='Misbar Logo' width={65}/>
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@ import Footer from '../Footer';
|
|||
import { useFetchData } from '../../Hooks/useFetchData';
|
||||
|
||||
const Layout = (({ children, className = "" }: { children: React.ReactNode, className?: string }) => {
|
||||
|
||||
const { data, isLoading } = useFetchData('api/home');
|
||||
|
||||
return (
|
||||
<div className='Layout'>
|
||||
<Header data={data} isLoading={isLoading} />
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
export const BaseURL = `http://127.0.0.1:8000/`
|
||||
// export const BaseURL = `http://127.0.0.1:8000/`
|
||||
export const BaseURL = `http://misbar-back.point-dev.net/`
|
||||
|
||||
export const BaseURL_IMAGE = BaseURL.slice(0,-1);
|
||||
|
|
|
|||
|
|
@ -4,5 +4,4 @@ interface HedaerLinksProps {
|
|||
icon:any,
|
||||
isOnlyDrawer?:boolean,
|
||||
closeDrawer?: () => void;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
"include": [
|
||||
"src",
|
||||
"**/*.ts",
|
||||
"src/Components/Theme2.tsx",
|
||||
"src/auto-imports.d.ts" // Include the auto-imports.d.ts file here
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user