Shinhati2023 commited on
Commit
af96895
·
verified ·
1 Parent(s): 6fc010e

Update styles/globals.css

Browse files
Files changed (1) hide show
  1. styles/globals.css +22 -7
styles/globals.css CHANGED
@@ -3,28 +3,35 @@
3
  @tailwind utilities;
4
 
5
  body {
6
- /* 1. The Water Drop Image stays fixed in the back */
7
- background-image: url('/assets/bg.jpg');
 
 
 
8
  background-size: cover;
9
  background-position: center;
10
- background-attachment: fixed; /* Parallax effect */
 
 
 
11
 
12
- /* 2. Fixes for Mobile Feel */
13
  overscroll-behavior-y: none;
14
  -webkit-tap-highlight-color: transparent;
15
  }
16
 
17
- /* 3. The "Frost" Layer that sits on top of the water drops */
18
  body::before {
19
  content: "";
20
  position: fixed;
21
  inset: 0;
22
- background: rgba(255, 255, 255, 0.3); /* Slight white tint */
23
- backdrop-filter: blur(8px); /* The Frost Effect */
24
  z-index: -1;
25
  pointer-events: none;
26
  }
27
 
 
28
  .no-scrollbar::-webkit-scrollbar {
29
  display: none;
30
  }
@@ -32,3 +39,11 @@ body::before {
32
  -ms-overflow-style: none;
33
  scrollbar-width: none;
34
  }
 
 
 
 
 
 
 
 
 
3
  @tailwind utilities;
4
 
5
  body {
6
+ /* CHANGED: Now looking for 'bg.png' */
7
+ background-image: url('/assets/bg.png');
8
+
9
+ /* Keeps the background fixed while you scroll (Parallax feel) */
10
+ background-attachment: fixed;
11
  background-size: cover;
12
  background-position: center;
13
+ background-repeat: no-repeat;
14
+
15
+ /* Fallback color if image fails to load */
16
+ background-color: #FAFAFA;
17
 
18
+ /* Mobile smoothness */
19
  overscroll-behavior-y: none;
20
  -webkit-tap-highlight-color: transparent;
21
  }
22
 
23
+ /* The "Frost" Overlay - Keeps the text readable over the drops */
24
  body::before {
25
  content: "";
26
  position: fixed;
27
  inset: 0;
28
+ background: rgba(255, 255, 255, 0.4); /* Slightly stronger frost for PNGs */
29
+ backdrop-filter: blur(10px);
30
  z-index: -1;
31
  pointer-events: none;
32
  }
33
 
34
+ /* Hide Scrollbars */
35
  .no-scrollbar::-webkit-scrollbar {
36
  display: none;
37
  }
 
39
  -ms-overflow-style: none;
40
  scrollbar-width: none;
41
  }
42
+
43
+ /* Safe Area for notch phones */
44
+ .pt-safe-top {
45
+ padding-top: env(safe-area-inset-top);
46
+ }
47
+ .mb-safe {
48
+ padding-bottom: env(safe-area-inset-bottom);
49
+ }