lynz1910 commited on
Commit
b154781
·
verified ·
1 Parent(s): 842d604

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
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 mengubah background color tab */
61
  .gradio-tab-item:nth-child(1) {
62
- background-color: red !important; /* Red background for the first tab ("Home") */
 
 
63
  }
64
 
 
65
  .gradio-tab-item:nth-child(2) {
66
- background-color: orange !important; /* Orange background for the second tab ("Coba Sekarang") */
 
 
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 {