package components import "github.com/moh682/portfolio/domain" import "slices" import "strings" templ experienceCard(exp domain.Experience) { { exp.Job.Title } { exp.Company.Name } { exp.Duration() } { exp.GetStartDate() } - { exp.GetEndDate() } { exp.Company.City } for _, stack := range slices.Concat(exp.Job.FrontendStack, exp.Job.BackendStack, exp.Job.InfrastructureStack) { @techStack(stack) } About { exp.Company.Name } for _, description := range strings.Split(exp.Company.Description, "\n") { { description } } Role & Responsibilities { exp.Job.Description } } templ ExperiencesPage(experiences []domain.Experience) { @rootLayout() { for _, exp := range experiences { @experienceCard(exp) } } }
{ exp.Duration() }
{ exp.GetStartDate() } - { exp.GetEndDate() }
{ description }