GilbertClaus commited on
Commit
41c32b9
·
1 Parent(s): 1bca1e5
app.py CHANGED
@@ -1,25 +1,16 @@
1
  import streamlit as st
2
- from streamlit_option_menu import option_menu
3
- import json
4
 
5
- # Load ikon dari JSON
6
- with open("icons.json", "r") as file:
7
- icons_dict = json.load(file)
8
 
9
- # List opsi menu
10
- menu_options = ["Series", "NEW Release", "Beranda", "Acak", "Genre", "Uncensored",
11
- "2D", "L2D", "2D Motion", "3D", "JAV", "JAV Cosplay",
12
- "JAV Sub Indo", "Streaming", "Ouo"]
 
 
 
 
 
13
 
14
- # Ambil ikon dari JSON sesuai urutan menu
15
- menu_icons = [icons_dict[option] for option in menu_options]
16
-
17
- # Navigasi Sidebar
18
- with st.sidebar:
19
- # Tampilkan menu dengan ikon dari JSON
20
- selected = option_menu("Nekopoi", menu_options, icons=menu_icons, menu_icon="cast", default_index=13)
21
-
22
- # horizontal Menu
23
- selected2 = option_menu(None, ["Home", "Upload", "Tasks", 'Settings'],
24
- icons=['house', 'cloud-upload', "list-task", 'gear'],
25
- menu_icon="cast", default_index=0, orientation="horizontal")
 
1
  import streamlit as st
 
 
2
 
3
+ st.set_page_config(page_title="My App", layout="wide")
 
 
4
 
5
+ # Sidebar Navigation
6
+ st.sidebar.page_link("pages/home.py", label="🏠 Home")
7
+ st.sidebar.page_link("pages/trending.py", label="🔥 Trending")
8
+ st.sidebar.page_link("pages/categories.py", label="📂 Categories")
9
+ st.sidebar.page_link("pages/favorites.py", label="❤️ Favorites")
10
+ st.sidebar.page_link("pages/history.py", label="⏳ History")
11
+ st.sidebar.page_link("pages/settings.py", label="⚙️ Settings")
12
+ st.sidebar.page_link("pages/help.py", label="❓ Help")
13
+ st.sidebar.page_link("pages/about.py", label="ℹ️ About")
14
 
15
+ st.write("# Welcome to My App! 🚀")
16
+ st.write("Silakan pilih menu dari sidebar.")
 
 
 
 
 
 
 
 
 
 
icons.json CHANGED
@@ -1,18 +1,10 @@
1
  {
2
- "Series": "search",
3
- "NEW Release": "bell",
4
- "Beranda": "rocket-takeoff",
5
- "Acak": "bug",
6
- "Genre": "box-fill",
7
- "Uncensored": "fire",
8
- "2D": "wifi",
9
- "L2D": "star",
10
- "2D Motion": "moon-stars",
11
- "3D": "gear",
12
- "JAV": "yin-yang",
13
- "JAV Cosplay": "lightning",
14
- "JAV Sub Indo": "bookmarks-fill",
15
- "Streaming": "heart",
16
- "Ouo": "card-image"
17
- }
18
-
 
1
  {
2
+ "Home": "house-door",
3
+ "Trending": "fire",
4
+ "Categories": "grid",
5
+ "Favorites": "heart",
6
+ "History": "clock-history",
7
+ "Settings": "gear",
8
+ "Help": "question-circle",
9
+ "About": "info-circle"
10
+ }
 
 
 
 
 
 
 
 
pages/about.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="About", layout="wide")
4
+
5
+ st.write("# ℹ️ About")
6
+ st.write("Informasi tentang aplikasi ini.")
pages/categories.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Categories", layout="wide")
4
+
5
+ st.write("# 📂 Categories")
6
+ st.write("Pilih kategori yang tersedia di sini.")
pages/favorites.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Favorites", layout="wide")
4
+
5
+ st.write("# ❤️ Favorites")
6
+ st.write("Daftar favoritmu ada di sini.")
pages/help.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Help", layout="wide")
4
+
5
+ st.write("# ❓ Help")
6
+ st.write("Ada pertanyaan? Cek bagian bantuan di sini.")
pages/history.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="History", layout="wide")
4
+
5
+ st.write("# ⏳ History")
6
+ st.write("Riwayat aktivitasmu ada di sini.")
pages/home.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Home", layout="wide")
4
+
5
+ st.write("# 🏠 Home")
6
+ st.write("Selamat datang di halaman Home!")
pages/settings.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Settings", layout="wide")
4
+
5
+ st.write("# ⚙️ Settings")
6
+ st.write("Ubah pengaturan aplikasi di sini.")
pages/trending.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(page_title="Trending", layout="wide")
4
+
5
+ st.write("# 🔥 Trending")
6
+ st.write("Halaman ini menampilkan konten yang sedang trending.")