Plan stuff. Log stuff.
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.

40 lines
744 B

4 years ago
  1. <script>
  2. import ActivityIcon from "./ActivityIcon"
  3. export let header = "";
  4. export let icon = null;
  5. </script>
  6. <div class="boi">
  7. <div class="boi-header">
  8. {#if (icon !== null)}<ActivityIcon name={icon} />{/if}{header}
  9. </div>
  10. <div class="boi-content">
  11. <slot></slot>
  12. </div>
  13. </div>
  14. <style>
  15. div.boi {
  16. margin: auto;
  17. max-width: 100%;
  18. background-color: #222;
  19. margin: 1em 0;
  20. box-shadow: 0.1em 0.1em 0.05em #080808;
  21. }
  22. div.boi > div.boi-header {
  23. background-color: #292929;
  24. color: #aaa;
  25. text-align: center;
  26. font-size: 1.25em;
  27. padding: 0.25em 0;
  28. }
  29. div.boi > div.boi-header > :global(.activity-icon) {
  30. position: relative;
  31. top: 0.125em;
  32. margin-right: 0.5ch;
  33. }
  34. </style>