Update app.py
Browse files
app.py
CHANGED
|
@@ -6,49 +6,50 @@ st.set_page_config(
|
|
| 6 |
page_icon="🔤"
|
| 7 |
)
|
| 8 |
|
| 9 |
-
# ----------
|
| 10 |
st.markdown("""
|
| 11 |
<style>
|
| 12 |
body {
|
| 13 |
-
background: linear-gradient(135deg, #
|
| 14 |
-
}
|
| 15 |
-
.main {
|
| 16 |
-
background: transparent;
|
| 17 |
}
|
|
|
|
|
|
|
| 18 |
.card {
|
| 19 |
-
background: rgba(
|
| 20 |
-
backdrop-filter: blur(
|
| 21 |
-
-
|
| 22 |
-
|
| 23 |
-
|
| 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: #
|
| 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, #
|
| 41 |
-
color:
|
| 42 |
font-weight: bold;
|
| 43 |
-
transition: 0.
|
| 44 |
}
|
| 45 |
.stButton>button:hover {
|
| 46 |
-
transform: scale(1.
|
| 47 |
-
|
| 48 |
}
|
| 49 |
.footer {
|
| 50 |
text-align: center;
|
| 51 |
-
color: #
|
| 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>
|
| 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)
|