Optimize UI for Lighthouse audit
This commit is contained in:
parent
6b57cf209c
commit
e6bc059862
|
@ -4,6 +4,10 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Fakebook social media app, which reminds you Facebook and contains AI generated code to use AINIRO Magic backend"
|
||||||
|
/>
|
||||||
<title>fakebook-aigen</title>
|
<title>fakebook-aigen</title>
|
||||||
<!-- Start Single Page Apps for GitHub Pages -->
|
<!-- Start Single Page Apps for GitHub Pages -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -51,13 +51,17 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid lightgray;
|
border: 2px solid lightgray;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 10px;
|
overflow: hidden;
|
||||||
|
background: #000;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
|
padding-bottom: 56.25%;
|
||||||
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-player {
|
.react-player {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,14 +18,14 @@ const ProfileLink = (props) => {
|
||||||
color: "inherited",
|
color: "inherited",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Col xs="auto" className="px-2 ml-2">
|
<Col xs='auto' className='px-2 ml-2'>
|
||||||
<CircularImage
|
<CircularImage
|
||||||
size={size}
|
size={size}
|
||||||
url={profilePictureURL}
|
url={profilePictureURL}
|
||||||
isOnline={isOnline}
|
isOnline={isOnline}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
<Col className="align-self-center p-0" style={{ color: "inherited" }}>
|
<Col className='align-self-center p-0 text-dark'>
|
||||||
{bold === "true" ? <b>{name}</b> : name}
|
{bold === "true" ? <b>{name}</b> : name}
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -51,13 +51,13 @@ const TitleBar = () => {
|
||||||
return (
|
return (
|
||||||
<div className='titlebar bg-light'>
|
<div className='titlebar bg-light'>
|
||||||
<Navbar bg='light' className='p-0 nav-container'>
|
<Navbar bg='light' className='p-0 nav-container'>
|
||||||
<Navbar.Brand as={Link} to='/'>
|
<Navbar.Brand as={Link} to='/' aria-label='fakebook'>
|
||||||
<FaFacebook color='dodgerblue' fontSize='2em' className='mx-3' />
|
<FaFacebook color='dodgerblue' fontSize='2em' className='mx-3' />
|
||||||
</Navbar.Brand>
|
</Navbar.Brand>
|
||||||
<div style={{ width: "450px" }} className='spaceing' />
|
<div style={{ width: "450px" }} className='spaceing' />
|
||||||
<Nav className='w-75 justify-content-start mr-5'>
|
<Nav className='w-75 justify-content-start mr-5'>
|
||||||
<Nav.Item className='first'>
|
<Nav.Item className='first'>
|
||||||
<Link to='/' className='nav-link' ref={refs.home}>
|
<Link to='/' className='nav-link' ref={refs.home} aria-label='home'>
|
||||||
<VscHome
|
<VscHome
|
||||||
fontSize='2rem'
|
fontSize='2rem'
|
||||||
className='mx-4'
|
className='mx-4'
|
||||||
|
@ -66,7 +66,12 @@ const TitleBar = () => {
|
||||||
</Link>
|
</Link>
|
||||||
</Nav.Item>
|
</Nav.Item>
|
||||||
<Nav.Item>
|
<Nav.Item>
|
||||||
<Link to='/friends/list' className='nav-link' ref={refs.friends}>
|
<Link
|
||||||
|
to='/friends/list'
|
||||||
|
className='nav-link'
|
||||||
|
ref={refs.friends}
|
||||||
|
aria-label='friends list'
|
||||||
|
>
|
||||||
<FaUserFriends
|
<FaUserFriends
|
||||||
fontSize='2rem'
|
fontSize='2rem'
|
||||||
className='mx-4'
|
className='mx-4'
|
||||||
|
@ -75,7 +80,12 @@ const TitleBar = () => {
|
||||||
</Link>
|
</Link>
|
||||||
</Nav.Item>
|
</Nav.Item>
|
||||||
<Nav.Item>
|
<Nav.Item>
|
||||||
<Link to='/watch' className='nav-link' ref={refs.watch}>
|
<Link
|
||||||
|
to='/watch'
|
||||||
|
className='nav-link'
|
||||||
|
ref={refs.watch}
|
||||||
|
aria-label='videos'
|
||||||
|
>
|
||||||
<MdOndemandVideo
|
<MdOndemandVideo
|
||||||
fontSize='2rem'
|
fontSize='2rem'
|
||||||
className='mx-4'
|
className='mx-4'
|
||||||
|
|
Loading…
Reference in New Issue