Kdkdhdhfdk's picture
Code moi une appli de modélisation 3D similaire à solidwork
d5ae462 verified
Raw History Blame Contribute Delete
2.26 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f7fa;
color: #333;
}
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
.app-header {
background: linear-gradient(135deg, #434343 0%, #1e1e1e 100%);
color: white;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.app-header h1 {
font-size: 1.5rem;
font-weight: 600;
}
.subtitle {
color: #4fc3f7;
font-weight: 300;
}
.toolbar {
display: flex;
gap: 0.5rem;
}
.tool-btn {
background: #4fc3f7;
border: none;
color: white;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.tool-btn:hover {
background: #29b6f6;
transform: translateY(-2px);
}
.main-content {
display: flex;
flex: 1;
overflow: hidden;
}
.tools-panel {
width: 250px;
background: white;
padding: 1rem;
border-right: 1px solid #ddd;
overflow-y: auto;
}
.tool-category {
margin-bottom: 1.5rem;
}
.tool-category h3 {
margin-bottom: 0.8rem;
color: #666;
font-size: 0.9rem;
text-transform: uppercase;
}
.shape-btn, .modifier-btn {
display: block;
width: 100%;
padding: 0.5rem;
margin-bottom: 0.5rem;
background: #f0f0f0;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.shape-btn:hover, .modifier-btn:hover {
background: #e0e0e0;
}
#render-container {
flex: 1;
background: #e9e9e9;
}
.properties-panel {
width: 300px;
background: white;
padding: 1rem;
border-left: 1px solid #ddd;
overflow-y: auto;
}
.property-control {
margin-bottom: 1rem;
}
.property-control label {
display: block;
margin-bottom: 0.3rem;
font-size: 0.9rem;
color: #666;
}
.property-control input[type="range"] {
width: 100%;
}
.history-section {
margin-top: 2rem;
}
#history-list {
list-style: none;
font-size: 0.9rem;
}
#history-list li {
padding: 0.3rem 0;
border-bottom: 1px solid #eee;
}