Spaces:
Sleeping
Sleeping
Vlad Bastina commited on
Commit ·
7fe71fb
1
Parent(s): 8bacc70
style
Browse files- app.py +13 -1
- style.css +56 -41
- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
/*
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
text-align: center;
|
| 29 |
-
font-family: 'Arial', sans-serif; /* Example font */
|
| 30 |
}
|
| 31 |
|
| 32 |
-
/*
|
| 33 |
-
|
| 34 |
-
|
| 35 |
}
|
| 36 |
|
| 37 |
-
/*
|
| 38 |
-
.
|
| 39 |
-
|
| 40 |
-
color: white;
|
| 41 |
-
padding: 10px 20px;
|
| 42 |
-
border-radius: 5px;
|
| 43 |
-
border: none;
|
| 44 |
}
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
-
/*
|
| 50 |
-
.
|
| 51 |
-
|
| 52 |
-
background-color: #e8eaf6;
|
| 53 |
-
color: #1a237e;
|
| 54 |
}
|
| 55 |
|
| 56 |
-
/*
|
| 57 |
-
|
|
|
|
|
|
|
|
|
| 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
|
|