Skip to content

Commit

Permalink
CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelberston committed Nov 19, 2024
1 parent 640bf6a commit 568e72f
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>User Registration</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Advice of the day -->
Expand Down
129 changes: 129 additions & 0 deletions frontend/public/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/* Modern color palette and base styles */
:root {
--primary-color: #2563eb;
--primary-hover: #1d4ed8;
--background: #f8fafc;
--surface: #ffffff;
--text: #1f2937;
--error: #dc2626;
--success: #16a34a;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background-color: var(--background);
color: var(--text);
line-height: 1.6;
margin: 0;
padding: 2rem;
max-width: 800px;
margin: 0 auto;
}

/* Typography */
h1 {
color: var(--text);
font-size: 1.875rem;
margin-bottom: 1.5rem;
font-weight: 600;
}

h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
}

/* Forms */
form {
background: var(--surface);
padding: 2rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}

label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
}

input {
width: 100%;
padding: 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 6px;
margin-bottom: 1rem;
font-size: 1rem;
transition: border-color 0.15s ease;
}

input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
button {
background-color: var(--primary-color);
color: white;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.15s ease;
}

button:hover {
background-color: var(--primary-hover);
}

#logout-button {
background-color: #ef4444;
}

#logout-button:hover {
background-color: #dc2626;
}

/* Helper text */
.form-text {
font-size: 0.875rem;
color: #6b7280;
margin-top: -0.5rem;
}

/* Protected content section */
#protected-content {
background: var(--surface);
padding: 2rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Advice of the day section */
#advice-of-the-day {
background: var(--surface);
padding: 2rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}

/* Loading state */
#advice-loading {
color: #6b7280;
font-style: italic;
}

/* Response messages */
pre {
background: #f1f5f9;
padding: 1rem;
border-radius: 6px;
white-space: pre-wrap;
word-wrap: break-word;
}

0 comments on commit 568e72f

Please sign in to comment.