CCockrum commited on
Commit
e5ec22d
Β·
verified Β·
1 Parent(s): 8956cd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -11
app.py CHANGED
@@ -115,14 +115,17 @@ search_query = collections[selected]
115
  # Define the collection URL
116
  collection_url = f"https://www.loc.gov/search/?q={search_query}&fo=json"
117
 
118
- # Display API URL
119
- st.sidebar.write(f"Selected Collection: {selected}")
120
- st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
121
 
122
  # πŸ”— Helpful Resources (styled and moved below dropdown)
123
  st.sidebar.markdown("### πŸ”— Helpful Resources", unsafe_allow_html=True)
 
124
  st.sidebar.markdown("""
125
  <style>
 
 
 
 
 
126
  .sidebar-links a {
127
  color: lightgray !important;
128
  text-decoration: none !important;
@@ -131,17 +134,21 @@ st.sidebar.markdown("""
131
  text-decoration: underline !important;
132
  }
133
  </style>
134
- <div class="sidebar-links">
135
- <ul style='padding-left: 1em'>
136
- <li><a href="https://www.loc.gov/apis/" target="_blank">LOC API Info</a></li>
137
- <li><a href="https://www.loc.gov/" target="_blank">Library of Congress Homepage</a></li>
138
- <li><a href="https://www.loc.gov/collections/" target="_blank">LOC Digital Collections</a></li>
139
- <li><a href="https://www.loc.gov/marc/" target="_blank">MARC Metadata Standards</a></li>
140
- <li><a href="https://labs.loc.gov/about-labs/digital-strategy/" target="_blank">LOC Digital Strategy</a></li>
141
- </ul>
 
 
 
142
  </div>
143
  """, unsafe_allow_html=True)
144
 
 
145
  # Add a fetch button to make the action explicit
146
  fetch_data = True
147
 
 
115
  # Define the collection URL
116
  collection_url = f"https://www.loc.gov/search/?q={search_query}&fo=json"
117
 
 
 
 
118
 
119
  # πŸ”— Helpful Resources (styled and moved below dropdown)
120
  st.sidebar.markdown("### πŸ”— Helpful Resources", unsafe_allow_html=True)
121
+ # πŸ”— Helpful Resources styled section
122
  st.sidebar.markdown("""
123
  <style>
124
+ .sidebar-section h3 {
125
+ color: lightgray !important;
126
+ font-size: 1.1rem !important;
127
+ margin-top: 1.5rem;
128
+ }
129
  .sidebar-links a {
130
  color: lightgray !important;
131
  text-decoration: none !important;
 
134
  text-decoration: underline !important;
135
  }
136
  </style>
137
+ <div class="sidebar-section">
138
+ <h3>πŸ”— Helpful Resources</h3>
139
+ <div class="sidebar-links">
140
+ <ul style='padding-left: 1em'>
141
+ <li><a href="https://www.loc.gov/apis/" target="_blank">LOC API Info</a></li>
142
+ <li><a href="https://www.loc.gov/" target="_blank">Library of Congress Homepage</a></li>
143
+ <li><a href="https://www.loc.gov/collections/" target="_blank">LOC Digital Collections</a></li>
144
+ <li><a href="https://www.loc.gov/marc/" target="_blank">MARC Metadata Standards</a></li>
145
+ <li><a href="https://labs.loc.gov/about-labs/digital-strategy/" target="_blank">LOC Digital Strategy</a></li>
146
+ </ul>
147
+ </div>
148
  </div>
149
  """, unsafe_allow_html=True)
150
 
151
+
152
  # Add a fetch button to make the action explicit
153
  fetch_data = True
154