mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +00:00
refactor: backgrounds
This commit is contained in:
parent
6caffead0e
commit
b50b3ee67c
@ -65,10 +65,17 @@
|
||||
<?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)) ?>
|
||||
<?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'])): ?>
|
||||
@ -77,6 +84,8 @@
|
||||
><?= 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 ?>
|
||||
|
@ -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 ?>
|
||||
|
@ -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>
|
||||
© <?= date('Y') ?>
|
||||
|
@ -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 ?>
|
||||
|
Loading…
Reference in New Issue
Block a user