import streamlit as st # Page setup st.set_page_config(page_title="AutoCAD Command Guide", layout="wide") # Custom style custom_css = """ """ st.markdown(custom_css, unsafe_allow_html=True) # Title st.markdown('
📘 AutoCAD Commands Reference
', unsafe_allow_html=True) # Command data commands = [ { "Command": "LINE", "Description": "Creates straight line segments between two points.", "YouTube": "https://www.youtube.com/watch?v=4Hsb5j5JH7A" }, { "Command": "CIRCLE", "Description": "Creates a circle based on center point and radius.", "YouTube": "https://www.youtube.com/watch?v=ZFbP13bU5Ck" }, { "Command": "TRIM", "Description": "Trims objects to meet the edges of other objects.", "YouTube": "https://www.youtube.com/watch?v=8QULwXuHEjM" }, { "Command": "EXTEND", "Description": "Extends objects to reach the edges of other objects.", "YouTube": "https://www.youtube.com/watch?v=EYYJSXruK4k" }, { "Command": "OFFSET", "Description": "Creates concentric circles, parallel lines, and parallel curves.", "YouTube": "https://www.youtube.com/watch?v=3AwYIjvQqek" } ] # Display 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"""
🛠️ {cmd['Command']}
{cmd['Description']}
""", unsafe_allow_html=True) ``