mainmenu.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <style type="text/css">
  2. #main-menu h1 {
  3. font-family: sans-serif;
  4. font-weight: normal;
  5. font-size: 4em;
  6. }
  7. #main-menu button {
  8. width: 200px;
  9. height: 160px;
  10. font-size: 2em;
  11. background-color: transparent;
  12. border: 4px solid white;
  13. border-radius: 16px;
  14. color: white;
  15. transition: all 0.2s ease-in-out;
  16. }
  17. #main-menu button:hover {
  18. background-color: white;
  19. color: black;
  20. cursor: pointer;
  21. }
  22. #main-menu {
  23. font-family: sans-serif;
  24. color: white;
  25. text-align: center;
  26. width: 50%;
  27. height: 100%;
  28. margin-left: auto;
  29. margin-right: auto;
  30. padding-top: 12%;
  31. }
  32. #level-select {
  33. opacity: 0;
  34. font-family: sans-serif;
  35. color: white;
  36. text-align: center;
  37. width: 50%;
  38. height: 100%;
  39. margin-left: auto;
  40. margin-right: auto;
  41. padding-top: 12%;
  42. }
  43. #level-select button {
  44. width: 50px;
  45. height: 50px;
  46. font-size: 1.5em;
  47. background-color: transparent;
  48. border: 2px solid white;
  49. border-radius: 8px;
  50. color: white;
  51. transition: all 0.2s ease-in-out;
  52. margin: 0.5em 0.5em;
  53. }
  54. #level-select button:hover {
  55. background-color: white;
  56. color: black;
  57. cursor: pointer;
  58. }
  59. @media (max-width: 320px) {
  60. #main-menu {
  61. padding-top: 20px;
  62. }
  63. #level-select {
  64. padding-top: 20px;
  65. }
  66. }
  67. </style>
  68. <div id="main-menu">
  69. <h1>Tilegrid Rogue</h1>
  70. <button id="play-button">Play</button>
  71. </div>
  72. <div id="level-select">
  73. <h1>Level Select</h1>
  74. <button data-level='1'>1</button>
  75. <button data-level='2'>2</button>
  76. <button data-level='3'>3</button>
  77. <button data-level='4'>4</button>
  78. <button data-level='5'>5</button>
  79. <button data-level='6'>6</button>
  80. <button data-level='7'>7</button>
  81. <button data-level='8'>8</button>
  82. <button data-level='9'>9</button>
  83. <button data-level='10'>10</button>
  84. <button data-level='11'>11</button>
  85. <button data-level='12'>12</button>
  86. <button data-level='13'>13</button>
  87. <button data-level='14'>14</button>
  88. <button data-level='15'>15</button>
  89. <button data-level='16'>16</button>
  90. <button data-level='17'>17</button>
  91. <button data-level='18'>18</button>
  92. <button data-level='19'>19</button>
  93. <button data-level='20'>20</button>
  94. </div>