Authentification fonctionnelle via security.lions.dev
This commit is contained in:
19
app/page.tsx
19
app/page.tsx
@@ -11,6 +11,7 @@ import { Button } from 'primereact/button';
|
||||
import { LayoutContext } from '../layout/context/layoutcontext';
|
||||
import { PrimeReactContext } from 'primereact/api';
|
||||
import type { ColorScheme } from '@/types';
|
||||
import { redirectToLogin } from '@/lib/auth';
|
||||
|
||||
const LandingPage = () => {
|
||||
const router = useRouter();
|
||||
@@ -110,7 +111,7 @@ const LandingPage = () => {
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onClick={() => window.location.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>
|
||||
@@ -168,7 +169,7 @@ const LandingPage = () => {
|
||||
<span className="font-semibold text-gray-800">Facturation automatisée</span>
|
||||
</div>
|
||||
</div>
|
||||
<a onClick={() => window.location.href = 'http://localhost:8080/api/v1/auth/login'} className="p-button text-white bg-orange-500 border-orange-500 font-bold border-round cursor-pointer mr-3 shadow-3" style={{ padding: '1.2rem 2.5rem', fontSize: '1.2rem' }}>
|
||||
<a onClick={() => redirectToLogin()} className="p-button text-white bg-orange-500 border-orange-500 font-bold border-round cursor-pointer mr-3 shadow-3" style={{ padding: '1.2rem 2.5rem', fontSize: '1.2rem' }}>
|
||||
<i className="pi pi-play mr-2"></i>
|
||||
Démarrer maintenant
|
||||
</a>
|
||||
@@ -469,7 +470,7 @@ const LandingPage = () => {
|
||||
</li>
|
||||
</ul>
|
||||
<Button
|
||||
onClick={() => window.location.href = 'http://localhost:8080/api/v1/auth/login'}
|
||||
onClick={() => redirectToLogin()}
|
||||
className="w-full p-button-outlined border-orange-300 text-orange-600 font-semibold py-3"
|
||||
>
|
||||
Commencer l'essai gratuit
|
||||
@@ -513,7 +514,7 @@ const LandingPage = () => {
|
||||
</li>
|
||||
</ul>
|
||||
<Button
|
||||
onClick={() => window.location.href = 'http://localhost:8080/api/v1/auth/login'}
|
||||
onClick={() => redirectToLogin()}
|
||||
className="w-full bg-cyan-500 border-cyan-500 text-white font-semibold py-3"
|
||||
>
|
||||
Démarrer maintenant
|
||||
@@ -554,7 +555,7 @@ const LandingPage = () => {
|
||||
</li>
|
||||
</ul>
|
||||
<Button
|
||||
onClick={() => window.location.href = 'http://localhost:8080/api/v1/auth/login'}
|
||||
onClick={() => redirectToLogin()}
|
||||
className="w-full p-button-outlined border-purple-300 text-purple-600 font-semibold py-3"
|
||||
>
|
||||
Nous contacter
|
||||
@@ -576,7 +577,7 @@ const LandingPage = () => {
|
||||
</p>
|
||||
<div className="flex flex-wrap justify-content-center gap-3">
|
||||
<Button
|
||||
onClick={() => window.location.href = 'http://localhost:8080/api/v1/auth/login'}
|
||||
onClick={() => redirectToLogin()}
|
||||
style={{
|
||||
backgroundColor: 'white',
|
||||
color: '#f97316',
|
||||
@@ -591,7 +592,7 @@ const LandingPage = () => {
|
||||
Essai gratuit 30 jours
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => window.location.href = 'http://localhost:8080/api/v1/auth/login'}
|
||||
onClick={() => redirectToLogin()}
|
||||
style={{
|
||||
backgroundColor: 'transparent',
|
||||
color: 'white',
|
||||
@@ -636,8 +637,8 @@ const LandingPage = () => {
|
||||
<ul className="list-none p-0">
|
||||
<li className="mb-2"><a href="#features" className="text-gray-300 hover:text-white">Fonctionnalités</a></li>
|
||||
<li className="mb-2"><a href="#pricing" className="text-gray-300 hover:text-white">Tarifs</a></li>
|
||||
<li className="mb-2"><a href="http://localhost:8080/api/v1/auth/login" className="text-gray-300 hover:text-white">Démo</a></li>
|
||||
<li className="mb-2"><a href="http://localhost:8080/api/v1/auth/login" className="text-gray-300 hover:text-white">Essai gratuit</a></li>
|
||||
<li className="mb-2"><a onClick={() => redirectToLogin()} className="text-gray-300 hover:text-white">Démo</a></li>
|
||||
<li className="mb-2"><a onClick={() => redirectToLogin()} className="text-gray-300 hover:text-white">Essai gratuit</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="col-6 md:col-3 mb-4">
|
||||
|
||||
Reference in New Issue
Block a user