Spaces:
Sleeping
Sleeping
File size: 1,891 Bytes
1227b62 4b010ad 1227b62 4b010ad 1227b62 ab80863 1227b62 1d163df 1227b62 1d163df 1227b62 70f6b77 1227b62 70f6b77 1227b62 70f6b77 1227b62 70f6b77 1d163df ab80863 |
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
try:
import streamlit as st
except ImportError:
import subprocess
subprocess.run(["pip", "install", "streamlit"])
import streamlit as st
import random
# Set up the Streamlit page
st.set_page_config(page_title="AutoCAD Commands Explorer", layout="wide")
# Custom CSS
st.markdown("""
<style>
body {
background-color: #e6f0ff;
}
.stApp {
background-color: #e6f0ff;
}
.title {
font-size: 3em;
text-align: center;
color: #003366;
margin-bottom: 20px;
font-weight: bold;
}
.command-card {
background-color: #ffffff;
padding: 15px;
border-radius: 10px;
margin-bottom: 15px;
box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}
.command-name {
font-weight: bold;
font-size: 20px;
color: #003366;
}
.command-desc {
font-size: 15px;
color: #333333;
}
</style>
""", unsafe_allow_html=True)
st.markdown('<div class="title">📘 AutoCAD Commands Reference (200)</div>', unsafe_allow_html=True)
# Generate 200 sample commands
commands = []
for i in range(1, 201):
commands.append({
"Command": f"CMD{i}",
"Description": f"This is a description for AutoCAD command CMD{i} used to perform operation {random.choice(['drawing', 'editing', 'modifying', 'viewing'])}."
})
# Layout in two columns
col1, col2 = st.columns(2)
for idx, cmd in enumerate(commands):
with (col1 if idx % 2 == 0 else col2):
st.markdown(f"""
<div class="command-card">
<div class="command-name">🛠️ {cmd['Command']}</div>
<div class="command-desc">{cmd['Description']}</div>
</div>
""", unsafe_allow_html=True)
|