Piano notes book, powered by Astro and React.
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.
 
 

134 regels
1.9 KiB

  1. ---
  2. const { title } = Astro.props.frontmatter || Astro.props;
  3. ---
  4. <!doctype html>
  5. <html lang="en-PH">
  6. <head>
  7. <meta charset="UTF-8" />
  8. <meta name="viewport" content="width=device-width" />
  9. <link rel="icon" type="image/svg+xml" href="favicon.svg" />
  10. <title>{title}</title>
  11. <style is:global>
  12. html {
  13. @apply font-body;
  14. }
  15. body {
  16. @apply w-full;
  17. @apply mx-auto;
  18. @apply max-w-screen-md;
  19. @apply leading-relaxed;
  20. @apply box-border;
  21. }
  22. p {
  23. @apply my-6;
  24. @apply indent-6;
  25. @apply text-justify;
  26. }
  27. figure {
  28. @apply m-0;
  29. }
  30. figcaption {
  31. @apply text-center;
  32. }
  33. .screen-controls {
  34. @apply flex;
  35. @apply justify-center;
  36. }
  37. a:link {
  38. @apply text-blue-600;
  39. }
  40. a:visited {
  41. @apply text-purple-600;
  42. }
  43. img.score {
  44. @apply -my-8;
  45. }
  46. div.score-wrapper {
  47. @apply my-12;
  48. }
  49. @media only screen {
  50. body {
  51. @apply px-8;
  52. @apply my-16;
  53. }
  54. }
  55. @media only print {
  56. head {
  57. @apply block;
  58. }
  59. title {
  60. @apply block;
  61. @apply text-5xl;
  62. @apply text-center;
  63. @apply my-16;
  64. @apply font-bold;
  65. }
  66. body {
  67. @apply max-w-full;
  68. @apply m-0;
  69. }
  70. .screen-controls {
  71. @apply hidden;
  72. }
  73. a:link {
  74. @apply text-inherit;
  75. @apply no-underline;
  76. }
  77. a:visited {
  78. @apply text-inherit;
  79. }
  80. figcaption {
  81. @apply text-sm;
  82. }
  83. }
  84. @media only screen and (prefers-color-scheme: dark) {
  85. html {
  86. @apply bg-black;
  87. @apply text-white;
  88. }
  89. img.score {
  90. filter: invert(100%) grayscale(100%);
  91. }
  92. a:link {
  93. @apply text-blue-400;
  94. }
  95. a:visited {
  96. @apply text-purple-400;
  97. }
  98. }
  99. @page {
  100. margin: 2cm;
  101. }
  102. </style>
  103. </head>
  104. <body>
  105. <slot />
  106. <div class="">
  107. </div>
  108. </body>
  109. </html>