Started massive refactoring, Removed halfmoon, Added new personnal common CSS, Site now runs at >5 fps on low-end

Update .gitignore, .htaccess, and 264 more files...
This commit is contained in:
2023-05-23 17:53:42 +02:00
parent e29987a7af
commit 8213ac8869
212 changed files with 2134 additions and 40548 deletions

314
index.php
View File

@@ -1,238 +1,94 @@
<?php
set_include_path('./commons/');
include_once 'config.php';
include_once 'langs.php';
$start_time = microtime(true);
set_include_path('./');
include_once 'commons/config.php';
include_once 'commons/langs.php';
?>
<!DOCTYPE html>
<html lang="<?php echo($user_language); ?>">
<head>
<?php include 'headers.php'; ?>
<title>Nibble Poker</title>
<meta name="description" content="<?php print(localize('home.intro.meta.description')); ?>">
<meta property="og:title" content="Nibble Poker" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<?php include 'commons/DOM/head.php'; ?>
<title><?php print(localize('home.head.title')); ?></title>
<meta name="description" content="<?php print(localize('home.head.description')); ?>">
<meta property="og:title" content="<?php print(localize('home.og.title')); ?>"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="<?php echo($host_uri . l10n_url_abs('/')); ?>"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/NibblePoker/images/logos/v2_opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="<?php print(localize('home.intro.meta.description')); ?>"/>
<meta property="og:description" content="<?php print(localize('home.og.description')); ?>"/>
</head>
<body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true">
<?php include 'body-root.php'; ?>
<div class="page-wrapper with-sidebar with-navbar-fixed-bottom">
<?php $SIDEBAR_ID = 'home'; include 'sidebar.php'; ?>
<div class="content-wrapper">
<div class="container-fluid">
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">
<h2 class="content-title font-size-24 mt-20 text-truncate">
<i class="fad fa-home"></i>&nbsp;<?php print(localize("home.title.header")); ?>
</h2>
<?php include 'header-lang.php'; ?>
</div>
<div class="row mx-auto w-95">
<!-- The "content mx-auto w-lg-p90" do not work for the parent, the cards are different ! -->
<div class="col-12 d-block">
<div class="content mb-0">
<div class="card p-0 m-0 card-bkgd">
<div class="content m-0">
<div class="px-card py-10 border-bottom px-20 bg-light-lm bg-very-dark-dm">
<div class="container-fluid">
<div class="row">
<div class="col-1 text-center"><i class="fad fa-alien-monster"></i></div>
<div class="col-10 text-center">
<h2 class="card-title font-size-18 m-0"><?php print(localize("home.intro.title")); ?></h2>
</div>
<div class="col-1 text-center"><i class="fad fa-alien-monster"></i></div>
</div>
</div>
</div>
<div class="content m-20">
<h2 class="content-title font-size-20 mb-10"></h2>
<p class="ml-lg-10 mt-lg-5 mb-lg-5"><?php print(localize("home.intro.text.1")); ?></p>
<p class="ml-lg-10 mt-lg-5"><?php print(localize("home.intro.text.2")); ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row mx-auto w-95">
<!--<div class="row mx-auto w-lg-p90">-->
<div class="col-sm-12 col-lg-8 table-cell">
<div class="content mb-0">
<div class="card p-0 m-0 card-bkgd">
<div class="content m-0">
<div class="px-card py-10 border-bottom px-20 bg-light-lm bg-very-dark-dm">
<div class="container-fluid">
<div class="row">
<div class="col-1"><i class="fad fa-computer-classic"></i></div>
<div class="col-10 text-center">
<h2 class="card-title font-size-18 m-0">Applications</h2>
</div>
<div class="col-1 text-right"><i class="fad fa-computer-classic"></i></div>
</div>
</div>
</div>
<div class="px-card py-5 px-20">
<div class="pl-lg-15 l-lab-dotnet">
<p class="mb-0 font-weight-semi-bold">
DotNet-ListComPort
<span class="ml-15 text-super-muted">
<i class="fab fa-windows"></i>
</span>
</p>
<p class="ml-5 mt-0">
Cli tool that lists COM ports in different parsable formats.<br>
<span class="pr-20">
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="https://github.com/aziascreations/DotNet-ListComPort">GitHub</a>
</span>
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="<?php echo(l10n_url_abs("/content/lscom-cli-dotnet")); ?>">Project's page</a>
</p>
</div>
<hr>
<div class="pl-lg-15 l-lab-web">
<p class="mb-0 font-weight-semi-bold">
Youtube-Auto-Archiver
<span class="ml-15 text-super-muted">
<i class="fab fa-windows"></i>&nbsp;
<i class="fab fa-linux"></i>&nbsp;
<i class="fab fa-docker"></i>
</span>
</p>
<p class="ml-5 mt-0">
Automatic archival solutions for YouTube livestreams and uploads.<br>
<span class="pr-20">
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="https://github.com/aziascreations/Youtube-Auto-Archiver">GitHub</a>
</span>
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="<?php echo(l10n_url_abs("/content/youtube-auto-archiver")); ?>">Project's page</a>
</p>
</div>
<hr>
<div class="pl-lg-15 l-lab-office">
<p class="mb-0 font-weight-semi-bold">
Excel-Worksheet-Password-Remover
<span class="ml-15 text-super-muted">
<i class="fab fa-chrome"></i>&nbsp;
<i class="fab fa-firefox-browser"></i>
</span>
</p>
<p class="ml-5 mt-0">
Web-based tool that simplifies the removal of passwords on Excel's Worksheet.<br>
<span class="pr-20">
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="https://github.com/aziascreations/Excel-Worksheet-Password-Remover">GitHub</a>
</span>
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="<?php echo(l10n_url_abs("/content/excel-worksheet-password-remover")); ?>">Project's page</a>
</p>
</div>
<hr>
<div class="pl-lg-15 l-lab-game">
<p class="mb-0 font-weight-semi-bold">
Minecraft - Expanded Iron Bundles
<span class="ml-15 text-super-muted">
<i class="fas fa-gamepad-alt"></i>
</span>
</p>
<p class="ml-5 mt-0">
A small Minecraft mod that provides bundles with more storage space, and new functionalities in the future.<br>
<span class="pr-20">
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="https://github.com/aziascreations/MC-Expanded-Iron-Bundles">GitHub</a>
</span>
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="<?php echo(l10n_url_abs("/content/mc-expanded-iron-bundles")); ?>">Project's page</a>
</p>
</div>
<hr>
<div class="pl-lg-15 l-lab-app">
<p class="mb-0 font-weight-semi-bold">
DotNet-Arguments
<span class="ml-15 text-super-muted">
<i class="fa fa-puzzle-piece"></i>&nbsp;
<i class="fab fa-windows"></i>&nbsp;
<i class="fab fa-linux"></i>&nbsp;
<i class="fab fa-docker"></i>
</span>
</p>
<p class="ml-5 mt-0">
A simple and 'to-the-point' library to parse launch arguments in .NET and .NET Core applications.<br>
<span class="pr-20">
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="https://github.com/aziascreations/DotNet-Arguments">GitHub</a>
</span>
<i class="fad fa-globe"></i>&nbsp;&nbsp;<a href="<?php echo(l10n_url_abs("/content/dotnet-arguments")); ?>">Project's page</a>
</p>
</div>
<a href="<?php print(l10n_url_abs('/content/')); ?>">
<div class="container-card-fold primary">
<i class="fas fa-angle-right r-45"></i>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-lg-4 table-cell"><!--d-none d-sm-block-->
<div class="content ml-lg-0">
<div class="card p-0 m-0 card-bkgd">
<div class="content m-0">
<div class="px-card py-10 border-bottom px-20 bg-light-lm bg-very-dark-dm">
<div class="container-fluid">
<div class="row">
<div class="col-1">
<i class="fad fa-pen-nib fa-flip-horizontal"></i>
</div>
<div class="col-10 text-center">
<h2 class="card-title font-size-18 m-0">Updates</h2>
</div>
<div class="col-1 text-right"><i class="fad fa-pen-nib"></i></div>
</div>
</div>
</div>
<div class="px-card py-5 px-20">
<p>
<span class="font-weight-bold">9th September 2022</span><br>
Moved to v6Node and updated privacy policy to reflect the changes.
</p>
<hr>
<p>
<span class="font-weight-bold">25th July 2022</span><br>
Finished setting up a public read-only Gitea instance for the projects.
</p>
<hr>
<p>
<span class="font-weight-bold">16th April 2022</span><br>
Finished the <i>"Project"</i> section
</p>
<hr>
<p>
<span class="font-weight-bold">18th March 2022</span><br>
Updated the privacy policy.
</p>
<hr>
<p>
<span class="font-weight-bold">28th February 2022</span><br>
Dropped OVH as our main web hosting provider, and switched to CloudFlare.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
</div>
<script src="/resources/HalfMoon/1.1.1/js/halfmoon.min.js"></script>
<script src="/resources/Azias/js/nibblepoker.lu.js"></script>
<body>
<?php
include 'commons/DOM/utils.php';
include 'commons/DOM/body-1.php';
$SIDEBAR_ID = 'home';
include 'commons/DOM/sidebar.php';
include 'commons/DOM/body-2.php';
?>
<header class="w-full p-m pl-s">
<h1 class="t-size-18 t-w-500">
<img src="/resources/Icons8/Fluent/console.svg" alt="todo" class="img-text">&nbsp;<?php print(localize("home.header.title")); ?>
</h1>
<?php //include 'header-lang.php'; ?>
</header>
<?php include 'commons/DOM/body-3.php'; ?>
<main id="main" class="rl-m border border-r-0 p-l">
<?php makeMainHeader(localize("home.intro.title")); ?>
<p class="mt-xs ml-s"><?php print(localize("home.intro.text.1")); ?></p>
<p class="mt-xs ml-s"><?php print(localize("home.intro.text.2")); ?></p>
<?php makeMainHeader("Applications"); ?>
<!-- If 'r-*' is used, 'o-hidden' needs to be too => https://stackoverflow.com/a/8582304 -->
<table class="stylish w-full mt-xs table-p-xs r-s o-hidden border">
<thead>
<tr>
<th>Version</th>
<th>Downloads</th>
<th>Downloads</th>
</tr>
</thead>
<tbody>
<tr>
<td>C11</td>
<td>C12</td>
<td>C13</td>
</tr>
<tr>
<td>C21</td>
<td>C22</td>
<td>C23</td>
</tr>
</tbody>
</table>
<?php makeMainHeader("Testing"); ?>
<p class="mt-xs ml-s"><?php print(localize("home.intro.text.1")); ?></p>
<br>
<button class="p-xs border r-s">aaa</button>
<br>
<input class="p-xs border r-s" type="text">
<br>
<?php makeMainHeader(localize("home.intro.title")); ?>
<p class="mt-xs ml-s">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed <span class="code">do eiusmod tempor</span> incididunt ut labore et dolore magna aliqua.<br>
Mauris ultrices eros in cursus turpis massa tincidunt dui.<br>
Pulvinar elementum integer enim neque. Nunc mi ipsum faucibus vitae aliquet nec.
</p>
</main>
<?php
include 'commons/DOM/body-4.php';
include 'commons/DOM/footer.php';
include 'commons/DOM/body-5.php';
include 'commons/DOM/scripts.php';
?>
</body>
</html>
<?php
$end_time = microtime(true);
if($print_execution_timer) {
echo("<!-- PHP execution took " . round(($end_time - $start_time) * 1000, 2) . " ms -->");
}
?>