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

View File

@ -6,7 +6,7 @@
</div> </div>
<?php if ($ShowPageFooter): ?> <?php if ($ShowPageFooter): ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?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"> <div class="container d-lg-flex justify-content-lg-between">
<p> <p>
&copy; <?= date('Y') ?> &copy; <?= date('Y') ?>

View File

@ -237,7 +237,7 @@
</script> </script>
</head> </head>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?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: ?> <?php else: ?>
<body> <body>
<?php endif ?> <?php endif ?>