Skip to content

Commit

Permalink
fix(components-Footer): change Footer background gradient style (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored Jun 21, 2022
1 parent 78f3c87 commit aec654f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
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

1 comment on commit aec654f

@vercel
Copy link

@vercel vercel bot commented on aec654f Jun 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-sabertaz.vercel.app
blog-git-main-sabertaz.vercel.app
blog.tazimi.dev

Please sign in to comment.