aazankhanYousafzai commited on
Commit
b1d3b94
·
verified ·
1 Parent(s): 0917013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -20
app.py CHANGED
@@ -6,49 +6,50 @@ st.set_page_config(
6
  page_icon="🔤"
7
  )
8
 
9
- # ---------- Glassmorphism + Gradient UI ----------
10
  st.markdown("""
11
  <style>
12
  body {
13
- background: linear-gradient(135deg, #667eea, #764ba2);
14
- }
15
- .main {
16
- background: transparent;
17
  }
 
 
18
  .card {
19
- background: rgba(255, 255, 255, 0.12);
20
- backdrop-filter: blur(12px);
21
- -webkit-backdrop-filter: blur(12px);
22
- border-radius: 20px;
23
- padding: 25px;
24
- box-shadow: 0 8px 30px rgba(0,0,0,0.2);
25
  max-width: 720px;
26
  margin: auto;
27
  }
28
  h1, p, label, h3 {
29
- color: #ffffff !important;
30
  text-align: center;
31
  }
32
  textarea {
33
  border-radius: 14px !important;
 
 
 
34
  }
35
  .stButton>button {
36
  width: 100%;
37
  height: 45px;
38
  border-radius: 12px;
39
  border: none;
40
- background: linear-gradient(90deg, #ff758c, #ff7eb3);
41
- color: white;
42
  font-weight: bold;
43
- transition: 0.3s ease;
44
  }
45
  .stButton>button:hover {
46
- transform: scale(1.05);
47
- background: linear-gradient(90deg, #ff5f7e, #ff6fae);
48
  }
49
  .footer {
50
  text-align: center;
51
- color: #eee;
52
  margin-top: 15px;
53
  font-size: 13px;
54
  }
@@ -59,7 +60,7 @@ textarea {
59
  st.markdown("<div class='card'>", unsafe_allow_html=True)
60
 
61
  st.markdown("<h1>🔤 Text Case Converter</h1>", unsafe_allow_html=True)
62
- st.markdown("<p>Transform your text in one click</p>", unsafe_allow_html=True)
63
 
64
  text = st.text_area("", placeholder="Type or paste your text here...", height=180)
65
 
@@ -88,4 +89,4 @@ if "out" in st.session_state:
88
  st.text_area("", st.session_state["out"], height=150)
89
 
90
  st.markdown("</div>", unsafe_allow_html=True)
91
- st.markdown("<div class='footer'>Made with ❤️ using Streamlit</div>", unsafe_allow_html=True)
 
6
  page_icon="🔤"
7
  )
8
 
9
+ # ---------- Cool Tech Theme ----------
10
  st.markdown("""
11
  <style>
12
  body {
13
+ background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
 
 
 
14
  }
15
+ .main { background: transparent; }
16
+
17
  .card {
18
+ background: rgba(0, 0, 0, 0.55);
19
+ backdrop-filter: blur(10px);
20
+ border-radius: 22px;
21
+ padding: 28px;
22
+ box-shadow: 0 0 25px rgba(0,255,255,0.25);
 
23
  max-width: 720px;
24
  margin: auto;
25
  }
26
  h1, p, label, h3 {
27
+ color: #e5f9ff !important;
28
  text-align: center;
29
  }
30
  textarea {
31
  border-radius: 14px !important;
32
+ background: #020617 !important;
33
+ color: #e5f9ff !important;
34
+ border: 1px solid #0ea5e9 !important;
35
  }
36
  .stButton>button {
37
  width: 100%;
38
  height: 45px;
39
  border-radius: 12px;
40
  border: none;
41
+ background: linear-gradient(90deg, #0ea5e9, #22d3ee);
42
+ color: #020617;
43
  font-weight: bold;
44
+ transition: 0.25s ease;
45
  }
46
  .stButton>button:hover {
47
+ transform: scale(1.06);
48
+ box-shadow: 0 0 15px #22d3ee;
49
  }
50
  .footer {
51
  text-align: center;
52
+ color: #94a3b8;
53
  margin-top: 15px;
54
  font-size: 13px;
55
  }
 
60
  st.markdown("<div class='card'>", unsafe_allow_html=True)
61
 
62
  st.markdown("<h1>🔤 Text Case Converter</h1>", unsafe_allow_html=True)
63
+ st.markdown("<p>Change your text instantly</p>", unsafe_allow_html=True)
64
 
65
  text = st.text_area("", placeholder="Type or paste your text here...", height=180)
66
 
 
89
  st.text_area("", st.session_state["out"], height=150)
90
 
91
  st.markdown("</div>", unsafe_allow_html=True)
92
+ st.markdown("<div class='footer'>Made with ❤️ using Streamlit</div>", unsafe_allow_html=True)