Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
822 B

  1. {{define "header"}}
  2. <header class="heading">
  3. {{if .Letterhead}}
  4. <img src="data:image/png;base64,{{.Letterhead}}" />
  5. {{end}}
  6. <div>
  7. <div class="user-info">
  8. <h4>{{.User.FirstName}} {{.User.LastName}}</h4>
  9. <span>{{.User.Email}}</span>
  10. <span>{{.User.Phone}}</span>
  11. <small>{{.User.Address.Street}}</small>
  12. <small>
  13. {{.User.Address.City}}, {{.User.Address.Region}} {{.User.Address.Zip}}
  14. </small>
  15. </div>
  16. {{if .Avatar}}
  17. <img src="data:image/png;base64,{{.Avatar}}" />
  18. {{end}}
  19. </div>
  20. </header>
  21. <style scoped>
  22. h4 {
  23. margin: 4px 0;
  24. }
  25. header.heading > div {
  26. display: flex;
  27. text-align: right;
  28. margin-left: auto;
  29. }
  30. header.heading .user-info {
  31. margin-right: 8px;
  32. }
  33. header.heading {
  34. display: flex;
  35. justify-content: space-between;
  36. }
  37. .user-info {
  38. display: flex;
  39. flex-flow: column;
  40. }
  41. </style>
  42. {{end}}