Basic project functions

This commit is contained in:
Malte Schröder
2025-12-23 15:51:15 +01:00
commit 42cbeb9f1e
11 changed files with 6656 additions and 0 deletions

BIN
assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

157
assets/main.css Normal file
View File

@@ -0,0 +1,157 @@
body {
background-color: #0d1117;
color: #e6edf3;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
sans-serif;
margin: 0;
overflow: hidden;
}
#hero {
display: flex;
height: 100vh;
}
#sidebar {
width: 260px;
background-color: #161b22;
border-right: 1px solid #30363d;
display: flex;
flex-direction: column;
padding: 16px;
}
.project-list {
flex-grow: 1;
overflow-y: auto;
}
.project-row {
display: flex;
margin-bottom: 4px;
}
.project-item {
flex-grow: 1;
background: transparent;
border: none;
color: #c9d1d9;
text-align: left;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
}
.project-item:hover {
background-color: #21262d;
}
.project-item.active {
background-color: #238636;
color: white;
}
.delete-btn {
background: transparent;
border: none;
color: #8b949e;
cursor: pointer;
padding: 0 10px;
font-size: 18px;
}
.delete-btn:hover {
color: #f85149;
}
#add-project {
background-color: #21262d;
border: 1px solid #30363d;
color: #58a6ff;
padding: 10px;
border-radius: 6px;
cursor: pointer;
margin-top: 10px;
}
#open-project {
flex-grow: 1;
display: flex;
flex-direction: column;
padding: 40px;
}
.title-input {
background: transparent;
border: none;
font-size: 32px;
font-weight: bold;
color: white;
outline: none;
margin-bottom: 20px;
}
.content-editor {
background: transparent;
border: none;
color: #c9d1d9;
font-size: 18px;
line-height: 1.6;
flex-grow: 1;
resize: none;
outline: none;
}
.empty-state {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
color: #8b949e;
}
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
}
.modal-box {
background: #161b22;
padding: 24px;
border-radius: 12px;
border: 1px solid #30363d;
width: 300px;
text-align: center;
}
.modal-buttons {
display: flex;
gap: 10px;
justify-content: center;
margin-top: 20px;
}
.btn-confirm {
background: #da3633;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
}
.btn-cancel {
background: #30363d;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
}