defmodule CvGenView.Education do use Phoenix.Component use CvGen.RegenerateOnCompilation alias CvGenView.{Text, Date} attr(:institution, :string, required: true) attr(:location, :string, required: true) attr(:start_date, :string, required: true) attr(:end_date, :string, required: true) attr(:summary, :string, required: true) def education(assigns) do ~H"""

<%= @institution %>

<%= @area %>

""" end # TODO: Almost the same as in Work heading, but not quite. def css(), do: """ .education h1, .education h2, .education p { margin: 0; } .education .box { display: flex; flex-direction: column; gap: 0.5em; background-color: #eee; padding: 0.5em; margin-bottom: 1em; } .education .box > h1 { font-weight: bold; } .education .box > h2 { font-weight: normal; padding-left: 0.5em; } .education .box > p { font-weight: lighter; padding-left: 0.5em; } """ end