Piano notes book, powered by Astro and React.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

131 lignes
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. div.score-wrapper {
  44. @apply mt-8;
  45. @apply mb-16;
  46. }
  47. @media only screen {
  48. body {
  49. @apply px-8;
  50. @apply my-16;
  51. }
  52. }
  53. @media only print {
  54. head {
  55. @apply block;
  56. }
  57. title {
  58. @apply block;
  59. @apply text-5xl;
  60. @apply text-center;
  61. @apply my-16;
  62. @apply font-bold;
  63. }
  64. body {
  65. @apply max-w-full;
  66. @apply m-0;
  67. }
  68. .screen-controls {
  69. @apply hidden;
  70. }
  71. a:link {
  72. @apply text-inherit;
  73. @apply no-underline;
  74. }
  75. a:visited {
  76. @apply text-inherit;
  77. }
  78. figcaption {
  79. @apply text-sm;
  80. }
  81. }
  82. @media only screen and (prefers-color-scheme: dark) {
  83. html {
  84. @apply bg-black;
  85. @apply text-white;
  86. }
  87. img.score {
  88. filter: invert(100%) grayscale(100%);
  89. }
  90. a:link {
  91. @apply text-blue-400;
  92. }
  93. a:visited {
  94. @apply text-purple-400;
  95. }
  96. }
  97. @page {
  98. margin: 2cm;
  99. }
  100. </style>
  101. </head>
  102. <body>
  103. <slot />
  104. <div class="">
  105. </div>
  106. </body>
  107. </html>