globalStyle.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. import localFont from "next/font/local";
  2. import { createGlobalStyle } from "styled-components";
  3. const monaSans = localFont({
  4. src: "../pages/Mona-Sans.woff2",
  5. variable: "--mona-sans",
  6. display: "swap",
  7. fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"],
  8. });
  9. const GlobalStyle = createGlobalStyle`
  10. html, body {
  11. margin: 0;
  12. padding: 0;
  13. box-sizing: border-box;
  14. color: ${({ theme }) => theme.FULL_WHITE};
  15. font-family: var(--mona-sans);
  16. font-weight: 400;
  17. font-size: 16px;
  18. height: 100%;
  19. background-color: #000000;
  20. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.3'%3E%3Ccircle fill='%23000000' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%23110718' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%23220e30' cx='400' cy='400' r='400'/%3E%3Ccircle fill='%23331447' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%23441b5f' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%23552277' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E");
  21. background-attachment: fixed;
  22. background-size: cover;
  23. font-family: ${monaSans.style.fontFamily};
  24. @media only screen and (max-width: 768px) {
  25. background-position: right;
  26. }
  27. }
  28. * {
  29. -webkit-tap-highlight-color: transparent;
  30. scroll-behavior: smooth !important;
  31. }
  32. .hide {
  33. display: none;
  34. }
  35. .mantine-Modal-inner {
  36. padding: 0;
  37. }
  38. svg {
  39. vertical-align: text-top;
  40. }
  41. a {
  42. text-decoration: none;
  43. color: unset;
  44. padding: 0;
  45. margin: 0;
  46. }
  47. button {
  48. border: none;
  49. outline: none;
  50. background: transparent;
  51. width: fit-content;
  52. margin: 0;
  53. padding: 0;
  54. cursor: pointer;
  55. }
  56. #carbonads * {
  57. margin: initial;
  58. padding: initial;
  59. line-height: initial;
  60. }
  61. #carbonads {
  62. --carbon-font-size: 16px;
  63. --carbon-padding-size: 12px;
  64. border-radius: 4px;
  65. overflow: hidden;
  66. }
  67. #carbonads {
  68. display: inline-block;
  69. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
  70. Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
  71. Helvetica, Arial, sans-serif;
  72. font-size: var(--carbon-font-size);
  73. }
  74. #carbonads > span {
  75. min-width: 18.75em;
  76. max-width: clamp(18.75em, 22.5em, 24.5em);
  77. min-height: 100px;
  78. background-color: ${({ theme }) => theme.BACKGROUND_SECONDARY};
  79. box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.085),
  80. 0 0 2px hsl(0deg 0% 0% / 0.085),
  81. 0 0 4px hsl(0deg 0% 0% / 0.085),
  82. 0 0 8px hsl(0deg 0% 0% / 0.085);
  83. }
  84. #carbonads a {
  85. text-decoration: none;
  86. color: ${({ theme }) => theme.INTERACTIVE_NORMAL};
  87. }
  88. #carbonads a:hover {
  89. color: ${({ theme }) => theme.INTERACTIVE_HOVER};
  90. }
  91. #carbonads span {
  92. display: block;
  93. position: relative;
  94. }
  95. #carbonads .carbon-wrap {
  96. display: flex;
  97. }
  98. #carbonads .carbon-img {
  99. height: 100px;
  100. width: 130px;
  101. }
  102. #carbonads .carbon-img img {
  103. display: block;
  104. }
  105. #carbonads .carbon-text {
  106. padding: 0.625em 1em;
  107. font-size: 0.8125em;
  108. margin-bottom: 1em;
  109. line-height: 1.4;
  110. text-align: left;
  111. }
  112. #carbonads .carbon-poweredby {
  113. display: block;
  114. padding: 6px 8px;
  115. color: ${({ theme }) => theme.TEXT_NORMAL};
  116. background: ${({ theme }) => theme.BACKGROUND_TERTIARY};
  117. text-align: center;
  118. text-transform: uppercase;
  119. letter-spacing: 0.1ch;
  120. font-weight: 600;
  121. font-size: 0.5em;
  122. line-height: 1;
  123. border-top-left-radius: 3px;
  124. position: absolute;
  125. bottom: 0;
  126. right: 0;
  127. }
  128. `;
  129. export default GlobalStyle;