44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
import { lang } from "../index.js";
|
|
import AbstractView from './abstracts/AbstractView.js'
|
|
|
|
export default class extends AbstractView {
|
|
constructor(params)
|
|
{
|
|
super(params, 'DashboardTitle');
|
|
}
|
|
|
|
async getHtml()
|
|
{
|
|
let textList = ["On push demain les gars", "Cacamille", "kroussar powered", "Dédicace Drougard", "<a href=\"https://cdn.discordapp.com/attachments/1198285289236463699/1239665998135558225/nerd.jpg?ex=6644692d&is=664317ad&hm=a7062b0db956154b69bad091357ef57d65b6b7dd4d11741c3efabcaf23936853&\" style=\"color: var(--bs-body-color); text-decoration: none;\">Adrien</a> fait le css stp", "Fait avec conviction(s)", "Conviction et panache", "Etienne met pas de caleçon", "🍆🍆💧"];
|
|
let text = textList[Math.floor(Math.random() * textList.length)];
|
|
return /* HTML */ `
|
|
<style>
|
|
body { height: 100vh; background-image: url(/static/js/imgs/ponge.gif); background-repeat: no-repeat;
|
|
background-attachment: fixed;
|
|
background-position: center;
|
|
background-size: 100vw 100vh; overflow-y: hidden; }
|
|
|
|
|
|
.center {
|
|
margin: auto;
|
|
width: 100%;
|
|
text-align : center;
|
|
padding: 10px;
|
|
}
|
|
.bottom-right {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
padding: 5px;
|
|
}
|
|
</style>
|
|
<div class="center">
|
|
<p style="font-size : 100px">BOZO PONG</p>
|
|
</div>
|
|
<div class="bottom-right">
|
|
${text}
|
|
</div>
|
|
`;
|
|
}
|
|
}
|