-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update backpagehero component with additional "actions" to the …
…CTA button (#207)
- Loading branch information
Fran McDade
authored and
Fran McDade
committed
Sep 27, 2024
1 parent
238f6d3
commit f66018c
Showing
5 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...s/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import styled from "@emotion/styled"; | ||
import { mediaTabletUp } from "../../../../../../../../styles/common/mixins/breakpoints"; | ||
|
||
export const BackPageHeroActions = styled.div` | ||
align-items: center; | ||
align-self: center; | ||
display: flex; | ||
gap: 16px; | ||
justify-self: flex-start; | ||
${mediaTabletUp} { | ||
justify-self: flex-end; | ||
} | ||
`; |
13 changes: 13 additions & 0 deletions
13
...ponents/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React, { ReactNode } from "react"; | ||
import { BackPageHeroActions } from "./actions.styles"; | ||
|
||
export interface ActionsProps { | ||
children: ReactNode; | ||
className?: string; | ||
} | ||
|
||
export const Actions = ({ children, className }: ActionsProps): JSX.Element => { | ||
return ( | ||
<BackPageHeroActions className={className}>{children}</BackPageHeroActions> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters