text: import { html } from '../../node_modules/lit-html/lit-html.js';
  
  const homeTemplate = () => html`
  <section id="welcome">
      <div id="welcome-container">
          <h1>Welcome To Meme Lounge</h1>
          <img src="/images/welcome-meme.jpg" alt="meme">
          <h2>Login to see our memes right away!</h2>
          <div id="button-div">
              <a href="/login" class="button">Login</a>
              <a href="/register" class="button">Register</a>
          </div>
      </div>
  </section>`;
  
  export async function homePage(ctx) {
      const token = sessionStorage.getItem('authToken');
      if (token != null){
          return ctx.page.redirect('/catalog');
      }
      ctx.render(homeTemplate());
  }
  