Vlad Bastina commited on
Commit
7fe71fb
·
1 Parent(s): 8bacc70
Files changed (3) hide show
  1. app.py +13 -1
  2. style.css +56 -41
  3. zega_logo.svg +15 -0
app.py CHANGED
@@ -351,6 +351,11 @@ def create_txt_from_text(translated_text):
351
  return None
352
 
353
 
 
 
 
 
 
354
  load_css("style.css")
355
 
356
  # --- Streamlit App UI ---
@@ -358,7 +363,14 @@ st.title("📄 Document Translator")
358
 
359
  configure_gemini(None)
360
 
361
- st.sidebar.image('zega_logo.PNG',use_container_width=True)
 
 
 
 
 
 
 
362
 
363
  st.sidebar.markdown("---") # Separator
364
 
 
351
  return None
352
 
353
 
354
+ st.markdown("""
355
+ <link rel="preconnect" href="https://fonts.googleapis.com">
356
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
357
+ <link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap" rel="stylesheet">
358
+ """, unsafe_allow_html=True)
359
  load_css("style.css")
360
 
361
  # --- Streamlit App UI ---
 
363
 
364
  configure_gemini(None)
365
 
366
+ logo_path = "zega_logo.svg"
367
+ if os.path.exists(logo_path):
368
+ with open(logo_path, "r", encoding="utf-8") as f:
369
+ svg_content = f.read()
370
+
371
+ st.sidebar.markdown(svg_content,unsafe_allow_html=True)
372
+ else:
373
+ st.sidebar.warning("Logo zega_logo.PNG not found.")
374
 
375
  st.sidebar.markdown("---") # Separator
376
 
style.css CHANGED
@@ -1,57 +1,72 @@
1
- /* Target the main block container of the Streamlit app */
2
- .stApp {
3
- background-color: #f0f2f6; /* Light grey background */
 
4
  }
5
 
6
- /* Style the sidebar */
7
- [data-testid="stSidebar"] {
8
- background-color: #e8eaf6; /* Lighter purple/blue */
9
- border-right: 2px solid #1a237e; /* Dark blue border */
 
 
10
  }
11
-
12
- /* Style buttons in the sidebar */
13
- [data-testid="stSidebar"] .stButton>button {
14
- background-color: #3f51b5; /* Indigo */
15
- color: white;
16
- border-radius: 8px;
17
- border: none;
 
 
 
 
 
 
 
18
  }
19
 
20
- [data-testid="stSidebar"] .stButton>button:hover {
21
- background-color: #1a237e; /* Darker Indigo on hover */
22
- color: white;
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
- /* Style the main title */
26
- h1 {
27
- color: #2c3e50; /* Dark grey/blue */
28
- text-align: center;
29
- font-family: 'Arial', sans-serif; /* Example font */
30
  }
31
 
32
- /* Style subheaders */
33
- h2, h3 {
34
- color: #3f51b5; /* Indigo */
35
  }
36
 
37
- /* Style download buttons specifically */
38
- .stDownloadButton>button {
39
- background-color: #4CAF50; /* Green */
40
- color: white;
41
- padding: 10px 20px;
42
- border-radius: 5px;
43
- border: none;
44
  }
45
- .stDownloadButton>button:hover {
46
- background-color: #388E3C; /* Darker Green */
 
 
47
  }
48
 
49
- /* Style info boxes */
50
- .stAlert.st-alert.stInfo {
51
- border-left-color: #3f51b5 !important; /* Use !important carefully if needed */
52
- background-color: #e8eaf6;
53
- color: #1a237e;
54
  }
55
 
56
- /* You might need to inspect elements in your browser's developer tools
57
- to find the correct selectors for specific Streamlit elements. */
 
 
 
1
+ body {
2
+ font-family: 'Inter Tight', Arial, Helvetica, sans-serif !important;
3
+ font-size: 14px !important;
4
+ text-align: left !important;
5
  }
6
 
7
+ /* Headings */
8
+ h1, h2, h3 {
9
+ font-family: "Space Grotesk", sans-serif !important;
10
+ font-optical-sizing: auto !important;
11
+ font-weight: 500 !important;
12
+ font-style: normal !important;
13
  }
14
+ h1, h2 {
15
+ letter-spacing: -2px !important;
16
+ }
17
+ h1 {
18
+ font-size: 34px !important;
19
+ }
20
+ h2 {
21
+ font-size: 21px !important;
22
+ }
23
+ h3 {
24
+ font-size: 17px !important;
25
+ }
26
+ h4 {
27
+ font-size: 14px !important;
28
  }
29
 
30
+ /* Butoane */
31
+
32
+ button {
33
+ font-weight: 600 !important;
34
+ }
35
+ button:hover {
36
+ color: #FA6C03 !important;
37
+ border-color: #FA6C03 !important;
38
+ }
39
+ button:focus {
40
+ color: #fff !important;
41
+ background-color: #FA6C03 !important;
42
  }
43
 
44
+ /* Buton sidebar */
45
+ [data-testid="stSidebar"] .stButton>button {
46
+ background-color: #4169E1 !important;
 
 
47
  }
48
 
49
+ /* Bara loading */
50
+ .st-emotion-cache-1dp5vir {
51
+ background-image: linear-gradient(90deg, rgb(65, 105, 225), rgb(0, 255, 255)) !important;
52
  }
53
 
54
+ /* Bara stanga */
55
+ .st-emotion-cache-vmpjyt {
56
+ background-color: #f5f5f5 !important;
 
 
 
 
57
  }
58
+
59
+ /* Select */
60
+ .st-ae {
61
+ font-family: inherit !important;
62
  }
63
 
64
+ /* File Select */
65
+ .st-emotion-cache-1gulkj5 {
66
+ background-color: #f5f5f5 !important;
 
 
67
  }
68
 
69
+ /* Other fonts */
70
+ p {
71
+ font-family: 'Inter Tight', Arial, Helvetica, sans-serif !important;
72
+ }
zega_logo.svg ADDED