refactor: backgrounds

This commit is contained in:
Baoshuo Ren 2022-09-24 06:58:20 +08:00
parent 6caffead0e
commit b50b3ee67c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 30 additions and 15 deletions

View File

@ -65,18 +65,27 @@
<?php endif ?>
</div>
</div>
<?php if (Auth::check() && isNormalUser($myUser)): ?>
<div class="mt-4">
<h4><?= UOJLocale::get('top solver') ?></h4>
<?php echoRanklist(array('echo_full' => true, 'top10' => true, 'by_accepted' => true)) ?>
<div class="text-center">
<a href="/solverlist"
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
class="text-decoration-none"
<?php endif ?>
><?= UOJLocale::get('view all') ?></a>
<?php if (Auth::check()): ?>
<?php if (isNormalUser($myUser)): ?>
<div class="mt-4 card">
<div class="card-body">
<h4 class="card-title"><?= UOJLocale::get('top solver') ?></h4>
<?php echoRanklist(array(
'echo_full' => true,
'top10' => true,
'by_accepted' => true,
'table_classes' => array('table', 'text-center'),
)) ?>
<div class="text-center">
<a href="/solverlist"
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
class="text-decoration-none"
<?php endif ?>
><?= UOJLocale::get('view all') ?></a>
</div>
</div>
</div>
<?php endif ?>
<?php else: ?>
<div class="mt-4 card card-default">
<div class="card-body text-center">
@ -91,7 +100,7 @@
</div>
<div class="card card-default mt-4">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card-header">
<div class="card-header bg-white">
<b>倒计时</b>
</div>
<?php endif ?>
@ -127,7 +136,7 @@
</div>
<div class="card card-default mt-4">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card-header">
<div class="card-header bg-white">
<b>友情链接</b>
</div>
<?php endif ?>

View File

@ -6,7 +6,13 @@
}
?>
<div class="navbar navbar-light navbar-expand-md bg-light mb-4" role="navigation">
<div class="navbar navbar-light navbar-expand-md
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
bg-white shadow-sm
<?php else: ?>
bg-light
<?php endif ?>
mb-4" role="navigation">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="container">
<?php endif ?>

View File

@ -6,7 +6,7 @@
</div>
<?php if ($ShowPageFooter): ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<footer class="bg-light text-muted pt-3 pb-4 mt-4" style="font-size: 0.9em">
<footer class="bg-white text-muted pt-3 pb-4 mt-4" style="font-size: 0.9em">
<div class="container d-lg-flex justify-content-lg-between">
<p>
&copy; <?= date('Y') ?>

View File

@ -237,7 +237,7 @@
</script>
</head>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<body class="d-flex flex-column min-vh-100">
<body class="d-flex flex-column min-vh-100 bg-light">
<?php else: ?>
<body>
<?php endif ?>