message if no plans
This commit is contained in:
1 parent
dd1ad02b32
commit
436e242cf1
4 files changed
+37
-11
No files matched your search
+19
-2
@@ -13,9 +13,26 @@
|
||||
</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">
|
||||
<% plans.forEach(plan=> { %>
|
||||
<% 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-indigo-600 bg-indigo-600 text-white py-2 px-6
|
||||
rounded-md hover:bg-indigo-700 hover:border-indigo-700 font-semibold
|
||||
transition-colors duration-200 focus:outline-none focus:ring-2
|
||||
focus:ring-indigo-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>
|
||||
|
||||
Reference in new issue
Block a user