Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def page_one_content():
|
|
7 |
def page_two_content():
|
8 |
return "Ini adalah halaman kedua. Di sini Anda bisa melihat informasi kedua."
|
9 |
|
10 |
-
# Custom CSS untuk mengubah background color masing-masing tab
|
11 |
custom_css = """
|
12 |
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
|
13 |
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;700&display=swap');
|
@@ -57,13 +57,18 @@ body {
|
|
57 |
border-radius: 8px;
|
58 |
}
|
59 |
|
60 |
-
/* CSS untuk
|
61 |
.gradio-tab-item:nth-child(1) {
|
62 |
-
background-
|
|
|
|
|
63 |
}
|
64 |
|
|
|
65 |
.gradio-tab-item:nth-child(2) {
|
66 |
-
background-
|
|
|
|
|
67 |
}
|
68 |
|
69 |
.gradio-container::-webkit-scrollbar {
|
|
|
7 |
def page_two_content():
|
8 |
return "Ini adalah halaman kedua. Di sini Anda bisa melihat informasi kedua."
|
9 |
|
10 |
+
# Custom CSS untuk mengubah background color dan gambar masing-masing tab
|
11 |
custom_css = """
|
12 |
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
|
13 |
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;700&display=swap');
|
|
|
57 |
border-radius: 8px;
|
58 |
}
|
59 |
|
60 |
+
/* CSS untuk tab "Home" dengan background biru */
|
61 |
.gradio-tab-item:nth-child(1) {
|
62 |
+
background-image: url('https://example.com/home-background.jpg') !important;
|
63 |
+
background-size: cover !important;
|
64 |
+
color: white !important;
|
65 |
}
|
66 |
|
67 |
+
/* CSS untuk tab "Coba Sekarang" dengan background oranye */
|
68 |
.gradio-tab-item:nth-child(2) {
|
69 |
+
background-image: url('https://example.com/coba-sekarang-background.jpg') !important;
|
70 |
+
background-size: cover !important;
|
71 |
+
color: white !important;
|
72 |
}
|
73 |
|
74 |
.gradio-container::-webkit-scrollbar {
|