Commit cb23497c authored by Matthieu BONNOT's avatar Matthieu BONNOT
Browse files

Changement de la page d'accueil

parent 53d77191
Pipeline #56733 passed with stages
in 6 minutes and 33 seconds
......@@ -88,6 +88,12 @@
<version>1.7.32</version>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>2.1.1</version>
</dependency>
</dependencies>
<dependencyManagement>
......
package com.ippon.livretaccueil;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......@@ -7,6 +8,7 @@ import org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication
@EnableEncryptableProperties
@EnableAutoConfiguration(exclude={H2ConsoleAutoConfiguration.class})
public class LivretAccueilApplication {
......
......@@ -14,9 +14,9 @@ error.message=Error Loading
# DATABASE
#######################################################
#Basic Spring Boot Config for Oracle
spring.datasource.url= jdbc:oracle:thin:@//10.0.255.40:1521/SXPREP
spring.datasource.username=everwin_ro
spring.datasource.password=bTzt3cblWqsrc7or
spring.datasource.url= jdbc:oracle:thin:@//10.0.255.40:1521/SXPROD
spring.datasource.username=ENC(v4NcZgmKua0c8K7QUXpj7Z5X8JQVnWTt)
spring.datasource.password=ENC(dLYooYcEGTxsKEaMfuizUP5840jhjSw6gorI0DuqmXI=)
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
#hibernate config
spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
......@@ -30,3 +30,4 @@ keycloak.realm=camel-real
keycloak.resource=meltingpoc
keycloak.principal-attribute=preferred_username
keycloak.credentials.secret=e0500553-7334-432d-bac5-99e317c54244
jasypt.encryptor.password=iPPonkeycloak2021
\ No newline at end of file
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<!-- Redirection instantanée vers le livret d'accueil propre à l'agence du collaborateur !-->
<meta http-equiv='refresh' th:content="'0; URL=/articulate/' + ${agence} + '/content/index.html'">
</head>
<!-- Page qui s'affiche avant la redirection auto. Peut être utile en cas de sécu du client évitant les redirections -->
<head >
<meta charset="UTF-8">
<title>Livret Accueil</title>
<link href="../static/style.css" th:href="@{/style.css}" rel="stylesheet" />
</head>
<body th:style="'background:url('+ @{/images/accueil.png} +'); background-repeat: no-repeat, repeat; background-size: cover;'">
<div class="ecranAccueil">
<div class="center">
<h1> Bienvenue chez Ippon </h1>
<a th:href="@{'/articulate/'+ ${agence}+'/content/index.html'}">Commencer</a>
</div>
</div>
</body>
<head>
<!-- Redirection instantanée vers le livret d'accueil propre à l'agence du collaborateur! -->
<meta http-equiv='refresh' th:content="'0; URL=/articulate/' + ${agence} + '/content/index.html'">
<meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<title>Livret Accueil - Redirection vers votre agence.</title>
<link href="../static/style.css" th:href="@{/style.css}" rel="stylesheet"/>
</head>
<!-- Page qui s'affiche avant la redirection auto. Peut être utile en cas de sécu du client évitant les redirections -->
<body>
<div class="text-center">
</br>
</br>
<h1> Bienvenue chez Ippon </h1>
<img src="../images/logo_ippon.png" th:src="@{/images/logo_ippon.png}"/>
<div class="d-flex justify-content-center">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</br>
<h2>Redirection vers le livret de votre agence en cours...</h2>
</br>
<h2>(si rien ne se passe cliquez <a th:href="@{'/articulate/'+ ${agence}+'/content/index.html'}">ici</a>)</h2>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
crossorigin="anonymous"></script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment