Skip to content

Commit

Permalink
Add complete survey implementation with all sections
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadphase committed Nov 11, 2024
1 parent 93220fc commit f5c1a22
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 113 deletions.
186 changes: 79 additions & 107 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,146 +1,118 @@
:root {
--primary-color: #2563eb;
--error-color: #ef4444;
--background-color: #f3f4f6;
}

body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--background-color);
}

.container {
min-height: 100vh;
padding: 1rem;
/* Add to existing CSS */
.range-input {
-webkit-appearance: none;
width: 100%;
height: 6px;
background: #e5e7eb;
border-radius: 3px;
outline: none;
margin: 10px 0;
}

.range-input::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
background: var(--primary-color);
border-radius: 50%;
cursor: pointer;
}

.auth-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
.range-input::-moz-range-thumb {
width: 18px;
height: 18px;
background: var(--primary-color);
border-radius: 50%;
cursor: pointer;
border: none;
}

.auth-card {
.survey-section {
background: white;
padding: 2rem;
border-radius: 0.5rem;
margin-bottom: 2rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
width: 100%;
max-width: 24rem;
}

.form-group {
margin-bottom: 1rem;
}

.form-input {
width: 100%;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
margin-top: 0.5rem;
}

.btn-primary {
background-color: var(--primary-color);
color: white;
padding: 0.5rem 1rem;
border: none;
border-radius: 0.375rem;
cursor: pointer;
width: 100%;
}

.error-message {
color: var(--error-color);
font-size: 0.875rem;
margin-top: 0.5rem;
.survey-section h2 {
color: var(--primary-color);
font-size: 1.5rem;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #e5e7eb;
}

.hidden {
display: none;
}
.survey-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
.survey-section h3 {
color: #374151;
font-size: 1.25rem;
margin: 1.5rem 0 1rem;
}

.survey-card {
background: white;
padding: 2rem;
.rating-group {
background: #f9fafb;
padding: 1rem;
border-radius: 0.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
width: 100%;
max-width: 32rem;
margin-top: 0.5rem;
}

select.form-input {
background-color: white;
cursor: pointer;
}
/* Add to existing CSS */
.survey-section {
margin-bottom: 2rem;
padding-bottom: 2rem;
.rating-item {
padding: 0.75rem;
border-bottom: 1px solid #e5e7eb;
}

.survey-section h2 {
margin-bottom: 1rem;
color: #1f2937;
}

.section-desc {
color: #4b5563;
margin-bottom: 1rem;
.rating-item:last-child {
border-bottom: none;
}

.checkbox-group, .radio-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.5rem;
background: #f9fafb;
padding: 1rem;
border-radius: 0.5rem;
}

.checkbox-label, .radio-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
}

.rating-group {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 0.5rem;
transition: background-color 0.2s;
}

.rating-item {
display: flex;
flex-direction: column;
gap: 0.5rem;
.checkbox-label:hover, .radio-label:hover {
background: #f3f4f6;
border-radius: 0.25rem;
}

.range-input {
width: 100%;
cursor: pointer;
}

.subtitle {
color: #4b5563;
margin-bottom: 2rem;
.section-desc {
color: #6b7280;
font-size: 0.875rem;
margin-bottom: 1.5rem;
}

.survey-card {
max-width: 48rem;
margin: 2rem auto;
padding: 0;
background: transparent;
box-shadow: none;
}

.survey-form {
.btn-primary {
margin-top: 2rem;
font-size: 1.125rem;
padding: 0.75rem 1.5rem;
transition: background-color 0.2s;
}

.btn-primary:hover {
background-color: #1d4ed8;
}

@media (max-width: 768px) {
.survey-section {
padding: 1rem;
}

.survey-card {
margin: 1rem;
}
}
Loading

0 comments on commit f5c1a22

Please sign in to comment.