45 lines
2.4 KiB
Plaintext
45 lines
2.4 KiB
Plaintext
<%- include("./partials/fileHeader") %>
|
|
<%- include("./partials/header") %>
|
|
|
|
<main class="pt-24 pb-14">
|
|
<!-- Buttons -->
|
|
<div class="flex justify-end gap-4 px-5 py-6">
|
|
<a href="/assets?popup"
|
|
class="text-center cursor-pointer min-w-[150px] bg-green-600 px-4 py-2 text-white rounded hover:bg-green-800"
|
|
type="button">Add Asset</a>
|
|
<a href="/newPlan"
|
|
class="text-center cursor-pointer min-w-[150px] bg-green-600 px-4 py-2 text-white rounded hover:bg-green-800"
|
|
type="button">Create new plan </a>
|
|
</div>
|
|
<div class="w-full">
|
|
<div class="mb-12 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-y-4 gap-x-6">
|
|
<% if (plans.length === 0) { %>
|
|
<div class="col-span-1 col-start-2 ml-28 mt-25">
|
|
<div class="w-86 p-4 bg-white rounded-lg shadow-xl border border-slate-200">
|
|
<h1 class="text-2xl block text-center font-semibold text-slate-700">Don't have any retirement plans? </h1>
|
|
<div class="mt-4 flex justify-center items-center">
|
|
<div class="mt-4 flex justify-center">
|
|
<a href="/plans" class="cursor-pointer border-2 border-blue-600 bg-blue-600 text-white py-2 px-6
|
|
rounded-md hover:bg-blue-700 hover:border-blue-700 font-semibold
|
|
transition-colors duration-200 focus:outline-none focus:ring-2
|
|
focus:ring-blue-500 focus:ring-offset-2">Make one</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<% } else %>
|
|
<% plans.forEach(plan=> { %>
|
|
<%- include('./partials/dashboardBox.ejs', {thing: plan}) %>
|
|
<% }); %>
|
|
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<script src="/static/scripts/dollarFormat.js"></script>
|
|
|
|
<%- include("./partials/navBar") %>
|
|
<%- include("./partials/scriptLoader") %>
|
|
<%- include("./partials/footer") %>
|