Frontend assessment source code
 
 
 
 

223 lines
2.9 KiB

  1. @keyframes fade-in-translate {
  2. from {
  3. transform: translateX(-50px);
  4. opacity: 0;
  5. }
  6. to {
  7. transform: translateX(0);
  8. opacity: 1;
  9. }
  10. }
  11. @keyframes fade-in-translate-right {
  12. from {
  13. transform: translateX(50px);
  14. opacity: 0;
  15. }
  16. to {
  17. transform: translateX(0);
  18. opacity: 1;
  19. }
  20. }
  21. @keyframes fade-in {
  22. from {
  23. opacity: 0;
  24. }
  25. to {
  26. opacity: 1;
  27. }
  28. }
  29. .fade-in {
  30. animation: fade-in-translate 0.3s 0.1s both;
  31. }
  32. .fade-in-right {
  33. animation: fade-in-translate-right 0.3s 0.1s both;
  34. }
  35. #app {
  36. position: absolute;
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. left: 0;
  41. top: 0;
  42. right: 0;
  43. bottom: 0;
  44. }
  45. #app .container {
  46. width: 376px;
  47. height: 666px;
  48. z-index: 100;
  49. background: white;
  50. border-radius: 3px;
  51. box-shadow: 0 0 5px 0 rgba(0, 0, 0, .9);
  52. overflow: scroll;
  53. }
  54. #app .container-view {
  55. padding: 20px;
  56. }
  57. #app nav {
  58. display: flex;
  59. flex-flow: wrap;
  60. justify-content: center;
  61. /* gap: 40px; */
  62. margin-top: 20px;
  63. }
  64. #app nav button {
  65. width: 8em;;
  66. background: white;
  67. border: none;
  68. }
  69. .calls h4 {
  70. margin-top: 0;
  71. margin-bottom: 5px;
  72. }
  73. .calls li {
  74. list-style: none;
  75. display: block;
  76. position: relative;
  77. margin-bottom: 20px;
  78. padding: 10px;
  79. border-radius: 5px;
  80. box-shadow: 8px 14px 38px rgba(39,44,49,.1), 1px 3px 8px rgba(39,44,49,.06);
  81. }
  82. .calls button {
  83. border-radius: 50%;
  84. width: 30px;
  85. height: 30px;
  86. top: 20%;
  87. right: 5%;
  88. position: absolute;
  89. display: block;
  90. }
  91. .calls h4 span {
  92. background: darkorange;
  93. color: white;
  94. border: 2px solid orange;
  95. border-radius: 50%;
  96. padding: 4px;
  97. text-align: center;
  98. vertical-align: middle;
  99. height: 12px;
  100. min-width: 12px;
  101. display: inline-block;
  102. margin-left: 5px;
  103. }
  104. .calls small {
  105. color: darkgrey;
  106. }
  107. .calls svg {
  108. display: inline-block;
  109. margin-left: 10px;
  110. }
  111. .calls svg.detail {
  112. color: darkgrey;
  113. padding: 5px;
  114. border: 2px solid darkgrey;
  115. border-radius: 50%;
  116. right: 5%;
  117. top: 25%;
  118. position: absolute;
  119. display: block;
  120. }
  121. .calls svg.detail:hover {
  122. color: white;
  123. background: darkgrey;
  124. }
  125. .calls svg.in-phone, .calls svg.out-phone {
  126. color: green;
  127. }
  128. .calls div.date {
  129. color: darkgrey;
  130. text-align: center;
  131. }
  132. .call {
  133. display: flex;
  134. justify-content: space-between;
  135. flex-flow: wrap;
  136. gap: 10px;
  137. }
  138. .call svg {
  139. width: 40px;
  140. }
  141. .call .call-nav {
  142. width: 100%;
  143. }
  144. .call .call-nav svg {
  145. color: darkgrey;
  146. padding: 5px;
  147. border: 2px solid darkgrey;
  148. border-radius: 50%;
  149. display: block;
  150. width: 15px;
  151. }
  152. .call .call-nav svg:hover {
  153. color: white;
  154. background: darkgrey;
  155. }
  156. .call .call-nav {
  157. display: flex;
  158. justify-content: space-between;
  159. }
  160. .call-nav button {
  161. border: 2px solid grey;
  162. border-radius: 5px;
  163. background: white;
  164. }
  165. nav div {
  166. width: 100%;
  167. height: 5px;
  168. margin-top: 10px;
  169. }
  170. nav div span {
  171. width: 25%;
  172. height: 2px;
  173. display: block;
  174. background: green;
  175. margin: auto;
  176. }
  177. nav div span.left {
  178. transform: translateX(-70%);
  179. }
  180. nav div span.right {
  181. transform: translateX(70%);
  182. }
  183. nav div span {
  184. transition: 0.2s ease-in-out;
  185. }
  186. ul {
  187. transition: all 0.2s ease-in;
  188. }