Skip to content

Commit 479a513

Browse files
committed
update report issue modal
1 parent a7ccc61 commit 479a513

File tree

2 files changed

+69
-70
lines changed

2 files changed

+69
-70
lines changed

src/components/ReportIssueModal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function ReportIssueModal({ isOpen, onClose }: ReportIssueModalPr
5757

5858
return (
5959
<div className="modal-overlay" onClick={onClose}>
60-
<div className="modal-content report-issue-modal" onClick={(e) => e.stopPropagation()}>
60+
<div className="modal-content report-issue-modal card-manga" onClick={(e) => e.stopPropagation()}>
6161
<div className="modal-header">
6262
<h2>Report an Issue</h2>
6363
<button type="button" className="modal-close" onClick={onClose}>
@@ -72,7 +72,7 @@ export default function ReportIssueModal({ isOpen, onClose }: ReportIssueModalPr
7272
id="issue-type"
7373
value={type}
7474
onChange={(e) => setType(e.target.value as 'bug' | 'feature')}
75-
className="form-select"
75+
className="form-select input-manga"
7676
>
7777
<option value="bug">🐛 Bug Report</option>
7878
<option value="feature">✨ Feature Request</option>
@@ -90,7 +90,7 @@ export default function ReportIssueModal({ isOpen, onClose }: ReportIssueModalPr
9090
? 'Please describe the bug you encountered...'
9191
: 'Please describe the feature you would like...'
9292
}
93-
className="form-textarea"
93+
className="form-textarea input-manga"
9494
rows={6}
9595
required
9696
disabled={isSubmitting}
@@ -113,14 +113,14 @@ export default function ReportIssueModal({ isOpen, onClose }: ReportIssueModalPr
113113
<button
114114
type="button"
115115
onClick={onClose}
116-
className="button-secondary"
116+
className="btn-manga-outline"
117117
disabled={isSubmitting}
118118
>
119119
Cancel
120120
</button>
121121
<button
122122
type="submit"
123-
className="button-primary"
123+
className="btn-manga-primary"
124124
disabled={isSubmitting || !description.trim()}
125125
>
126126
{isSubmitting ? 'Submitting...' : 'Submit'}

src/styles/manga-components.css

Lines changed: 64 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -727,12 +727,10 @@ input[type="radio"]:checked + .btn-manga-outline {
727727

728728
.modal-content {
729729
background: var(--manga-white);
730-
border-radius: 0.75rem;
731730
max-width: 500px;
732731
width: 100%;
733732
max-height: 90vh;
734733
overflow-y: auto;
735-
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
736734
animation: modalSlideUp 0.2s ease-out;
737735
}
738736

@@ -751,36 +749,41 @@ input[type="radio"]:checked + .btn-manga-outline {
751749
display: flex;
752750
align-items: center;
753751
justify-content: space-between;
754-
padding: 1.5rem 1.5rem 1rem 1.5rem;
755-
border-bottom: 1px solid var(--manga-gray);
752+
padding: 1.25rem 1.5rem;
753+
border-bottom: 2px solid var(--manga-black);
756754
}
757755

758756
.report-issue-modal .modal-header h2 {
759757
font-size: 1.25rem;
760758
font-weight: 700;
761759
color: var(--manga-black);
762760
margin: 0;
761+
font-family: var(--font-display-manga);
762+
letter-spacing: 0.02em;
763763
}
764764

765765
.report-issue-modal .modal-close {
766766
background: none;
767-
border: none;
768-
font-size: 2rem;
767+
border: 2px solid transparent;
768+
font-size: 1.75rem;
769769
line-height: 1;
770-
color: var(--manga-gray);
770+
color: var(--manga-black);
771771
cursor: pointer;
772772
padding: 0;
773773
width: 32px;
774774
height: 32px;
775775
display: flex;
776776
align-items: center;
777777
justify-content: center;
778-
border-radius: 0.25rem;
779-
transition: background-color 0.15s;
778+
border-radius: var(--manga-radius-minimal);
779+
transition: all 0.2s ease;
780+
font-weight: 700;
780781
}
781782

782783
.report-issue-modal .modal-close:hover {
783-
background-color: rgba(0, 0, 0, 0.05);
784+
background-color: var(--manga-black);
785+
color: var(--manga-white);
786+
border-color: var(--manga-black);
784787
}
785788

786789
.report-issue-modal form {
@@ -797,26 +800,11 @@ input[type="radio"]:checked + .btn-manga-outline {
797800
font-weight: 600;
798801
color: var(--manga-black);
799802
margin-bottom: 0.5rem;
803+
font-family: var(--font-display-manga);
804+
letter-spacing: 0.025em;
805+
text-transform: uppercase;
800806
}
801807

802-
.report-issue-modal .form-select,
803-
.report-issue-modal .form-textarea {
804-
width: 100%;
805-
padding: 0.625rem 0.875rem;
806-
border: 2px solid var(--manga-gray);
807-
border-radius: 0.375rem;
808-
font-size: 0.875rem;
809-
font-family: inherit;
810-
transition: border-color 0.15s, box-shadow 0.15s;
811-
background: white;
812-
}
813-
814-
.report-issue-modal .form-select:focus,
815-
.report-issue-modal .form-textarea:focus {
816-
outline: none;
817-
border-color: var(--manga-accent-gold);
818-
box-shadow: 0 0 0 3px rgba(251, 184, 4, 0.1);
819-
}
820808

821809
.report-issue-modal .form-textarea {
822810
resize: vertical;
@@ -850,63 +838,74 @@ input[type="radio"]:checked + .btn-manga-outline {
850838
padding-top: 0.5rem;
851839
}
852840

853-
.report-issue-modal .button-secondary,
854-
.report-issue-modal .button-primary {
855-
padding: 0.625rem 1.25rem;
856-
border-radius: 0.375rem;
857-
font-size: 0.875rem;
858-
font-weight: 600;
859-
cursor: pointer;
860-
transition: all 0.15s;
861-
border: none;
862-
}
863-
864-
.report-issue-modal .button-secondary {
865-
background: white;
866-
color: var(--manga-black);
867-
border: 2px solid var(--manga-gray);
841+
.report-issue-modal .btn-manga-primary,
842+
.report-issue-modal .btn-manga-outline {
843+
padding: 0.625rem 1.5rem;
844+
min-width: 100px;
868845
}
869846

870-
.report-issue-modal .button-secondary:hover:not(:disabled) {
871-
background: rgba(0, 0, 0, 0.05);
847+
/* Input styles for forms */
848+
.input-manga {
849+
width: 100%;
850+
padding: 0.75rem 1rem;
851+
border: 2px solid var(--manga-black);
852+
border-radius: var(--manga-radius-minimal);
853+
font-size: 0.9375rem;
854+
font-family: var(--font-body-manga);
855+
transition: all 0.2s ease;
856+
background: var(--manga-white);
872857
}
873858

874-
.report-issue-modal .button-primary {
875-
background: var(--manga-accent-gold);
876-
color: white;
877-
border: 2px solid var(--manga-accent-gold);
859+
.input-manga:focus {
860+
outline: none;
861+
border-color: var(--manga-black);
862+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
863+
background: var(--manga-light-gray);
878864
}
879865

880-
.report-issue-modal .button-primary:hover:not(:disabled) {
881-
background: #e5a804;
882-
border-color: #e5a804;
866+
.style-comic .input-manga {
867+
border: var(--comic-border);
868+
border-radius: var(--comic-radius);
869+
font-family: var(--font-body-comic);
883870
}
884871

885-
.report-issue-modal .button-primary:disabled,
886-
.report-issue-modal .button-secondary:disabled {
887-
opacity: 0.5;
888-
cursor: not-allowed;
872+
.style-comic .input-manga:focus {
873+
box-shadow: var(--comic-shadow);
874+
background: var(--comic-light-gray);
889875
}
890876

891877
/* Style-specific adjustments for report modal */
892878
.style-manga .report-issue-modal {
893-
border: 3px solid var(--manga-black);
879+
border: var(--manga-border-traditional);
880+
border-radius: var(--manga-radius-minimal);
881+
box-shadow: var(--manga-shadow-subtle);
882+
}
883+
884+
.style-manga .report-issue-modal .modal-header {
885+
border-bottom: var(--manga-border-traditional);
886+
background: linear-gradient(to right, var(--manga-white) 0%, var(--manga-light-gray) 100%);
894887
}
895888

896889
.style-comic .report-issue-modal {
897890
background: var(--comic-white);
898-
border: 4px solid var(--comic-black);
891+
border: var(--comic-border);
899892
border-radius: var(--comic-radius);
900-
box-shadow: 8px 8px 0 var(--comic-black);
893+
box-shadow: var(--comic-shadow);
901894
}
902895

903-
.style-comic .report-issue-modal .button-primary {
896+
.style-comic .report-issue-modal .modal-header {
897+
border-bottom: var(--comic-border);
904898
background: var(--comic-yellow);
905-
color: var(--comic-black);
906-
border-color: var(--comic-black);
907-
font-weight: 700;
908899
}
909900

910-
.style-comic .report-issue-modal .button-primary:hover:not(:disabled) {
911-
background: var(--comic-orange);
901+
.style-comic .report-issue-modal .modal-header h2 {
902+
font-family: var(--font-display-comic);
903+
text-transform: uppercase;
904+
letter-spacing: 1px;
905+
}
906+
907+
908+
.style-comic .report-issue-modal .modal-close:hover {
909+
background-color: var(--comic-black);
910+
color: var(--comic-yellow);
912911
}

0 commit comments

Comments
 (0)