diff options
| author | Yuval Adam <_@yuv.al> | 2025-03-06 11:44:36 +0100 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-03-06 11:44:36 +0100 |
| commit | 2f72422adf6acde0cc6d18c2176079814ce2ec1e (patch) | |
| tree | e62d5c4689208ab8be17e1f4a8e0f6066e0714eb /src/pages/chart | |
| parent | 9fc8c01837360bf1bff48bf336f0318a454540a1 (diff) | |
Merge all stylesvite
Diffstat (limited to 'src/pages/chart')
| -rw-r--r-- | src/pages/chart/ChartPage.tsx | 7 | ||||
| -rw-r--r-- | src/pages/chart/styles.css | 132 |
2 files changed, 4 insertions, 135 deletions
diff --git a/src/pages/chart/ChartPage.tsx b/src/pages/chart/ChartPage.tsx index f0c8d27..e8bf7bc 100644 --- a/src/pages/chart/ChartPage.tsx +++ b/src/pages/chart/ChartPage.tsx @@ -1,8 +1,7 @@ import { useEffect, useRef } from 'react'; import { Link } from 'react-router'; import cw from 'cw'; -import '../../base.css'; -import './styles.css'; +import '../../styles.css'; declare global { interface Window { @@ -81,7 +80,9 @@ const ChartPage = () => { return ( <div className="container"> - <h1><Link to="/" className="title-link">Morse Hero</Link></h1> + <h1 className="title-link"> + <Link to="/" style={{ color: 'inherit', textDecoration: 'inherit' }}>Morse Hero</Link> + </h1> <h2>Morse Code Chart</h2> <div className="chart-section"> diff --git a/src/pages/chart/styles.css b/src/pages/chart/styles.css deleted file mode 100644 index 279d421..0000000 --- a/src/pages/chart/styles.css +++ /dev/null @@ -1,132 +0,0 @@ -/* Morse Hero Chart Styles */ - -h1 { - font-size: 48px; -} - -h2 { - font-size: 32px; - margin: 30px 0 15px; - color: var(--primary-color); - text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2), - 0 0 10px rgba(52, 152, 219, 0.4); - font-family: 'Fredoka', sans-serif; - font-weight: 600; -} - -.chart-section { - background: linear-gradient(145deg, var(--bg-light) 0%, #2d3e50 100%); - border-radius: var(--border-radius-md); - padding: 30px 25px; - margin-bottom: 40px; - box-shadow: var(--shadow-lg); - position: relative; - overflow: hidden; -} - -.chart-section::before { - content: ""; - position: absolute; - top: 0; - left: 0; - right: 0; - height: 5px; - background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); - z-index: 1; -} - -.morse-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); - gap: 20px; - margin: 0 auto; -} - -.morse-item { - background: linear-gradient(145deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.2) 100%); - border-radius: var(--border-radius-sm); - padding: 20px 15px; - display: flex; - flex-direction: column; - align-items: center; - box-shadow: var(--shadow-sm); - transition: all var(--transition-normal); - cursor: pointer; - border: 1px solid rgba(52, 152, 219, 0.2); -} - -.morse-item:hover { - transform: translateY(-5px); - box-shadow: var(--shadow-md); - background: linear-gradient(145deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.3) 100%); - border-color: rgba(52, 152, 219, 0.3); -} - -.morse-item.playing { - background: linear-gradient(145deg, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.3) 100%); - box-shadow: 0 0 20px rgba(243, 156, 18, 0.4); - border-color: rgba(243, 156, 18, 0.4); -} - -.character { - font-size: 32px; - font-weight: bold; - margin-bottom: 10px; - text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); -} - -.morse { - font-family: monospace; - font-size: 18px; - letter-spacing: 2px; - color: var(--text-dim); -} - -.back-link { - margin-top: 40px; - font-size: 18px; -} - -.back-link a { - color: var(--primary-color); - text-decoration: none; - transition: all var(--transition-normal); - padding: 10px 20px; - background-color: rgba(255, 255, 255, 0.05); - border-radius: var(--border-radius-sm); - display: inline-block; -} - -.back-link a:hover { - color: var(--secondary-color); - background-color: rgba(255, 255, 255, 0.1); - transform: translateY(-3px); - box-shadow: var(--shadow-sm); -} - -@media (max-width: 768px) { - .morse-grid { - grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); - gap: 15px; - } - - .morse-item { - padding: 15px 10px; - } - - .character { - font-size: 28px; - } - - .morse { - font-size: 16px; - } - - h1 { - font-size: 36px; - } - - h2 { - font-size: 24px; - } -} |
