ChandimaPrabath
commited on
Commit
•
c0b3c6a
1
Parent(s):
aa651ae
header fixed
Browse files
frontend/src/app/globals.css
CHANGED
@@ -7,8 +7,20 @@
|
|
7 |
body {
|
8 |
font-family: 'Inter', 'Noto Sans', sans-serif;
|
9 |
background-color: #0a0a10;
|
|
|
|
|
|
|
10 |
}
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
|
|
|
|
14 |
}
|
|
|
7 |
body {
|
8 |
font-family: 'Inter', 'Noto Sans', sans-serif;
|
9 |
background-color: #0a0a10;
|
10 |
+
-ms-overflow-style: none; /* IE and Edge */
|
11 |
+
scrollbar-width: none; /* Firefox */
|
12 |
+
scroll-behavior: smooth;
|
13 |
}
|
14 |
|
15 |
+
.app-container{
|
16 |
+
-ms-overflow-style: none; /* IE and Edge */
|
17 |
+
scrollbar-width: none; /* Firefox */
|
18 |
+
scroll-behavior: smooth;
|
19 |
+
overflow: scroll;
|
20 |
+
max-height: 100dvh;
|
21 |
+
padding-top: 80px;
|
22 |
+
}
|
23 |
|
24 |
+
.app-container::-webkit-scrollbar {
|
25 |
+
display: none;
|
26 |
}
|
frontend/src/app/layout.js
CHANGED
@@ -17,12 +17,14 @@ export default function RootLayout({ children }) {
|
|
17 |
return (
|
18 |
<html lang="en">
|
19 |
<body className={inter.className}>
|
|
|
20 |
<header>
|
21 |
<link rel="icon" href="/favicon.ico" sizes="any" />
|
22 |
<Sidebar />
|
23 |
<Header />
|
24 |
</header>
|
25 |
<FilmProvider>{children}</FilmProvider>
|
|
|
26 |
</body>
|
27 |
</html>
|
28 |
);
|
|
|
17 |
return (
|
18 |
<html lang="en">
|
19 |
<body className={inter.className}>
|
20 |
+
<div className="app-container">
|
21 |
<header>
|
22 |
<link rel="icon" href="/favicon.ico" sizes="any" />
|
23 |
<Sidebar />
|
24 |
<Header />
|
25 |
</header>
|
26 |
<FilmProvider>{children}</FilmProvider>
|
27 |
+
</div>
|
28 |
</body>
|
29 |
</html>
|
30 |
);
|
frontend/src/components/Header.css
CHANGED
@@ -1,9 +1,15 @@
|
|
1 |
.header-container {
|
2 |
padding: 10px 15px; /* Padding for overall spacing */
|
3 |
-
|
|
|
4 |
color: white;
|
5 |
display: flex;
|
6 |
justify-content: center; /* Center the content horizontally */
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
8 |
|
9 |
.header-right {
|
@@ -30,5 +36,6 @@
|
|
30 |
.search-button{
|
31 |
right: 0;
|
32 |
padding: 15px;
|
|
|
33 |
position: absolute;
|
34 |
}
|
|
|
1 |
.header-container {
|
2 |
padding: 10px 15px; /* Padding for overall spacing */
|
3 |
+
padding-bottom: 30px;
|
4 |
+
background-image: linear-gradient(180deg, #000000 5%,#110e21 70%, transparent 100%);
|
5 |
color: white;
|
6 |
display: flex;
|
7 |
justify-content: center; /* Center the content horizontally */
|
8 |
+
width: 100dvw;
|
9 |
+
position: fixed;
|
10 |
+
top: 0;
|
11 |
+
left: 0;
|
12 |
+
z-index: 100;
|
13 |
}
|
14 |
|
15 |
.header-right {
|
|
|
36 |
.search-button{
|
37 |
right: 0;
|
38 |
padding: 15px;
|
39 |
+
padding-right: 25px;
|
40 |
position: absolute;
|
41 |
}
|
frontend/src/components/Sidebar.css
CHANGED
@@ -16,6 +16,14 @@
|
|
16 |
display: flex;
|
17 |
flex-direction: column;
|
18 |
flex: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
.sidebar.open {
|
|
|
16 |
display: flex;
|
17 |
flex-direction: column;
|
18 |
flex: 1;
|
19 |
+
overflow-y: scroll;
|
20 |
+
-ms-overflow-style: none; /* IE and Edge */
|
21 |
+
scrollbar-width: none; /* Firefox */
|
22 |
+
scroll-behavior: smooth;
|
23 |
+
}
|
24 |
+
|
25 |
+
.sidebar-conten::-webkit-scrollbar {
|
26 |
+
display: none;
|
27 |
}
|
28 |
|
29 |
.sidebar.open {
|