parent
e2ced4e464
commit
b7da60714d
11 changed files with 147 additions and 72 deletions
File diff suppressed because one or more lines are too long
@ -1,25 +1,48 @@ |
|||||||
|
import { Button } from '../comps/button.jsx'; |
||||||
import { useText } from '../utils/usetext.jsx'; |
import { useText } from '../utils/usetext.jsx'; |
||||||
|
import { useNavigate, useLocation } from 'react-router-dom'; |
||||||
|
|
||||||
|
|
||||||
|
export default function About({showContact, onClose}) { |
||||||
|
|
||||||
|
const navigate=useNavigate(); |
||||||
|
|
||||||
export default function About() { |
|
||||||
const { getText } = useText(); |
const { getText } = useText(); |
||||||
|
|
||||||
return ( |
return ( |
||||||
<main className="z-10 fixed top-0 left-0 right-0 bg-black text-white min-h-screen flex flex-col !justify-start !items-stretch !gap-[2.63rem]"> |
<main className="z-10 absolute top-0 left-0 right-0 min-h-[100dvh] !justify-start bg-black text-white overflow-y-auto py-[3.12rem]"> |
||||||
<div className='flex flex-col gap-[1.38rem]'> |
<div className='flex-1 flex flex-col justify-between items-stretch !gap-[1.44rem]'> |
||||||
<h1>{getText('title_about')}</h1> |
<div className='flex flex-col gap-[1.38rem] flex-1 flex flex-col justify-start'> |
||||||
<p>{getText('content_about')}</p> |
<div className='text-[1.125rem] leading-[1.25rem] py-[1rem] uppercase tracking-[0.0225rem] text-center '> |
||||||
</div> |
<b>{getText('title')}</b> / {getText('content_credits')} |
||||||
<div className='flex flex-col gap-[1.38rem]'> |
|
||||||
<h1>{getText('title_credits')}</h1> |
|
||||||
<p>{getText('content_credits')}</p> |
|
||||||
</div> |
</div> |
||||||
<div className='flex flex-col gap-[1.38rem]'> |
<p className='px-[1.53rem] whitespace-pre-line'>{getText('content_about')}</p> |
||||||
|
|
||||||
|
{showContact &&( |
||||||
|
<div className='px-[1.53rem] flex flex-col gap-[0.62rem] my-[3rem] items-center'> |
||||||
<h1>{getText('title_share')}</h1> |
<h1>{getText('title_share')}</h1> |
||||||
<span className='flex flex-row gap-[0.5rem] items-center'> |
<span className='flex flex-row gap-[0.5rem] items-center'> |
||||||
<span className='p-[0.06rem]'><img className='w-[1rem]' src="letter.svg "/></span> |
<span className='p-[0.06rem]'><img className='w-[1rem]' src="letter.svg "/></span> |
||||||
<a className='underline' href="mailto:contact@ultracombos.com">contact@ultracombos.com</a> |
<a className='underline' href="mailto:contact@ultracombos.com">contact@ultracombos.com</a> |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
|
)} |
||||||
|
</div> |
||||||
|
{/* <div className='flex flex-col gap-[1.38rem]'> |
||||||
|
<h1>{getText('title_credits')}</h1> |
||||||
|
<p>{getText('content_credits')}</p> |
||||||
|
</div> */} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Button onClick={()=>{ |
||||||
|
if(typeof onClose === 'function') onClose(); |
||||||
|
else navigate('/keywords'); |
||||||
|
}}> |
||||||
|
{getText('button_next')} |
||||||
|
</Button> |
||||||
|
</div> |
||||||
</main> |
</main> |
||||||
); |
); |
||||||
} |
} |
||||||
|
|||||||
Loading…
Reference in new issue