app.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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: 25vh;
  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: 4em;
  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. position: absolute;
  73. }
  74. .nav-links {
  75. top: 0;
  76. left: 0;
  77. position: absolute;
  78. background-color: rgba(0, 255, 221, 0.308);
  79. width: 100%;
  80. height: 100vh;
  81. display: flex;
  82. justify-content: center;
  83. align-items: center;
  84. backdrop-filter: blur(7px);
  85. margin-left: -100%;
  86. transition: all 0.1s ease;
  87. }
  88. .nav-links ul {
  89. display: flex;
  90. flex-direction: column;
  91. align-items: center;
  92. }
  93. .navbar .menu-burger {
  94. display: block;
  95. }
  96. .nav-links.mobile-menu {
  97. margin-left: 0;
  98. }
  99. .navbar .nav-links > ul > li {
  100. margin: 25px 0;
  101. font-size: 1.2em;
  102. }
  103. .navbar .nav-links ul li {
  104. flex-direction: column;
  105. }
  106. .navbar .logo {
  107. position: absolute;
  108. top: 40px;
  109. left: 30px;
  110. font-size: 2em;
  111. }
  112. /* Body */
  113. }
  114. /* Body */
  115. main {
  116. display: flex;
  117. flex-direction: column;
  118. align-items: center;
  119. width: 100%; /* S'assure que le main ne dépasse pas la largeur de l'écran */
  120. box-sizing: border-box;
  121. flex-wrap: wrap;
  122. padding: 10px;
  123. }
  124. img, .contenu-flex {
  125. max-width: 100%;
  126. }