-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: New Header Banner * fix: notification versions
- Loading branch information
1 parent
a7e54bb
commit 77fc4a1
Showing
4 changed files
with
71 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react" | ||
|
||
type Props = { | ||
style?: React.CSSProperties | ||
} | ||
|
||
export const CloseIcon = ({ style }: Props) => ( | ||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg" style={style}> | ||
<circle cx="12.1406" cy="12" r="12" transform="rotate(180 12.1406 12)" fill="white" /> | ||
<path d="M16.1406 8L8.14062 16" stroke="#1A2B6B" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /> | ||
<path d="M8.14062 8L16.1406 16" stroke="#1A2B6B" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /> | ||
</svg> | ||
) |
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
31 changes: 31 additions & 0 deletions
31
src/features/notifications/components/headerBanner.module.css
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,31 @@ | ||
.container { | ||
position: relative; | ||
} | ||
|
||
.dismiss { | ||
position: absolute; | ||
right: var(--space-24x); | ||
top: 50%; | ||
transform: translateY(-50%); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: var(--space-4x); | ||
cursor: pointer; | ||
background: white; | ||
border-radius: 50%; | ||
color: var(--color-primary); | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.container { | ||
justify-content: start; | ||
} | ||
|
||
.container p { | ||
padding-right: var(--space-6x); | ||
} | ||
.dismiss { | ||
right: var(--space-6x); | ||
} | ||
} |