feat: scaffold initial DevPlace project with FastAPI, SQLite auth, and SSR routing

Add complete project skeleton including .gitignore, Makefile, AGENTS.md, config, database init with indexes, main app with router mounting for auth/feed/posts/comments/projects/profile/messages/notifications/votes, Pydantic models for signup/login/post/comment/project/message/profile, and auth router with signup/login page rendering and form handling.
This commit is contained in:
2026-05-10 07:08:12 +00:00
commit 15a3b990fe
54 changed files with 5906 additions and 0 deletions
+287
View File
@@ -0,0 +1,287 @@
.feed-layout {
display: grid;
grid-template-columns: var(--sidebar-width) 1fr 280px;
gap: 1.5rem;
align-items: start;
}
.feed-sidebar {
position: sticky;
top: calc(var(--nav-height) + 1rem);
}
.feed-sidebar h3 {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.feed-categories {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.feed-category {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.5rem 0.75rem;
border-radius: var(--radius);
font-size: 0.875rem;
color: var(--text-secondary);
transition: all 0.2s;
}
.feed-category:hover {
background: var(--bg-card);
color: var(--text-primary);
}
.feed-category.active {
background: var(--accent-light);
color: var(--accent);
font-weight: 600;
}
.feed-category .dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.feed-nav {
display: flex;
align-items: center;
gap: 0.25rem;
margin-bottom: 1rem;
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 0.25rem;
border: 1px solid var(--border);
}
.feed-nav-btn {
padding: 0.5rem 1rem;
border-radius: var(--radius);
font-size: 0.8125rem;
font-weight: 600;
color: var(--text-secondary);
transition: all 0.2s;
}
.feed-nav-btn:hover {
color: var(--text-primary);
}
.feed-nav-btn.active {
background: var(--accent);
color: #fff;
}
.feed-nav-actions {
margin-left: auto;
display: flex;
gap: 0.25rem;
}
.feed-posts {
display: flex;
flex-direction: column;
gap: 1rem;
}
.post-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1rem;
transition: border-color 0.2s;
}
.post-card:hover {
border-color: var(--border-light);
}
.post-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
.post-author {
font-weight: 600;
font-size: 0.875rem;
}
.post-author-role {
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 400;
}
.post-time {
font-size: 0.75rem;
color: var(--text-muted);
margin-left: auto;
}
.post-topic {
margin-bottom: 0.75rem;
}
.post-title {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.post-content {
font-size: 0.875rem;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 0.75rem;
word-break: break-word;
}
.post-actions {
display: flex;
align-items: center;
gap: 0.25rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.post-action-btn {
display: flex;
align-items: center;
gap: 0.375rem;
padding: 0.375rem 0.625rem;
border-radius: var(--radius);
font-size: 0.8125rem;
color: var(--text-muted);
transition: all 0.2s;
}
.post-action-btn:hover {
background: var(--bg-card-hover);
color: var(--text-secondary);
}
.post-action-btn.voted {
color: var(--accent);
}
.feed-right {
position: sticky;
top: calc(var(--nav-height) + 1rem);
display: flex;
flex-direction: column;
gap: 1rem;
}
.daily-topic-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1rem;
}
.daily-topic-label {
font-size: 0.6875rem;
font-weight: 700;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.5rem;
}
.daily-topic-card h4 {
font-size: 0.875rem;
margin-bottom: 0.375rem;
}
.daily-topic-card p {
font-size: 0.8125rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.daily-topic-card .topic-links {
display: flex;
gap: 0.75rem;
}
.daily-topic-card .topic-links a {
font-size: 0.75rem;
font-weight: 600;
}
.community-stats {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1rem;
}
.community-stats h3 {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.stat-row {
display: flex;
justify-content: space-between;
padding: 0.375rem 0;
font-size: 0.8125rem;
}
.stat-row .label {
color: var(--text-secondary);
}
.stat-row .value {
font-weight: 600;
}
.feed-fab {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--accent);
color: #fff;
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-lg);
transition: all 0.2s;
z-index: 100;
}
.feed-fab:hover {
background: var(--accent-hover);
transform: scale(1.05);
}
@media (max-width: 1024px) {
.feed-layout {
grid-template-columns: 1fr;
}
.feed-sidebar, .feed-right {
display: none;
}
}