This commit is contained in:
Jens Cornelsen
2024-12-09 20:37:43 +01:00
parent b866439729
commit 953c7e0520
2 changed files with 30 additions and 29 deletions

View File

@@ -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>

View File

@@ -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>