Milind Kamat commited on
Commit
2e28542
·
1 Parent(s): 05c4a78

first commit

Browse files

Signed-off-by: Milind Kamat <36366961+milindkamat0507@users.noreply.github.com>

Files changed (5) hide show
  1. app.py +87 -0
  2. pages/library.py +5 -0
  3. pages/pricing.py +5 -0
  4. pages/streamlit.py +7 -0
  5. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.markdown("""
4
+ <style>
5
+ /* Hide default Streamlit elements */
6
+ #MainMenu {visibility: hidden;}
7
+ header {visibility: hidden;}
8
+ footer {visibility: hidden;}
9
+
10
+ /* Navigation bar container */
11
+ .nav-container {
12
+ position: fixed;
13
+ top: 0;
14
+ left: 0;
15
+ right: 0;
16
+ display: flex;
17
+ justify-content: space-between;
18
+ align-items: center;
19
+ padding: 0.8rem 2rem;
20
+ background-color: white;
21
+ box-shadow: 0 2px 4px rgba(0,0,0,0.08);
22
+ z-index: 1000;
23
+ }
24
+
25
+ /* Logo */
26
+ .logo {
27
+ color: #1a73e8;
28
+ font-size: 1.2rem;
29
+ font-weight: 600;
30
+ text-decoration: none;
31
+ }
32
+
33
+ /* Search box */
34
+ .search-box {
35
+ flex: 1;
36
+ max-width: 500px;
37
+ margin: 0 2rem;
38
+ padding: 0.6rem 1rem;
39
+ border: 1px solid #ddd;
40
+ border-radius: 8px;
41
+ font-size: 0.9rem;
42
+ }
43
+
44
+ /* Navigation links */
45
+ .nav-links {
46
+ display: flex;
47
+ gap: 1.2rem;
48
+ align-items: center;
49
+ }
50
+
51
+ .nav-link {
52
+ color: #5f6368;
53
+ text-decoration: none;
54
+ font-size: 0.9rem;
55
+ font-weight: 500;
56
+ padding: 0.5rem 0.8rem;
57
+ border-radius: 4px;
58
+ transition: all 0.2s ease;
59
+ }
60
+
61
+ .nav-link:hover {
62
+ color: #1a73e8;
63
+ background-color: rgba(26, 115, 232, 0.1);
64
+ }
65
+
66
+ /* Add margin to main content to prevent overlap */
67
+ .main-content {
68
+ margin-top: 4rem;
69
+ }
70
+ </style>
71
+
72
+ <div class="nav-container">
73
+ <a href="/" class="logo">SCISPACE</a>
74
+ <input type="text" class="search-box" placeholder="Search or ask a question">
75
+ <div class="nav-links">
76
+ <a href="https://github.com" target="_blank" class="nav-link">GitHub</a>
77
+ <a href="https://scholar.google.com" target="_blank" class="nav-link">Google Scholar</a>
78
+ <a href="https://openai.com" target="_blank" class="nav-link">OpenAI</a>
79
+ <a href="/streamlit" class="nav-link">Streamlit</a>
80
+ <a href="/pricing" class="nav-link">Pricing</a>
81
+ <a href="/library" class="nav-link">My Library</a>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="main-content">
86
+ </div>
87
+ """, unsafe_allow_html=True)
pages/library.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # pages/library.py
2
+ import streamlit as st
3
+
4
+ st.title('My Library')
5
+ st.write('Welcome to the Library page')
pages/pricing.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # pages/pricing.py
2
+ import streamlit as st
3
+
4
+ st.title('Pricing')
5
+ st.write('Welcome to the Pricing page')
pages/streamlit.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+
2
+ import streamlit as st
3
+
4
+ st.title('Streamlit Page')
5
+ st.write('This is the Streamlit page content')
6
+
7
+
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ streamlit
2
+ streamlit_option_menu