Skip to content

Commit 556c051

Browse files
authored
Merge branch 'main' into lighthouse-CI
Signed-off-by: StarLight <[email protected]>
2 parents f87f453 + 777fb3f commit 556c051

File tree

21 files changed

+1138
-380
lines changed

21 files changed

+1138
-380
lines changed

package-lock.json

Lines changed: 1064 additions & 325 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"babel-loader": "^9.2.1",
3030
"classnames": "^2.5.1",
3131
"framer-motion": "^12.12.1",
32-
"gatsby": "^5.14.3",
32+
"gatsby": "^5.14.6",
3333
"gatsby-adapter-netlify": "^1.2.1",
3434
"gatsby-plugin-algolia-search": "^0.5.7",
3535
"gatsby-plugin-canonical-urls": "^5.14.0",

src/components/pages/adopters/logos/logos.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const spaceXClassNames = {
104104
};
105105

106106
const Logos = ({ title, items, spaceXSize, id }) => (
107-
<section className="pt-10 md:pt-20 lg:pt-28 xl:pt-32" id={id}>
107+
<section className="pt-10 md:pt-20 lg:pt-28 xl:pt-32 dark:text-white" id={id}>
108108
<Container size="md">
109109
<Link className="text-center" to={`#${id}`}>
110110
<Heading tag="h2">{title}</Heading>

src/components/pages/events/events-board/filters/dropdown-select/dropdown-select.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import LightChevronIcon from 'icons/light-chevron.inline.svg';
99

1010
import Checkbox from './checkbox';
1111

12-
1312
const DropdownSelect = ({ name, items, values, onSelect, isSelected, className }) => {
1413
const dropdownRef = useRef(null);
1514
const buttonRef = useRef(null);
@@ -33,7 +32,7 @@ const DropdownSelect = ({ name, items, values, onSelect, isSelected, className }
3332

3433
useClickOutside([dropdownRef, buttonRef], handleDropdownOutsideClick);
3534

36-
const isDarkMode = useDarkMode();
35+
const {isDarkMode} = useDarkMode();
3736

3837
const iconClass = classNames(
3938
'text-gray-40 mt-1 h-auto w-2 shrink-0 transition-[transform,color] duration-200 group-hover:text-black',

src/components/pages/newsletter/cards/cards.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const Cards = () => {
8787
{links.map(({ title, url, target }, index) => (
8888
<Button
8989
className="lg:text-base"
90-
theme={title === 'Explore Archive' ? 'primary-1' : 'outline-gray'}
90+
theme="primary-1"
9191
size="md"
9292
key={index}
9393
to={url}

src/components/pages/newsletter/hero/hero.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ import backgroundSvg from './images/background.svg';
1010
import darkThemeBackgroundSvg from './images/dark-theme-background.svg';
1111
import RSSIcon from './images/rss.inline.svg';
1212

13-
1413
const title = 'Subscribe to bi-weekly eCHO News';
1514
const description =
1615
'eCHO news is your bi-weekly wrap up of all things eBPF and Cilium. If you want to keep up on the latest in cloud native networking, observability, and security this is your source';
1716

1817
const Hero = () => {
19-
const isDarkMode = useDarkMode();
18+
const {isDarkMode} = useDarkMode();
2019

2120
return (
2221
<section className="relative pt-10 md:pt-20 bg-gray-4 dark:bg-gray-900 ">

src/components/pages/telling-story/hero/form/form.jsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,27 @@ const FORM_STATES = {
2121
};
2222

2323
const validationSchema = yup.object().shape({
24+
firstName: yup
25+
.string()
26+
.trim()
27+
.required('Name is a required field'),
2428
email: yup
2529
.string()
2630
.trim()
2731
.email('Please provide a valid email')
2832
.required('Email is a required field'),
33+
ciliumSlackUsername: yup
34+
.string()
35+
.trim()
36+
.required('Cilium Slack Username is a required field'),
37+
howAreYouUsingCilium: yup
38+
.string()
39+
.trim()
40+
.required('It is a required field'),
41+
message: yup
42+
.string()
43+
.trim()
44+
.required('Message is a required field'),
2945
});
3046

3147
const Form = ({ formClassName }) => {
@@ -81,6 +97,7 @@ const Form = ({ formClassName }) => {
8197
type="text"
8298
id="firstName"
8399
name="name"
100+
error={errors?.firstName?.message}
84101
autoComplete="given-name"
85102
{...register('firstName')}
86103
/>
@@ -100,13 +117,15 @@ const Form = ({ formClassName }) => {
100117
type="text"
101118
id="ciliumSlackUsername"
102119
name="ciliumSlackUsername"
120+
error={errors?.ciliumSlackUsername?.message}
103121
{...register('ciliumSlackUsername')}
104122
/>
105123
<Field
106124
fieldName="How are you using Cilium?"
107125
type="text"
108126
id="howAreYouUsingCilium"
109127
name="howAreYouUsingCilium"
128+
error={errors?.howAreYouUsingCilium?.message}
110129
{...register('howAreYouUsingCilium')}
111130
/>
112131
</div>
@@ -116,10 +135,13 @@ const Form = ({ formClassName }) => {
116135
fieldName="Message"
117136
id="message"
118137
name="message"
138+
error={errors?.message?.message}
119139
{...register('message')}
120140
/>
121-
<div className="border-b border-gray-4 pb-4">
122-
<span className="text-sm font-semibold">What do you need help with?</span>
141+
<div className="border-b border-gray-4 dark:border-gray-7 pb-4">
142+
<span className="text-sm font-semibold text-black dark:text-white">
143+
What do you need help with?
144+
</span>
123145
<div className="mt-5 grid gap-x-8 gap-y-4 md:grid-cols-[repeat(2,minmax(45%,max-content))]">
124146
<Checkbox
125147
id="reviewAbstract"

src/components/pages/telling-story/hero/hero.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ const descriptionParagraphSecond =
1414
' Not a native speaker and/or not confident about your writing skills? No worries. Bring the story and we’ll help you tell it in an engaging way.';
1515

1616
const Hero = () => (
17-
<section className="overflow-x-hidden bg-gray-4 py-10 pb-44 lg:pt-16">
17+
<section className="overflow-x-hidden bg-gray-4 dark:bg-gray-900 py-10 pb-44 lg:pt-16">
1818
<Container className="grid grid-cols-12 gap-y-14 sm:gap-y-20 md:gap-y-24 lg:items-stretch lg:gap-y-0 lg:gap-x-8">
1919
<div className="col-span-full lg:col-span-5 lg:pt-10 xl:col-span-4">
20-
<Heading size="lg" tag="h1">
20+
<Heading size="lg" tag="h1" className="text-black dark:text-white">
2121
{title}
2222
</Heading>
2323

24-
<p className="text-md mt-5">{descriptionParagraphFirst}</p>
25-
<p className="text-md mt-2.5">{descriptionParagraphSecond}</p>
24+
<p className="text-md mt-5 dark:text-gray-2 text-black">{descriptionParagraphFirst}</p>
25+
<p className="text-md mt-2.5 dark:text-gray-2 text-black">{descriptionParagraphSecond}</p>
2626
</div>
2727

2828
<div className="relative col-span-full lg:col-span-7 xl:col-span-8">
@@ -42,7 +42,7 @@ const Hero = () => (
4242
alt=""
4343
aria-hidden
4444
/>
45-
<Form formClassName="relative rounded-xl bg-white w-full shadow-card p-4 md:p-8" />
45+
<Form formClassName="relative rounded-xl bg-white dark:bg-[#0F1D3E] w-full shadow-card p-4 md:p-8" />
4646
</div>
4747
</Container>
4848
</section>

src/components/shared/cards/cards.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Cards = ({ className, title, items, buttonType, textSize, cardSize }) => {
4040
<div className={classNames(className, 'bg-gray-4 dark:bg-gray-900')}>
4141
<Container>
4242
{title && (
43-
<Heading className="mb-6 xs:text-center md:mb-10 lg:mb-14" tag="h2">
43+
<Heading className="mb-6 xs:text-center md:mb-10 lg:mb-14 dark:text-white" tag="h2">
4444
{title}
4545
</Heading>
4646
)}

src/components/shared/checkbox/checkbox.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ const Checkbox = React.forwardRef((props, ref) => {
88
return (
99
<div className={classNames('checkbox', className)}>
1010
<input
11-
className="checkbox__input"
11+
className="checkbox__input bg-white dark:bg-[#A7B1BE]"
1212
type="checkbox"
1313
id={id}
1414
defaultChecked={defaultChecked}
1515
ref={ref}
1616
{...otherProps}
1717
/>
18-
<label className="checkbox__label" htmlFor={id}>
18+
<label
19+
className="checkbox__label dark:text-[#dfe5ed] text-black"
20+
htmlFor={id}
21+
aria-label={label}
22+
>
1923
<span dangerouslySetInnerHTML={{ __html: label }} />
2024
</label>
2125
</div>

0 commit comments

Comments
 (0)