-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add complete survey implementation with all sections
- Loading branch information
1 parent
93220fc
commit f5c1a22
Showing
3 changed files
with
305 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.