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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import { CSSProperties } from 'react';
|
| 3 |
+
|
| 4 |
+
export const styles: { [key: string]: CSSProperties } = {
|
| 5 |
+
card: {
|
| 6 |
+
backgroundColor: '#ffffff',
|
| 7 |
+
borderRadius: '8px',
|
| 8 |
+
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.08)',
|
| 9 |
+
marginBottom: '2rem',
|
| 10 |
+
borderLeft: '5px solid #005a9c',
|
| 11 |
+
transition: 'all 0.3s ease-in-out',
|
| 12 |
+
minHeight: '550px',
|
| 13 |
+
display: 'flex',
|
| 14 |
+
flexDirection: 'column',
|
| 15 |
+
justifyContent: 'space-between',
|
| 16 |
+
overflow: 'hidden',
|
| 17 |
+
},
|
| 18 |
+
title: {
|
| 19 |
+
marginTop: '0',
|
| 20 |
+
color: '#003366',
|
| 21 |
+
fontSize: '2rem',
|
| 22 |
+
textAlign: 'center' as const,
|
| 23 |
+
},
|
| 24 |
+
subtitle: {
|
| 25 |
+
color: '#005a9c',
|
| 26 |
+
fontSize: '1.2rem',
|
| 27 |
+
marginBottom: '2rem',
|
| 28 |
+
textAlign: 'center' as const,
|
| 29 |
+
},
|
| 30 |
+
author: {
|
| 31 |
+
fontStyle: 'italic',
|
| 32 |
+
color: '#5a6d7d',
|
| 33 |
+
textAlign: 'center' as const,
|
| 34 |
+
marginTop: '2rem',
|
| 35 |
+
},
|
| 36 |
+
paragraph: {
|
| 37 |
+
lineHeight: '1.7',
|
| 38 |
+
fontSize: '1.1rem',
|
| 39 |
+
color: '#34495e',
|
| 40 |
+
},
|
| 41 |
+
formula: {
|
| 42 |
+
padding: '1.5rem',
|
| 43 |
+
margin: '1rem 0',
|
| 44 |
+
fontSize: '1.2rem',
|
| 45 |
+
textAlign: 'center' as const,
|
| 46 |
+
backgroundColor: '#f8f9fa',
|
| 47 |
+
borderRadius: '4px',
|
| 48 |
+
},
|
| 49 |
+
buttonContainer: {
|
| 50 |
+
display: 'flex',
|
| 51 |
+
justifyContent: 'space-between',
|
| 52 |
+
},
|
| 53 |
+
button: {
|
| 54 |
+
fontFamily: 'Lato, sans-serif',
|
| 55 |
+
fontWeight: 'bold',
|
| 56 |
+
fontSize: '1rem',
|
| 57 |
+
padding: '0.75rem 1.5rem',
|
| 58 |
+
borderRadius: '5px',
|
| 59 |
+
border: 'none',
|
| 60 |
+
cursor: 'pointer',
|
| 61 |
+
backgroundColor: '#007acc',
|
| 62 |
+
color: 'white',
|
| 63 |
+
transition: 'background-color 0.2s',
|
| 64 |
+
},
|
| 65 |
+
buttonDisabled: {
|
| 66 |
+
backgroundColor: '#a0c4e4',
|
| 67 |
+
cursor: 'not-allowed',
|
| 68 |
+
},
|
| 69 |
+
progressContainer: {
|
| 70 |
+
width: '100%',
|
| 71 |
+
backgroundColor: '#e0e0e0',
|
| 72 |
+
overflow: 'hidden',
|
| 73 |
+
},
|
| 74 |
+
progressBar: {
|
| 75 |
+
height: '10px',
|
| 76 |
+
backgroundColor: '#007acc',
|
| 77 |
+
transition: 'width 0.5s ease-in-out',
|
| 78 |
+
},
|
| 79 |
+
quizOption: {
|
| 80 |
+
display: 'block',
|
| 81 |
+
padding: '1rem',
|
| 82 |
+
margin: '0.5rem 0',
|
| 83 |
+
borderRadius: '5px',
|
| 84 |
+
border: '1px solid #ccc',
|
| 85 |
+
cursor: 'pointer',
|
| 86 |
+
transition: 'all 0.2s',
|
| 87 |
+
},
|
| 88 |
+
worksheetContainer: {
|
| 89 |
+
marginTop: '1.5rem',
|
| 90 |
+
border: '1px solid #e0e0e0',
|
| 91 |
+
borderRadius: '8px',
|
| 92 |
+
padding: '1rem 1.5rem',
|
| 93 |
+
backgroundColor: '#fdfdfd',
|
| 94 |
+
},
|
| 95 |
+
worksheetHeader: {
|
| 96 |
+
display: 'grid',
|
| 97 |
+
gridTemplateColumns: '1fr 1fr',
|
| 98 |
+
gap: '1rem',
|
| 99 |
+
marginBottom: '1rem',
|
| 100 |
+
paddingBottom: '1rem',
|
| 101 |
+
borderBottom: '1px solid #e0e0e0',
|
| 102 |
+
},
|
| 103 |
+
worksheetDataItem: {
|
| 104 |
+
padding: '0.5rem',
|
| 105 |
+
backgroundColor: '#f0f4f8',
|
| 106 |
+
borderRadius: '4px',
|
| 107 |
+
textAlign: 'center' as const,
|
| 108 |
+
fontSize: '1rem',
|
| 109 |
+
display: 'flex',
|
| 110 |
+
alignItems: 'center',
|
| 111 |
+
justifyContent: 'center',
|
| 112 |
+
gap: '0.5rem',
|
| 113 |
+
},
|
| 114 |
+
worksheetRow: {
|
| 115 |
+
display: 'grid',
|
| 116 |
+
gridTemplateColumns: '2fr 1.2fr 1.2fr 50px',
|
| 117 |
+
gap: '1rem',
|
| 118 |
+
alignItems: 'center',
|
| 119 |
+
padding: '0.5rem 0',
|
| 120 |
+
borderBottom: '1px solid #f0f0f0',
|
| 121 |
+
},
|
| 122 |
+
worksheetRowHeader: {
|
| 123 |
+
fontWeight: 'bold',
|
| 124 |
+
color: '#003366',
|
| 125 |
+
fontSize: '0.9rem',
|
| 126 |
+
},
|
| 127 |
+
worksheetDescription: {
|
| 128 |
+
color: '#2c3e50',
|
| 129 |
+
fontWeight: 'bold',
|
| 130 |
+
fontSize: '1rem',
|
| 131 |
+
},
|
| 132 |
+
worksheetFormula: {
|
| 133 |
+
color: '#5a6d7d',
|
| 134 |
+
textAlign: 'center' as const,
|
| 135 |
+
fontSize: '1rem',
|
| 136 |
+
},
|
| 137 |
+
worksheetInput: {
|
| 138 |
+
padding: '0.5rem',
|
| 139 |
+
fontSize: '1rem',
|
| 140 |
+
borderRadius: '4px',
|
| 141 |
+
border: '1px solid #ccc',
|
| 142 |
+
textAlign: 'right' as const,
|
| 143 |
+
width: '100%',
|
| 144 |
+
boxSizing: 'border-box',
|
| 145 |
+
},
|
| 146 |
+
feedbackIcon: {
|
| 147 |
+
fontSize: '1.5rem',
|
| 148 |
+
textAlign: 'center' as const,
|
| 149 |
+
},
|
| 150 |
+
correctFeedback: {
|
| 151 |
+
color: '#28a745',
|
| 152 |
+
},
|
| 153 |
+
incorrectFeedback: {
|
| 154 |
+
color: '#dc3545',
|
| 155 |
+
},
|
| 156 |
+
correctAnswerText: {
|
| 157 |
+
fontSize: '0.85rem',
|
| 158 |
+
color: '#5a6d7d',
|
| 159 |
+
textAlign: 'right' as const,
|
| 160 |
+
paddingTop: '0.25rem'
|
| 161 |
+
}
|
| 162 |
+
};
|