CAD
This commit is contained in:
@@ -24,35 +24,6 @@ const { title } = Astro.props;
|
|||||||
<title>
|
<title>
|
||||||
{title || "Simple CAD Program - Connected Lines"}
|
{title || "Simple CAD Program - Connected Lines"}
|
||||||
</title>
|
</title>
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
canvas {
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
cursor: crosshair;
|
|
||||||
}
|
|
||||||
.controls {
|
|
||||||
margin: 10px;
|
|
||||||
}
|
|
||||||
.controls button {
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
.log {
|
|
||||||
margin: 10px;
|
|
||||||
width: 800px;
|
|
||||||
max-height: 150px;
|
|
||||||
overflow-y: auto;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
padding: 10px;
|
|
||||||
background: #f9f9f9;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -184,4 +184,34 @@ import Layout from "#layouts/layoutCAD.astro";
|
|||||||
drawGrid(); // Draw the grid when the page loads
|
drawGrid(); // Draw the grid when the page loads
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
canvas {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
cursor: crosshair;
|
||||||
|
}
|
||||||
|
.controls {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.controls button {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.log {
|
||||||
|
margin: 10px;
|
||||||
|
width: 800px;
|
||||||
|
max-height: 150px;
|
||||||
|
overflow-y: auto;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
padding: 10px;
|
||||||
|
background: #f9f9f9;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
</Layout>
|
</Layout>
|
||||||
Reference in New Issue
Block a user