Compare commits
No commits in common. "main" and "dev" have entirely different histories.
|
|
@ -3,17 +3,13 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<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
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Web site created using create-react-app"
|
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">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||||
|
|
||||||
<title>Misbar</title>
|
<title>React-ts</title>
|
||||||
</head>
|
</head>
|
||||||
<script type="module" src="/src/index.tsx"></script>
|
<script type="module" src="/src/index.tsx"></script>
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
|
|
@ -3,7 +3,7 @@ import { CustomTitleProps } from '../../type/app';
|
||||||
|
|
||||||
const CustomTitle = ({title}:CustomTitleProps) => {
|
const CustomTitle = ({title}:CustomTitleProps) => {
|
||||||
|
|
||||||
const {t} = useTranslation();
|
const {t} = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='Custom_Title'>
|
<div className='Custom_Title'>
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import React, { useState, ReactNode, ReactElement } from 'react';
|
||||||
import type { DrawerProps } from 'antd';
|
import type { DrawerProps } from 'antd';
|
||||||
import { Drawer, Space } from 'antd';
|
import { Drawer, Space } from 'antd';
|
||||||
|
|
||||||
interface WithDrawerProps extends DrawerProps {
|
interface WithDrawerProps {
|
||||||
button: React.ReactNode;
|
button: React.ReactNode;
|
||||||
children: any;
|
children: (props: { closeDrawer: () => void }) => ReactElement;
|
||||||
title: string;
|
title: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
width?: string;
|
width?: string;
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ const Footer = ({data, isLoading}:THeaderPage) => {
|
||||||
<div className='contact_links_section'>
|
<div className='contact_links_section'>
|
||||||
<FooterTItleWithSeparator title="Contact Us"/>
|
<FooterTItleWithSeparator title="Contact Us"/>
|
||||||
<div className='media_container_info'>
|
<div className='media_container_info'>
|
||||||
|
|
||||||
<div className='single_contact_info'>
|
<div className='single_contact_info'>
|
||||||
<MediaButton isStatic={true} img={MdLocalPhone}/>
|
<MediaButton isStatic={true} img={MdLocalPhone}/>
|
||||||
<ContactInfo
|
<ContactInfo
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,7 @@ const Header = ({data, isLoading}:THeaderPage) => {
|
||||||
<div className='header_container'>
|
<div className='header_container'>
|
||||||
|
|
||||||
<div className='image_container'>
|
<div className='image_container'>
|
||||||
|
{ isLoading ? <Spinner/> :
|
||||||
{
|
|
||||||
isLoading ? <Spinner/> :
|
|
||||||
<img src={BaseURL_IMAGE + Logo?.value} alt='Misbar Logo' width={65}/>
|
<img src={BaseURL_IMAGE + Logo?.value} alt='Misbar Logo' width={65}/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,7 @@ import Footer from '../Footer';
|
||||||
import { useFetchData } from '../../Hooks/useFetchData';
|
import { useFetchData } from '../../Hooks/useFetchData';
|
||||||
|
|
||||||
const Layout = (({ children, className = "" }: { children: React.ReactNode, className?: string }) => {
|
const Layout = (({ children, className = "" }: { children: React.ReactNode, className?: string }) => {
|
||||||
|
|
||||||
const { data, isLoading } = useFetchData('api/home');
|
const { data, isLoading } = useFetchData('api/home');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='Layout'>
|
<div className='Layout'>
|
||||||
<Header data={data} isLoading={isLoading} />
|
<Header data={data} isLoading={isLoading} />
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import ReactPlayer from 'react-player';
|
||||||
import { useFetchData } from '../../Hooks/useFetchData';
|
import { useFetchData } from '../../Hooks/useFetchData';
|
||||||
|
|
||||||
const SingleProjectPage = () => {
|
const SingleProjectPage = () => {
|
||||||
const { id } = useParams<{ id: string }>();
|
const { id } = useParams<{ id: string }>();
|
||||||
const { data, isLoading} = useFetchData('api/project');
|
const { data, isLoading} = useFetchData('api/project');
|
||||||
|
|
||||||
const [playing, setPlaying] = useState(false);
|
const [playing, setPlaying] = useState(false);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
// export const BaseURL = `http://127.0.0.1:8000/`
|
export const BaseURL = `http://127.0.0.1:8000/`
|
||||||
export const BaseURL = `https://misbar-back.point-dev.net/`
|
|
||||||
|
|
||||||
export const BaseURL_IMAGE = BaseURL.slice(0,-1);
|
export const BaseURL_IMAGE = BaseURL.slice(0,-1);
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,5 @@ interface HedaerLinksProps {
|
||||||
icon:any,
|
icon:any,
|
||||||
isOnlyDrawer?:boolean,
|
isOnlyDrawer?:boolean,
|
||||||
closeDrawer?: () => void;
|
closeDrawer?: () => void;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export type THeaderLink = {
|
||||||
isMulti?:boolean,
|
isMulti?:boolean,
|
||||||
extraText?:string,
|
extraText?:string,
|
||||||
extraLink?:string,
|
extraLink?:string,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type THeaderPage = {
|
export type THeaderPage = {
|
||||||
isHaveHeader?: boolean;
|
isHaveHeader?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
"include": [
|
"include": [
|
||||||
"src",
|
"src",
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
|
"src/Components/Theme2.tsx",
|
||||||
"src/auto-imports.d.ts" // Include the auto-imports.d.ts file here
|
"src/auto-imports.d.ts" // Include the auto-imports.d.ts file here
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user