File size: 2,848 Bytes
4b010ad
 
 
e2f00f6
4b010ad
e2f00f6
4b010ad
 
 
e2f00f6
 
 
 
4b010ad
 
 
 
e2f00f6
 
 
4b010ad
 
 
e2f00f6
4b010ad
e2f00f6
 
4b010ad
 
e2f00f6
 
 
 
 
4b010ad
1d163df
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4b010ad
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import streamlit as st

# Page setup
st.set_page_config(page_title="AutoCAD Command Guide", layout="wide")

# Custom style
st.markdown("""
    <style>
        body {
            background-color: #e0f0ff;
        }
        .stApp {
            background-color: #e0f0ff;
        }
        .title {
            text-align: center;
            font-size: 40px;
            color: #003366;
            font-weight: bold;
            margin-bottom: 30px;
        }
        .command-box {
            background-color: #ffffff;
            border-left: 6px solid #3399ff;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .command-name {
            font-size: 24px;
            color: #003366;
            margin-bottom: 10px;
            font-weight: 600;
        }
        .description {
            font-size: 16px;
            color: #333333;
        }
        .youtube-link {
            margin-top: 10px;
            font-size: 15px;
        }
        .youtube-link a {
            color: #0077cc;
            text-decoration: none;
            font-weight: bold;
        }
    </style>
""", unsafe_allow_html=True)

# Title
st.markdown('<div class="title">📘 AutoCAD Commands Reference</div>', 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"""
            <div class="command-box">
                <div class="command-name">🛠️ {cmd['Command']}</div>
                <div class="description">{cmd['Description']}</div>
                <div class="youtube-link">
                    ▶️ <a href="{cmd['YouTube']}" target="_blank">Watch on YouTube</a>
                </div>
            </div>
        """, unsafe_allow_html=True)