React app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Home.module.scss 3.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. .pageHeader {
  2. background-color: var(--orange);
  3. text-align: center;
  4. padding: 1rem 0 0.5rem;
  5. }
  6. .upfold {
  7. background-color: var(--orange);
  8. display: flex;
  9. align-items: center;
  10. justify-content: space-between;
  11. padding: 0 3rem 5rem;
  12. border-bottom-right-radius: 3rem;
  13. border-bottom-left-radius: 3rem;
  14. .profileImage {
  15. display: block;
  16. position: relative;
  17. width: 10rem;
  18. height: 10rem;
  19. img {
  20. width: 100%;
  21. height: 100%;
  22. border-radius: 50%;
  23. object-fit: cover;
  24. object-position: center;
  25. display: block;
  26. }
  27. svg {
  28. position: absolute;
  29. bottom: -2rem;
  30. right: calc(50% - 3rem);
  31. width: 6rem;
  32. height: 6rem;
  33. }
  34. }
  35. .userDetails {
  36. width: calc(100% - 12rem);
  37. display: grid;
  38. h2 {
  39. grid-column-start: 1;
  40. grid-column-end: 4;
  41. font-size: 1.7rem;
  42. color: var(--black);
  43. }
  44. .stat {
  45. margin-top: 1rem;
  46. color: var(--brownish-black);
  47. line-height: 1.2;
  48. h5 {
  49. font-size: 1.6rem;
  50. }
  51. label {
  52. font-size: 1.6rem;
  53. }
  54. }
  55. }
  56. }
  57. .searchBar {
  58. background-color: white;
  59. display: flex;
  60. border-radius: 3rem;
  61. height: 5rem;
  62. width: calc(100% - 6rem);
  63. margin: -2.5rem auto 2.5rem;
  64. align-items: center;
  65. justify-content: space-between;
  66. box-shadow: 0px 5px 30px -20px var(--grey);
  67. input {
  68. height: 100%;
  69. border: 0;
  70. width: calc(100% - 5rem);
  71. background-color: transparent;
  72. padding-left: 2rem;
  73. font-size: 1.4rem;
  74. }
  75. svg {
  76. width: 5rem;
  77. fill: var(--red);
  78. }
  79. }
  80. .blockHeader {
  81. display: flex;
  82. align-items: center;
  83. justify-content: flex-start;
  84. h4 {
  85. font-size: 1.6rem;
  86. color: var(--black);
  87. flex-grow: 1;
  88. svg {
  89. width: 2rem;
  90. height: 2rem;
  91. fill: var(--black);
  92. vertical-align: middle;
  93. margin-right: 1rem;
  94. }
  95. }
  96. button {
  97. background-color: var(--teal);
  98. width: 3rem;
  99. height: 3rem;
  100. border: none;
  101. border-radius: 50%;
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. margin-left: 1rem;
  106. svg {
  107. fill: white;
  108. width: 1.2rem;
  109. }
  110. }
  111. }
  112. $block-padding: 0 2rem;
  113. .List {
  114. padding: #{$block-padding};
  115. ul {
  116. list-style: none;
  117. }
  118. li {
  119. display: flex;
  120. justify-content: space-between;
  121. align-items: center;
  122. margin: 2rem 0;
  123. &:nth-child(1) .icon {
  124. background-color: var(--red);
  125. }
  126. &:nth-child(2) .icon {
  127. background-color: var(--orange);
  128. }
  129. &:nth-child(3) .icon {
  130. background-color: var(--blue);
  131. }
  132. .icon {
  133. width: 4rem;
  134. height: 4rem;
  135. background-color: var(--grey);
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. border-radius: 50%;
  140. svg {
  141. fill: white;
  142. width: 3rem;
  143. }
  144. }
  145. .info {
  146. width: calc(100% - 5rem);
  147. label, span {
  148. display: block;
  149. }
  150. label {
  151. font-size: 1.2rem;
  152. color: var(--black);
  153. font-weight: 700;
  154. }
  155. span {
  156. font-size: 1rem;
  157. color: var(--grey);
  158. font-weight: 500;
  159. }
  160. }
  161. }
  162. }
  163. .Shelf {
  164. padding: #{$block-padding};
  165. ul {
  166. list-style: none;
  167. }
  168. }