Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components-Footer): change Footer background gradient style #929

Merged
merged 1 commit into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Footer = ({
}: Props): JSX.Element => (
<Container
role="grid"
className="max-w-full bg-gray-900 p-8 text-center text-light dark:bg-black lg:p-20"
className="bg-gradient-secondary max-w-full p-8 text-center text-light lg:p-20"
>
<Row align="middle" justify="center">
<Col span={24}>
Expand Down
2 changes: 1 addition & 1 deletion components/Footer/__snapshots__/Footer.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Footer should render correctly (snapshot) 1`] = `
<div>
<div
class="p-auto container relative mx-auto my-0 block h-full max-w-full bg-gray-900 p-8 text-center text-light dark:bg-black lg:p-20"
class="p-auto container relative mx-auto my-0 block h-full bg-gradient-secondary max-w-full p-8 text-center text-light lg:p-20"
role="grid"
>
<div
Expand Down
2 changes: 1 addition & 1 deletion layouts/__snapshots__/Layout.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ exports[`Layout should render correctly (snapshot) 1`] = `
</div>
</div>
<div
class="p-auto container relative mx-auto my-0 block h-full max-w-full bg-gray-900 p-8 text-center text-light dark:bg-black lg:p-20"
class="p-auto container relative mx-auto my-0 block h-full bg-gradient-secondary max-w-full p-8 text-center text-light lg:p-20"
role="grid"
>
<div
Expand Down
2 changes: 1 addition & 1 deletion layouts/__snapshots__/PostLayout.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ exports[`PostLayout should render correctly (snapshot) 1`] = `
/>
</div>
<div
class="p-auto container relative mx-auto my-0 block h-full max-w-full bg-gray-900 p-8 text-center text-light dark:bg-black lg:p-20"
class="p-auto container relative mx-auto my-0 block h-full bg-gradient-secondary max-w-full p-8 text-center text-light lg:p-20"
role="grid"
>
<div
Expand Down
16 changes: 16 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,22 @@
@apply bg-gradient-to-r from-indigo-700 to-red-500;
}

.bg-gradient-secondary {
@apply border-b-5 border-solid border-primary;

background: linear-gradient(63deg, #262626 23%, transparent 0) 7px 0,
linear-gradient(63deg, transparent 73%, #262626 76%),
linear-gradient(
63deg,
transparent 34%,
#262626 38%,
#262626 58%,
transparent 62%
),
#222;
background-size: 16px 48px;
}

.flex-container {
@apply flex flex-row flex-wrap content-center items-center justify-center;
}
Expand Down