Ionic + React onboarding UI
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.
 
 
 
 
 

228 lignes
4.7 KiB

  1. .slidersNavBar {
  2. height: 60px;
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. h4 {
  7. width: 60%;
  8. text-align: right;
  9. font-size: 24px;
  10. color: var(--charcoal);
  11. span {
  12. font-size: 18px;
  13. font-weight: 400;
  14. color: var(--ash);
  15. }
  16. }
  17. ion-button {
  18. --background: transparent;
  19. --color: var(--ash);
  20. --box-shadow: none;
  21. font-size: 14px;
  22. margin-left: auto;
  23. margin-right: 5%;
  24. ion-icon {
  25. font-size: 16px;
  26. margin-left: 5px;
  27. transform: translateY(2px);
  28. }
  29. }
  30. }
  31. .slides {
  32. width: 100%;
  33. margin-top: 20px;
  34. overflow: hidden;
  35. height: calc(100vh - 60px - 20px);
  36. ion-slide {
  37. text-align: left;
  38. display: block;
  39. }
  40. .questionContainer {
  41. height: 35%;
  42. position: relative;
  43. padding: 0 7%;
  44. .question {
  45. word-spacing: 1px;
  46. font-size: 28px;
  47. font-weight: 400;
  48. color: var(--charcoal);
  49. }
  50. .hint {
  51. position: absolute;
  52. bottom: 40px;
  53. left: 7%;
  54. font-size: 14px;
  55. color: var(--grey-rock);
  56. }
  57. }
  58. .choiceContainer {
  59. height: 65%;
  60. background-color: var(--dark-charcoal);
  61. padding: 40px 7%;
  62. border-top-left-radius: 35px;
  63. border-top-right-radius: 35px;
  64. .optionButtons button {
  65. width: 100%;
  66. text-align: left;
  67. outline: none;
  68. padding: 0 30px;
  69. display: block;
  70. background-color: var(--charcoal);
  71. box-shadow: 0px 0px 10px black;
  72. border-radius: 10px;
  73. height: 55px;
  74. font-size: 16px;
  75. color: var(--grey-rock);
  76. margin-bottom: 30px;
  77. transition: box-shadow 0.3s, color 0.3s;
  78. &.optionButton {
  79. color: white;
  80. padding-right: 15px;
  81. }
  82. &.active {
  83. color: white;
  84. box-shadow: 0px 0px 10px 1px var(--shamrock);
  85. ion-icon.checkmark {
  86. opacity: 1;
  87. }
  88. }
  89. ion-icon {
  90. font-size: 20px;
  91. vertical-align: middle;
  92. transition: opacity 0.3s;
  93. &.leftIcon {
  94. margin-right: 15px;
  95. }
  96. &.checkmark {
  97. opacity: 0;
  98. float: right;
  99. }
  100. &.option {
  101. float: right;
  102. }
  103. &.sectorIcon {
  104. margin-right: 10px;
  105. }
  106. }
  107. }
  108. ion-range {
  109. --bar-height: 5px;
  110. --bar-background: var(--black-rock);
  111. --bar-background-active: var(--shamrock);
  112. --knob-size: 20px;
  113. --bar-border-radius: 30px;
  114. }
  115. }
  116. }
  117. .nextButton {
  118. position: fixed;
  119. bottom: 5%;
  120. right: 7%;
  121. z-index: 1;
  122. width: 150px;
  123. height: 60px;
  124. --border-radius: 30px;
  125. --box-shadow: none;
  126. --background: var(--shamrock);
  127. --color: white;
  128. font-size: 18px;
  129. ion-icon {
  130. font-size: 18px;
  131. margin-left: 10px;
  132. }
  133. }
  134. .prevButton {
  135. position: fixed;
  136. bottom: 5%;
  137. left: 7%;
  138. z-index: 1;
  139. width: 60px;
  140. height: 60px;
  141. --border-color: var(--rock);
  142. --color: var(--rock);
  143. --background: transparent;
  144. --border-radius: 50%;
  145. --border-width: 2px;
  146. ion-icon {
  147. opacity: 0.4;
  148. transform: rotateY(180deg);
  149. }
  150. }
  151. .picker {
  152. position: fixed;
  153. left: 0;
  154. top: 0;
  155. z-index: 1;
  156. width: 100%;
  157. height: 100vh;
  158. background-color: var(--dark-charcoal);
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. .container {
  163. width: 100%;
  164. height: 90%;
  165. overflow: auto;
  166. padding: 10% 0;
  167. ul {
  168. list-style: none;
  169. padding: 0;
  170. margin: 0;
  171. color: white;
  172. width: 100%;
  173. display: block;
  174. }
  175. li {
  176. height: 60px;
  177. display: flex;
  178. align-items: center;
  179. justify-content: flex-start;
  180. width: 100%;
  181. padding: 0 10%;
  182. font-size: 14px;
  183. opacity: 0.5;
  184. transition: box-shadow 0.3s, opacity 0.3s;
  185. &.active {
  186. box-shadow: 0px 0px 10px black;
  187. opacity: 1;
  188. }
  189. ion-icon {
  190. font-size: 20px;
  191. margin-right: 20px;
  192. }
  193. }
  194. }
  195. }