styles.tsx 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. import { AdminPage } from '../src/app'
  2. import theme from '../src/styles/theme'
  3. const StylePage = () => {
  4. return (
  5. <div className='page'>
  6. <section className='presentation'>
  7. <h1>This is the main title.</h1>
  8. <p>
  9. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque, sed
  10. perspiciatis. Molestias iusto, dolorem expedita deserunt saepe nostrum
  11. ex voluptas, illo consequuntur inventore eius impedit.
  12. </p>
  13. </section>
  14. <article>
  15. <nav>
  16. <h2>Mobile navigation</h2>
  17. <ul>
  18. <li>This is a mobile navigation item.</li>
  19. </ul>
  20. </nav>
  21. </article>
  22. <article className='program'>
  23. <h2>Program title</h2>
  24. <p>stuff</p>
  25. </article>
  26. <article>
  27. <form>
  28. <fieldset>
  29. <label htmlFor='text'>text</label>
  30. <input type='text' name='text' id='text' placeholder='text' />
  31. <label htmlFor='search'>search</label>
  32. <input
  33. type='search'
  34. name='search'
  35. id='search'
  36. placeholder='search'
  37. />
  38. <label htmlFor='password'>password</label>
  39. <input
  40. type='password'
  41. name='password'
  42. id='password'
  43. placeholder='password'
  44. />
  45. <label htmlFor='tel'>tel</label>
  46. <input type='tel' name='tel' id='tel' placeholder='tel' />
  47. <label htmlFor='url'>url</label>
  48. <input type='url' name='url' id='url' placeholder='url' />
  49. <label htmlFor='email'>email</label>
  50. <input type='email' name='email' id='email' placeholder='email' />
  51. <label htmlFor='number'>number</label>
  52. <input
  53. type='number'
  54. name='number'
  55. id='number'
  56. placeholder='number'
  57. />
  58. <label htmlFor='range'>range</label>
  59. <input type='range' name='range' id='range' placeholder='range' />
  60. <label htmlFor='date'>date</label>
  61. <input type='date' name='date' id='date' placeholder='date' />
  62. <label htmlFor='time'>time</label>
  63. <input type='time' name='time' id='time' placeholder='time' />
  64. </fieldset>
  65. <fieldset>
  66. <label htmlFor='checkbox'>checkbox</label>
  67. <input
  68. type='checkbox'
  69. name='checkbox'
  70. id='checkbox'
  71. placeholder='checkbox'
  72. />
  73. <label htmlFor='radio'>radio</label>
  74. <input
  75. type='radio'
  76. name='radio'
  77. id='radio'
  78. value='radio1'
  79. placeholder='radio'
  80. />
  81. <label htmlFor='radio'>radio</label>
  82. <input
  83. type='radio'
  84. name='radio'
  85. id='radio'
  86. value='radio2'
  87. placeholder='radio'
  88. />
  89. <label htmlFor='radio'>radio</label>
  90. <input
  91. type='radio'
  92. name='radio'
  93. id='radio'
  94. value='radio3'
  95. placeholder='radio'
  96. />
  97. <label htmlFor='radio'>radio</label>
  98. <input
  99. type='radio'
  100. name='radio'
  101. id='radio'
  102. value='radio4'
  103. placeholder='radio'
  104. />
  105. <select name='select' id='select'>
  106. <optgroup label='Option Group 1'>
  107. <option value='option1-1'>1-1</option>
  108. <option value='option1-2'>1-2</option>
  109. <option value='option1-3'>1-3</option>
  110. </optgroup>
  111. <optgroup label='Option Group 2'>
  112. <option value='option2-1'>2-1</option>
  113. <option value='option2-2'>2-2</option>
  114. <option value='option2-3'>2-3</option>
  115. </optgroup>
  116. </select>
  117. <textarea
  118. name='textarea'
  119. id='textarea'
  120. rows={8}
  121. cols={50}
  122. placeholder='textarea'
  123. ></textarea>
  124. </fieldset>
  125. <button type='submit'>Submit</button>
  126. <button type='reset'>Reset</button>
  127. </form>
  128. </article>
  129. <style jsx>{`
  130. .page {
  131. position: relative;
  132. background-image: linear-gradient(
  133. to bottom,
  134. #84cae7,
  135. #84cae7 400px,
  136. #ababab 400px,
  137. #ebebeb 406px,
  138. #ebebeb 406px
  139. );
  140. }
  141. .presentation {
  142. height: 300px;
  143. padding: 2em 3em;
  144. color: ${theme.colors.presentation};
  145. background: ${theme.colors.presentationBackground};
  146. }
  147. .presentation h1 {
  148. color: ${theme.colors.presentation};
  149. font-size: 4rem;
  150. line-height: 1;
  151. margin: 0;
  152. padding: 0;
  153. }
  154. .presentation p {
  155. max-width: 40%;
  156. }
  157. .program {
  158. position: absolute;
  159. right: 3em;
  160. width: 40%;
  161. min-width: 300px;
  162. background: ${theme.colors.background};
  163. box-shadow: ${theme.bs};
  164. }
  165. `}</style>
  166. </div>
  167. )
  168. }
  169. export default StylePage