About.astro 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ---
  2. import { getCollection, getEntry } from "astro:content";
  3. import type { AboutEntry } from "../types/about";
  4. import "../styles/global.css";
  5. const about: AboutEntry = await getEntry("about", "oliver");
  6. ---
  7. <div class="grid justify-center">
  8. <div
  9. class="max-w-sm bg-white border border-gray-200 rounded-lg shadow-sm dark:bg-blue-700 dark:border-gray-500"
  10. >
  11. <div class="p-5">
  12. <a href="#">
  13. <h5
  14. class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"
  15. >
  16. {about.data.name}
  17. </h5>
  18. </a>
  19. <div class="grid auto-cols-max grid-flow-col">
  20. <svg
  21. xmlns="http://www.w3.org/2000/svg"
  22. height="24px"
  23. viewBox="0 -960 960 960"
  24. width="24px"
  25. fill="#e8eaed"
  26. >
  27. <path
  28. d="M480-480q33 0 56.5-23.5T560-560q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 33 23.5 56.5T480-480Zm0 294q122-112 181-203.5T720-552q0-109-69.5-178.5T480-800q-101 0-170.5 69.5T240-552q0 71 59 162.5T480-186Zm0 106Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80Zm0-480Z"
  29. ></path>
  30. </svg>
  31. <p class="mb-3 font-normal text-gray-700 dark:text-white">
  32. {about.data.location}
  33. </p>
  34. </div>
  35. <p class="mb-3 font-normal text-gray-700 dark:text-white">
  36. Interests
  37. </p>
  38. <span
  39. class="bg-blue-100 text-blue-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-blue-900 dark:text-blue-300"
  40. >Full stack</span
  41. >
  42. <span
  43. class="bg-red-100 text-red-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-red-900 dark:text-red-300"
  44. >Web</span
  45. >
  46. <span
  47. class="bg-green-100 text-green-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-green-900 dark:text-green-300"
  48. >LLM</span
  49. >
  50. <span
  51. class="bg-yellow-100 text-yellow-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-yellow-900 dark:text-yellow-300"
  52. >Svelte</span
  53. >
  54. <span
  55. class="bg-indigo-100 text-indigo-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-indigo-900 dark:text-indigo-300"
  56. >React</span
  57. >
  58. <span
  59. class="bg-purple-100 text-purple-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-purple-900 dark:text-purple-300"
  60. >Docker</span
  61. >
  62. <span
  63. class="bg-pink-100 text-pink-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-pink-900 dark:text-pink-300"
  64. >JVM</span
  65. >
  66. </div>
  67. </div>
  68. </div>