5 Commits

Author SHA1 Message Date
victorAnumudu 87e94ea6f3 added a function to change bg color 2023-04-08 00:40:47 +01:00
tokslaw 3ba58286c0 Merge branch 'cover_image' of FloatSystems/float-fleet into master 2023-04-07 04:00:41 +00:00
victorAnumudu 2a30337a0c added cover bg image 2023-04-07 00:15:57 +01:00
DESKTOP-GBA0BK8\Admin 1a06e3c49a Home page edit 2023-04-05 20:39:32 -04:00
tokslaw 00f09fe3ec Merge branch 'auth-customization' of FloatSystems/float-fleet into master 2023-04-05 21:25:07 +00:00
3 changed files with 45 additions and 54 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

+44 -53
View File
@@ -1,10 +1,44 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import {useEffect} from 'react'
import {useEffect, useState} from 'react'
import {Outlet, Link} from 'react-router-dom'
import {toAbsoluteUrl} from '../../../_res/helpers'
const AuthLayout = () => {
// INITIAL STATE FOR BACKGROUND IMAGE
let [bgImage, setBgImage] = useState({
filter: 'grayscale(0%)'
})
// FUNCTION TO CHANGE BACKGROUND IMAGE
let changeBg = () => {
// let randomNum = Math.round(Math.random() * 3)
let randomNum = Number(localStorage.getItem('bg-num'))
if(randomNum){
if(randomNum <= 1){
setBgImage({
filter: 'grayscale(0%)'
})
localStorage.setItem('bg-num', '2')
}else if(randomNum <= 2){
setBgImage({
// filter: 'hue-rotate(90deg)'
filter: 'grayscale(100%)'
})
localStorage.setItem('bg-num', '3')
}else{
setBgImage({
filter: 'sepia(50%)'
})
localStorage.setItem('bg-num', '1')
}
}else{
localStorage.setItem('bg-num', '2')
}
}
useEffect(() => {
changeBg() // FUNCTION TO CHANGE BACKGROUND IMAGE
const root = document.getElementById('root')
if (root) {
root.style.height = '100%'
@@ -16,14 +50,15 @@ const AuthLayout = () => {
}
}, [])
return (
<div className='d-flex flex-column flex-lg-row flex-column-fluid h-100'>
return (
<div className='position-relative d-flex flex-column flex-lg-row flex-column-fluid overflow-hidden' style={{minHeight: '100vh'}}>
<img src={toAbsoluteUrl('/media/misc/float-sample.jpg')} alt="" className='position-absolute top-0 left-0 w-auto h-100' style={{filter: bgImage.filter}}/>
{/* begin::Body */}
<div className='d-flex flex-column flex-lg-row-fluid w-lg-50 p-10 order-2 order-lg-1'>
<div className='position-relative d-flex flex-column flex-lg-row-fluid w-lg-50 p-10 order-2 order-lg-1'>
{/* begin::Form */}
<div className='d-flex flex-center flex-column flex-lg-row-fluid'>
{/* begin::Wrapper */}
<div className='w-lg-500px p-10'>
<div className='w-lg-500px p-10 bg-white rounded'>
<Outlet />
</div>
{/* end::Wrapper */}
@@ -35,19 +70,19 @@ const AuthLayout = () => {
{/* begin::Links */}
<div className='d-flex fw-semibold text-primary fs-base'>
<a href='http://float-www.dev.chiefsoft.net' className='px-5' target='_blank'>
<a href='http://float-www.dev.chiefsoft.net' className='px-5 text-white fw-bolder' target='_blank'>
Home
</a>
<a href={process.env.REACT_APP_TERMS_LINK} className='px-5' target='_blank'>
<a href={process.env.REACT_APP_TERMS_LINK} className='px-5 text-white fw-bolder' target='_blank'>
Terms
</a>
<a href={process.env.REACT_APP_CONTACT_LINK} className='px-5' target='_blank'>
<a href={process.env.REACT_APP_CONTACT_LINK} className='px-5 text-white fw-bolder' target='_blank'>
Contact Us
</a>
<a href={process.env.REACT_APP_ABOUT_LINK} className='px-5' target='_blank'>
<a href={process.env.REACT_APP_ABOUT_LINK} className='px-5 text-white fw-bolder' target='_blank'>
About Us
</a>
</div>
@@ -57,51 +92,7 @@ const AuthLayout = () => {
</div>
{/* end::Body */}
{/* begin::Aside */}
<div
className='d-flex flex-lg-row-fluid w-lg-50 bgi-size-cover bgi-position-center order-1 order-lg-2'
style={{backgroundColor: '#f59fa7'}}
>
{/* begin::Content */}
<div className='d-flex flex-column flex-center py-15 px-5 px-md-15 w-100'>
{/* begin::Logo */}
<Link to='/' className='mb-12'>
<img alt='Float Mobility' src={toAbsoluteUrl('/media/logos/logo.png')} className='h-35px' />
</Link>
{/* end::Logo */}
{/* begin::Image */}
<img
className='mx-auto w-275px w-md-50 w-xl-500px mb-10 mb-lg-20 auth-aside'
src={toAbsoluteUrl('/media/misc/car-dash.png')}
alt=''
/>
{/* end::Image */}
{/* begin::Title */}
<h1 className='text-white fs-2qx fw-bolder text-center mb-7'>
Fast, Efficient and Productive
</h1>
{/* end::Title */}
{/* begin::Text */}
<div className='text-white fs-base text-center'>
In this kind of post,{' '}
<a href='#' className='opacity-75-hover text-warning fw-bold me-1'>
the blogger
</a>
introduces a person theyve interviewed <br /> and provides some background information
about
<a href='#' className='opacity-75-hover text-warning fw-bold me-1'>
the interviewee
</a>
and their <br /> work following this is a transcript of the interview.
</div>
{/* end::Text */}
</div>
{/* end::Content */}
</div>
{/* end::Aside */}
</div>
)
}
+1 -1
View File
@@ -23,7 +23,7 @@ const loginSchema = Yup.object().shape({
const initialValues = {
email: 'johndoe@email.com',
password: 'demo',
password: '****',
}
/*