Skip to content

Commit f6a7b77

Browse files
committed
Improve hero colors
1 parent 7aa5315 commit f6a7b77

5 files changed

Lines changed: 26 additions & 7 deletions

File tree

‎src/components/Animations/Computers/index.astro‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import Icon from '@components/Icon/index.astro'
1414
aria-label="Pause animation"
1515
aria-pressed="false"
1616
>
17-
<span data-animation-icon="pause" class="flex h-10 w-10 items-center justify-center bg-transparent">
17+
<span
18+
data-animation-icon="pause"
19+
class="flex h-10 w-10 items-center justify-center bg-transparent"
20+
>
1821
<Icon name="pause" size={20} variant="custom" class="text-primary-inverse fill-primary-inverse stroke-primary-inverse" />
1922
</span>
2023
<span

‎src/components/Animations/Hero/index.astro‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const { pretitle, benefits } = Astro.props as Props
2525

2626
<h1
2727
id="home-hero-title"
28-
class="text-4xl md:text-5xl lg:text-7xl font-bold text-primary leading-none"
28+
class="text-4xl md:text-5xl lg:text-7xl font-bold text-content-active leading-none"
2929
>
3030
Senior<br />
3131
Platform<br />
@@ -65,7 +65,23 @@ const { pretitle, benefits } = Astro.props as Props
6565
<Button href="/about" variant="success" text="Read My Story" />
6666
<a
6767
href="/contact"
68-
class="sm:ml-6 py-3 text-primary font-bold underline underline-offset-4 decoration-2 decoration-dotted decoration-primary transition-colors hover:text-content-offset hover:decoration-content-offset focus-visible:text-content-offset focus-visible:underline focus-visible:decoration-2 focus-visible:decoration-dotted focus-visible:decoration-content-offset"
68+
class:list={[
69+
[
70+
'py-3', 'sm:ml-6', 'transition-colors',
71+
],
72+
[
73+
'text-content', 'font-bold',
74+
],
75+
[
76+
'underline', 'underline-offset-4', 'decoration-2', 'decoration-dotted', 'decoration-content',
77+
],
78+
[
79+
'hover:text-content-offset', 'hover:decoration-content-offset',
80+
],
81+
[
82+
'focus-visible:text-content-offset', 'focus-visible:underline', 'focus-visible:decoration-2', 'focus-visible:decoration-dotted', 'focus-visible:decoration-content-offset',
83+
],
84+
]}
6985
>
7086
Get in Touch <span aria-hidden="true" class="md:text-3xl">→</span>
7187
</a>

‎src/styles/theme-inline.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
--color-content-offset: var(--theme-color-content-offset); /* Light theme: #9ca3af */
6464

6565
/** A shade of the text color for hover and focus states */
66-
--color-content-active: var(--theme-color-content-active); /* Light theme: #9ca3af */
66+
--color-content-active: var(--theme-color-content-active); /* Light theme: #001a39 */
6767

6868
/** Main content text color */
6969
--color-content-inverse: var(--theme-color-content-inverse); /* Light theme: #f3f4f6 */

‎src/styles/themes/dark.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
--theme-color-primary: #f3f4f6;
1515

1616
/** A shade of the primary color for accent */
17-
--theme-color-primary-offset: #fff;
17+
--theme-color-primary-offset: #d1d5db;
1818

1919
/** A shade of the primary color for accent */
2020
--theme-color-primary-inverse: #001A39;
@@ -65,7 +65,7 @@
6565
--theme-color-content-offset: #e5e7eb; /** --color-content-offset */
6666

6767
/** A shade of the text color for hover and focus states */
68-
--theme-color-content-active: #e5e7eb; /** --color-content-active */
68+
--theme-color-content-active: #9ca3af; /** --color-content-active */
6969

7070
/** Main content text color */
7171
--theme-color-content-inverse: #001a39; /** --color-content */

‎src/styles/themes/light.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
--theme-color-content-offset: #9ca3af; /** --color-content-offset */
6666

6767
/** A shade of the text color for hover and focus states */
68-
--theme-color-content-active: #9ca3af; /** --color-content-active */
68+
--theme-color-content-active: #001a39; /** --color-content-active */
6969

7070
/** Main content text color opposite */
7171
--theme-color-content-inverse: #f3f4f6; /** --color-content */

0 commit comments

Comments
 (0)