styles.css•6.39 kB
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
border-bottom: 1px solid #e0e0e0;
background: white;
margin-bottom: 2rem;
}
header h1 {
color: #2563eb;
}
#nav {
display: flex;
gap: 1rem;
align-items: center;
position: relative;
}
button {
padding: 0.5rem 1rem;
border: none;
border-radius: 0.375rem;
cursor: pointer;
font-size: 0.875rem;
transition: background-color 0.2s;
}
button:hover {
opacity: 0.9;
}
#loginBtn, #registerBtn {
background-color: #2563eb;
color: white;
}
#userMenu {
background-color: #f3f4f6;
color: #374151;
}
/* Welcome section */
.welcome-section {
text-align: center;
padding: 3rem 0;
background: white;
border-radius: 0.5rem;
margin-bottom: 2rem;
}
.welcome-section h2 {
font-size: 2.25rem;
margin-bottom: 1rem;
color: #1f2937;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.feature {
padding: 1.5rem;
background: #f9fafb;
border-radius: 0.5rem;
border: 1px solid #e5e7eb;
}
.feature h3 {
color: #2563eb;
margin-bottom: 0.5rem;
}
/* Dashboard */
.dashboard-grid {
display: grid;
grid-template-columns: 250px 1fr;
gap: 2rem;
}
.sidebar {
background: white;
padding: 1.5rem;
border-radius: 0.5rem;
border: 1px solid #e5e7eb;
height: fit-content;
}
.sidebar h3 {
margin-bottom: 1rem;
color: #1f2937;
}
.slash-commands {
margin-bottom: 1.5rem;
}
#commandInput {
width: 100%;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
margin-bottom: 0.5rem;
}
.suggestions {
max-height: 200px;
overflow-y: auto;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
background: white;
}
.suggestion-item {
padding: 0.5rem;
cursor: pointer;
border-bottom: 1px solid #f3f4f6;
}
.suggestion-item:hover {
background-color: #f9fafb;
}
.main-content {
background: white;
padding: 1.5rem;
border-radius: 0.5rem;
border: 1px solid #e5e7eb;
}
/* Prompts grid */
.prompts-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
}
.prompt-card {
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
padding: 1.5rem;
background: white;
transition: box-shadow 0.2s;
}
.prompt-card:hover {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.prompt-card h4 {
margin-bottom: 0.5rem;
color: #1f2937;
}
.prompt-card p {
color: #6b7280;
font-size: 0.875rem;
margin-bottom: 1rem;
}
.prompt-tags {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin-bottom: 1rem;
}
.tag {
background: #e5e7eb;
color: #374151;
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
}
.prompt-actions {
display: flex;
gap: 0.5rem;
}
.btn-secondary {
background-color: #6b7280;
color: white;
}
.btn-primary {
background-color: #2563eb;
color: white;
}
/* Prompt detail */
.prompt-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.prompt-content {
background: #f9fafb;
padding: 1rem;
border-radius: 0.375rem;
margin-bottom: 1.5rem;
white-space: pre-wrap;
font-family: monospace;
}
.variables-form {
display: grid;
gap: 1rem;
}
.variable-input {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.variable-input label {
font-weight: 500;
color: #374151;
}
.variable-input input,
.variable-input textarea {
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
}
/* Modals */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: white;
margin: 10% auto;
padding: 2rem;
border-radius: 0.5rem;
width: 90%;
max-width: 500px;
position: relative;
}
.close {
position: absolute;
right: 1rem;
top: 1rem;
font-size: 1.5rem;
cursor: pointer;
}
form {
display: flex;
flex-direction: column;
gap: 1rem;
}
input, textarea {
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
font-size: 1rem;
}
textarea {
min-height: 100px;
resize: vertical;
}
/* Dropdown menu */
.dropdown-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
background: white;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
z-index: 100;
}
.dropdown-menu a {
display: block;
padding: 0.75rem 1rem;
text-decoration: none;
color: #374151;
border-bottom: 1px solid #f3f4f6;
}
.dropdown-menu a:last-child {
border-bottom: none;
}
.dropdown-menu a:hover {
background: #f9fafb;
}
/* Plans */
.plans-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.plan-card {
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
padding: 1.5rem;
text-align: center;
}
.plan-card h4 {
color: #1f2937;
margin-bottom: 0.5rem;
}
.plan-price {
font-size: 2rem;
font-weight: bold;
color: #2563eb;
margin-bottom: 1rem;
}
.plan-features {
list-style: none;
text-align: left;
margin-bottom: 1.5rem;
}
.plan-features li {
margin-bottom: 0.5rem;
padding-left: 1rem;
position: relative;
}
.plan-features li:before {
content: '✓';
color: #10b981;
position: absolute;
left: 0;
}
/* Responsive */
@media (max-width: 768px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
.features {
grid-template-columns: 1fr;
}
.plans-grid {
grid-template-columns: 1fr;
}
}