2024-11-08 18:33:02 +02:00
|
|
|
defmodule Website.ProjectsPage do
|
|
|
|
use Tableau.Page,
|
|
|
|
layout: Website.PageLayout,
|
|
|
|
permalink: "/projects",
|
|
|
|
title: "Projects"
|
|
|
|
|
|
|
|
use Phoenix.Component
|
|
|
|
|
|
|
|
def template(assigns) do
|
|
|
|
~H"""
|
2024-11-08 19:01:09 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
2024-11-08 18:33:02 +02:00
|
|
|
<%= for type <- @data["projects"] do %>
|
|
|
|
<div :for={{status, projects} <- type}>
|
2024-11-08 19:01:09 +02:00
|
|
|
<h2><%= status %></h2>
|
|
|
|
<div>
|
2024-11-08 18:33:02 +02:00
|
|
|
<div :for={project <- projects}>
|
|
|
|
<%= if project["link"] do %>
|
|
|
|
<a href={project["link"]}><%= project["name"] %></a>
|
|
|
|
<% else %>
|
|
|
|
<%= project["name"] %>
|
|
|
|
<% end %>
|
|
|
|
<p class="mt-0 text-sm">
|
|
|
|
<%= project["description"] %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
end
|