Authentification fonctionnelle via security.lions.dev
This commit is contained in:
@@ -12,6 +12,7 @@ import { Button } from 'primereact/button';
|
||||
import { LayoutContext } from '../../layout/context/layoutcontext';
|
||||
import { PrimeReactContext } from 'primereact/api';
|
||||
import type { ColorScheme, Page } from '@/types';
|
||||
import { redirectToLogin } from '@/lib/auth';
|
||||
|
||||
const LandingPage: Page = () => {
|
||||
const { layoutConfig, setLayoutConfig } = useContext(LayoutContext);
|
||||
@@ -140,13 +141,13 @@ const LandingPage: Page = () => {
|
||||
</StyleClass>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://localhost:8080/api/v1/auth/login" className="p-ripple flex m-0 md:ml-5 md:px-0 px-3 py-3 text-gray-800 font-medium line-height-3 hover:text-gray-800 cursor-pointer">
|
||||
<a onClick={() => redirectToLogin()} className="p-ripple flex m-0 md:ml-5 md:px-0 px-3 py-3 text-gray-800 font-medium line-height-3 hover:text-gray-800 cursor-pointer">
|
||||
<span>Connexion</span>
|
||||
<Ripple />
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://localhost:8080/api/v1/auth/login" className="p-ripple flex m-0 md:ml-5 md:px-0 px-3 py-3 text-gray-800 font-medium line-height-3 hover:text-gray-800 cursor-pointer">
|
||||
<a onClick={() => redirectToLogin()} className="p-ripple flex m-0 md:ml-5 md:px-0 px-3 py-3 text-gray-800 font-medium line-height-3 hover:text-gray-800 cursor-pointer">
|
||||
<span>Inscription</span>
|
||||
<Ripple />
|
||||
</a>
|
||||
@@ -182,7 +183,7 @@ const LandingPage: Page = () => {
|
||||
Bienvenue sur BTP Xpress
|
||||
</h1>
|
||||
<h2 className="mt-0 font-medium text-4xl text-gray-700">Votre plateforme de gestion BTP moderne</h2>
|
||||
<a href="http://localhost:8080/api/v1/auth/login" className="p-button text-gray-700 bg-cyan-500 border-cyan-500 font-bold border-round" style={{ mixBlendMode: 'multiply', padding: ' 0.858rem 1.142rem' }}>
|
||||
<a onClick={() => redirectToLogin()} className="p-button text-gray-700 bg-cyan-500 border-cyan-500 font-bold border-round" style={{ mixBlendMode: 'multiply', padding: ' 0.858rem 1.142rem' }}>
|
||||
<span className="p-button-text">Commencer</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user