landingpage.css 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @layer components {
  2. #blog-flex,
  3. #project-flex {
  4. @apply flex flex-col md:flex-row flex-wrap justify-between max-w-screen-lg mx-auto md:space-x-8 py-4;
  5. }
  6. #blog-flex--old,
  7. #project-flex--old {
  8. @apply w-2/3 md:w-auto max-w-screen-lg grid auto-cols-min grid-cols-1 sm:grid-cols-2 md:grid-cols-4 mx-auto py-5 gap-0 sm:gap-10
  9. }
  10. .project-item{
  11. @apply panel bg-gray-300 rounded flex-1 relative text-center md:w-1/4 mt-44 md:mt-32;
  12. }
  13. .project-item .project-title{
  14. @apply w-full text-xl font-mono text-center;
  15. }
  16. .project-item .project-title a{
  17. @apply text-black;
  18. }
  19. .project-item img{
  20. @apply absolute w-32 border border-gray-300 rounded z-10 transform left-1/2 -translate-x-1/2 -translate-y-3/4;
  21. }
  22. .project-item .project-body {
  23. @apply z-0 pt-12;
  24. }
  25. .project-item .project-description{
  26. @apply text-center text-base px-2 mb-2;
  27. }
  28. .project-item .project-status{
  29. font-variant: small-caps;
  30. @apply absolute bottom-1 inset-x-1/3 text-center text-sm font-sans whitespace-nowrap;
  31. }
  32. .project-item .project-status.dead{
  33. @apply text-red-900;
  34. }
  35. .project-item .project-status.active{
  36. @apply text-purple-400;
  37. }
  38. .project-item .project-status.done{
  39. @apply text-green-600;
  40. }
  41. .project-item-old{
  42. @apply panel bg-gray-300 rounded-2xl;
  43. }
  44. .project-item-old .project-title{
  45. @apply w-full text-xl font-mono text-center;
  46. }
  47. .project-item-old .project-title a{
  48. @apply text-black;
  49. }
  50. .project-item-old img{
  51. @apply w-20 h-32 mx-auto my-4 border border-gray-300 rounded;
  52. }
  53. .project-item-old .project-description{
  54. @apply text-center text-base px-2 mb-8;
  55. }
  56. .project-item-old .project-status{
  57. font-variant: small-caps;
  58. @apply absolute bottom-1 inset-x-1/3 text-center text-sm font-sans whitespace-nowrap;
  59. }
  60. .project-item-old .project-status.dead{
  61. @apply text-red-900;
  62. }
  63. .project-item-old .project-status.active{
  64. @apply text-purple-400;
  65. }
  66. .project-item-old .project-status.done{
  67. @apply text-green-600;
  68. }
  69. }