Spaces:
Sleeping
Sleeping
Kamran Zulfiqar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,50 +4,52 @@ import streamlit as st
|
|
4 |
st.set_page_config(page_title="AutoCAD Command Guide", layout="wide")
|
5 |
|
6 |
# Custom style
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
"""
|
|
|
|
|
51 |
|
52 |
# Title
|
53 |
st.markdown('<div class="title">📘 AutoCAD Commands Reference</div>', unsafe_allow_html=True)
|
@@ -95,4 +97,6 @@ for idx, cmd in enumerate(commands):
|
|
95 |
</div>
|
96 |
</div>
|
97 |
""", unsafe_allow_html=True)
|
|
|
|
|
98 |
|
|
|
4 |
st.set_page_config(page_title="AutoCAD Command Guide", layout="wide")
|
5 |
|
6 |
# Custom style
|
7 |
+
custom_css = """
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
background-color: #e0f0ff;
|
11 |
+
}
|
12 |
+
.stApp {
|
13 |
+
background-color: #e0f0ff;
|
14 |
+
}
|
15 |
+
.title {
|
16 |
+
text-align: center;
|
17 |
+
font-size: 40px;
|
18 |
+
color: #003366;
|
19 |
+
font-weight: bold;
|
20 |
+
margin-bottom: 30px;
|
21 |
+
}
|
22 |
+
.command-box {
|
23 |
+
background-color: #ffffff;
|
24 |
+
border-left: 6px solid #3399ff;
|
25 |
+
border-radius: 10px;
|
26 |
+
padding: 20px;
|
27 |
+
margin-bottom: 20px;
|
28 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
29 |
+
}
|
30 |
+
.command-name {
|
31 |
+
font-size: 24px;
|
32 |
+
color: #003366;
|
33 |
+
margin-bottom: 10px;
|
34 |
+
font-weight: 600;
|
35 |
+
}
|
36 |
+
.description {
|
37 |
+
font-size: 16px;
|
38 |
+
color: #333333;
|
39 |
+
}
|
40 |
+
.youtube-link {
|
41 |
+
margin-top: 10px;
|
42 |
+
font-size: 15px;
|
43 |
+
}
|
44 |
+
.youtube-link a {
|
45 |
+
color: #0077cc;
|
46 |
+
text-decoration: none;
|
47 |
+
font-weight: bold;
|
48 |
+
}
|
49 |
+
</style>
|
50 |
+
"""
|
51 |
+
|
52 |
+
st.markdown(custom_css, unsafe_allow_html=True)
|
53 |
|
54 |
# Title
|
55 |
st.markdown('<div class="title">📘 AutoCAD Commands Reference</div>', unsafe_allow_html=True)
|
|
|
97 |
</div>
|
98 |
</div>
|
99 |
""", unsafe_allow_html=True)
|
100 |
+
``
|
101 |
+
|
102 |
|