app.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /* @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer components {
  5. .btn-primary {
  6. @apply py-2 px-5 bg-violet-500 text-white font-semibold rounded-full shadow-md hover:bg-violet-700 focus:outline-none focus:ring focus:ring-violet-400 focus:ring-opacity-75;
  7. }
  8. }
  9. @layer components {
  10. .btn-danger {
  11. @apply py-2 px-5 bg-red-500 text-white font-semibold rounded-full shadow-md hover:bg-red-700 focus:outline-none focus:ring focus:ring-red-400 focus:ring-opacity-75;
  12. }
  13. } */
  14. *{
  15. margin: 0;
  16. padding: 0;
  17. list-style: none;
  18. text-decoration: none;
  19. }
  20. header {
  21. height: 40vh;
  22. width: 100vw;
  23. background-image: url(../images/landscape.jpg);
  24. background-size: cover;
  25. transition: all 0.1s ease;
  26. }
  27. .navbar {
  28. position: absolute;
  29. padding: 50px;
  30. display: flex;
  31. justify-content: space-between;
  32. align-items: center;
  33. width: 100%;
  34. box-sizing: border-box;
  35. }
  36. .navbar a {
  37. color: white;
  38. }
  39. .navbar .logo {
  40. font-size: 6em;
  41. font-weight: bold;
  42. }
  43. .navbar .nav-links ul {
  44. display: flex;
  45. }
  46. .navbar .nav-links ul li {
  47. margin: 0 25px;
  48. }
  49. .navbar .nav-links ul li.active a {
  50. color: #ed3c57;
  51. font-weight: 600;
  52. }
  53. .navbar .menu-burger {
  54. display: none;
  55. position: absolute;
  56. top: 50px;
  57. right: 30px;
  58. width: 35px;
  59. }
  60. .navbar .nav-links ul li {
  61. display: flex;
  62. justify-content: center;
  63. align-items: center;
  64. flex-direction: column;
  65. }
  66. @media screen and (max-width: 900px) {
  67. header.big {
  68. height: 100vh;
  69. }
  70. .navbar {
  71. padding: 0;
  72. }
  73. .nav-links {
  74. top: 0;
  75. left: 0;
  76. position: absolute;
  77. background-color: rgba(0, 255, 221, 0.308);
  78. width: 100%;
  79. height: 100vh;
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. backdrop-filter: blur(7px);
  84. margin-left: -100%;
  85. transition: all 0.1s ease;
  86. }
  87. .nav-links ul {
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. }
  92. .navbar .menu-burger {
  93. display: block;
  94. }
  95. .nav-links.mobile-menu {
  96. margin-left: 0;
  97. }
  98. .navbar .nav-links > ul > li {
  99. margin: 25px 0;
  100. font-size: 1.2em;
  101. }
  102. .navbar .nav-links ul li {
  103. flex-direction: column;
  104. }
  105. .navbar .logo {
  106. position: absolute;
  107. top: 40px;
  108. left: 30px;
  109. font-size: 2em;
  110. }
  111. }