Skip to content

Home Information - Your home, your data, organized.

Python
1.3 KB
Raw Blame
{% extends "pages/interstitial_page.html" %}
{% load static %}

{% block interstitial_content %}
<div>
  <div class="display-4" style="font-size: clamp(2rem, 5vw, 5rem);">Welcome!</div>
  <p class="lead mt-2 mb-4" style="font-size: clamp(1rem, 2.5vw, 2rem);">
    Choose your type of home to get started.
  </p>
  
  <!-- Home Profile Selection -->
  <div class="profile-selection-container">
    {% for profile_type in profile_type_list %}
    <form method="post" action="{% url 'profiles_initialize_predefined' profile_type %}"
          style="display: inline-block;"
          data-async="modal">
      {% csrf_token %}
      <button type="submit" class="profile-button">
        <img src="{% static 'img/profiles/'|add:profile_type.icon_filename %}" 
             alt="{{ profile_type.label }}" class="profile-icon">
        <span class="profile-label">{{ profile_type.label }}</span>
      </button>
    </form>
    {% endfor %}
  </div>
  
  <!-- Start from Scratch Option -->
  <div class="text-center mt-4">
    <p class="text-muted small mb-2">Want to customize everything yourself?</p>
    <a href="{% url 'profiles_initialize_custom' %}" 
       class="start-empty-link" 
       data-async="modal">
      <img src="{% static 'img/hi-gear.svg' %}" alt="Customize" class="empty-layout-icon">
      Start with an empty layout
    </a>
  </div>
</div>
{% endblock %}