Fixed the problem with the calendar, and font sizes in the header and the body.

main
Zed A. Shaw 2 years ago
parent a06f48a68d
commit 7b6bcfc5cc
  1. 1
      api/problems.js
  2. 6
      client/Header.svelte
  3. 3
      client/components/Calendar.svelte
  4. 3
      client/pages/Problems.svelte

@ -54,7 +54,6 @@ export const get = async (req, res) => {
const api = new API(req, res); const api = new API(req, res);
try { try {
log.debug(reply_data);
api.reply(200, reply_data); api.reply(200, reply_data);
} catch (error) { } catch (error) {
log.error(error); log.error(error);

@ -49,9 +49,8 @@
<header class:fixed> <header class:fixed>
<nav> <nav>
{#if $user.authenticated} {#if $user.authenticated}
<a href="/intro/" use:link id="logo">Leet</a> <a href="/" use:link id="logo">PP</a>
<ul> <ul>
<li>Premium</li>
<li><a href="/client/#/explore/">Explore</a></li> <li><a href="/client/#/explore/">Explore</a></li>
<li><a href="/client/#/problems/">Problems</a></li> <li><a href="/client/#/problems/">Problems</a></li>
{#if $user.admin } {#if $user.admin }
@ -60,10 +59,9 @@
</ul> </ul>
{:else} {:else}
<!-- don't use:link because we want them to go to the landing page if they aren't logged in. --> <!-- don't use:link because we want them to go to the landing page if they aren't logged in. -->
<a href="/intro/" use:link id="logo">Leet</a> <a href="/" use:link id="logo">PP</a>
<ul> <ul>
{#if register_enabled} {#if register_enabled}
<li>Premium</li>
<li><a href="/client/#/explore/">Explore</a></li> <li><a href="/client/#/explore/">Explore</a></li>
<li><a href="/client/#/problems/">Problems</a></li> <li><a href="/client/#/problems/">Problems</a></li>
{/if} {/if}

@ -88,8 +88,7 @@
calendar day { calendar day {
background-color: var(--color-bg-secondary); background-color: var(--color-bg-secondary);
font-weight: bold; font-weight: bold;
padding-left: 0.3rem; text-align: center;
padding-right: 0.3rem;
} }
calendar month { calendar month {

@ -146,8 +146,7 @@
</bottom> </bottom>
</card> </card>
<shape style="--w: 300px; --h: 350px; --value: 7; --text: 1;"> <Calendar/>
</shape>
<card> <card>
<top><h6>Companies</h6></top> <top><h6>Companies</h6></top>

Loading…
Cancel
Save