ebhon commited on
Commit
5d094c5
·
verified ·
1 Parent(s): ea50c95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -13
app.py CHANGED
@@ -24,28 +24,34 @@ st.set_page_config(
24
  # Custom CSS for centering and background
25
  st.markdown("""
26
  <style>
 
27
  body {
28
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important;
29
  }
30
- .main {
31
- display: flex;
32
- flex-direction: column;
33
- align-items: center;
34
- justify-content: center;
35
- min-height: 90vh;
 
36
  }
 
 
37
  .centered-box {
38
  background: white;
39
  border-radius: 16px;
40
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
41
- padding: 2.5rem 2rem;
42
- max-width: 700px;
43
- width: 100%;
44
- margin: 2rem auto;
45
  }
 
 
46
  .stButton>button {
47
  width: 100%;
48
  }
 
 
49
  .stAlert {
50
  background-color: rgb(255, 251, 235);
51
  border: none;
@@ -55,9 +61,7 @@ st.markdown("""
55
  </style>
56
  """, unsafe_allow_html=True)
57
 
58
- # Main container
59
- st.markdown('<div class="main">', unsafe_allow_html=True)
60
- st.markdown('<div class="centered-box">', unsafe_allow_html=True)
61
 
62
  st.title("🦀 MangaFlow: AI Manga Translator")
63
  st.write("Upload a manga page to translate Japanese text to English. Powered by YOLO, Manga OCR, and DeepL.")
 
24
  # Custom CSS for centering and background
25
  st.markdown("""
26
  <style>
27
+ /* Background Gradient */
28
  body {
29
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important;
30
  }
31
+
32
+ /* Main content container */
33
+ .main .block-container {
34
+ max-width: 900px;
35
+ margin: 0 auto;
36
+ padding-top: 2rem;
37
+ padding-bottom: 2rem;
38
  }
39
+
40
+ /* Custom box style */
41
  .centered-box {
42
  background: white;
43
  border-radius: 16px;
44
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
45
+ padding: 2rem;
46
+ margin-bottom: 2rem;
 
 
47
  }
48
+
49
+ /* Button stretch */
50
  .stButton>button {
51
  width: 100%;
52
  }
53
+
54
+ /* Alert style */
55
  .stAlert {
56
  background-color: rgb(255, 251, 235);
57
  border: none;
 
61
  </style>
62
  """, unsafe_allow_html=True)
63
 
64
+
 
 
65
 
66
  st.title("🦀 MangaFlow: AI Manga Translator")
67
  st.write("Upload a manga page to translate Japanese text to English. Powered by YOLO, Manga OCR, and DeepL.")