-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from eurofurence/issue-213-ef-2024-part2
Issue 213 ef 2024 part2
- Loading branch information
Showing
10 changed files
with
177 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
<head> | ||
<title>Not found!</title> | ||
</head> | ||
<body bgcolor="white"> | ||
<p>The requested resource is not available.</p> | ||
</body> | ||
</html> |
Binary file not shown.
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,7 @@ | ||
<html> | ||
<head> | ||
<title>Nothing here!</title> | ||
<meta http-equiv="expires" content="0"/> | ||
</head> | ||
<body bgcolor="white">OK</body> | ||
</html> |
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
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
66 changes: 66 additions & 0 deletions
66
src/components/funnels/funnels/register/steps/ticket/level/footnote.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,66 @@ | ||
import styled from '@emotion/styled' | ||
import { MediaQueries } from '@eurofurence/reg-component-library' | ||
|
||
export type TicketLevelFootnoteProps = { | ||
readonly marker: string | ||
readonly label: string | ||
readonly price: string | ||
} | ||
|
||
const Container = styled.section` | ||
display: grid; | ||
@media ${MediaQueries.phone}, ${MediaQueries.tablet} { | ||
grid: "marker label price" auto | ||
/ 1fr auto; | ||
} | ||
@media ${MediaQueries.laptop}, ${MediaQueries.desktop} { | ||
grid: "marker label price" auto | ||
/ fit-content(60rem) auto; | ||
} | ||
gap: 0.2rem; | ||
` | ||
|
||
const Marker = styled.section` | ||
grid-area: marker; | ||
font-size: 2rem; | ||
width: 2rem; | ||
justify-self: left; | ||
` | ||
|
||
const Label = styled.section` | ||
grid-area: label; | ||
font-size: 2rem; | ||
justify-self: left; | ||
text-align: left; | ||
` | ||
|
||
const PriceContainer = styled.section` | ||
grid-area: price; | ||
justify-self: end; | ||
` | ||
|
||
const Price = styled.section` | ||
color: var(--color-brand-2-900); | ||
font-family: Roboto; | ||
font-weight: 700; | ||
font-size: 2.4rem; | ||
label[data-checked] & { | ||
color: var(--color-semantic-info); | ||
} | ||
` | ||
|
||
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types | ||
const TicketLevelFootnote = ({ marker, label, price }: TicketLevelFootnoteProps) => { | ||
return <Container> | ||
<Marker>{marker}</Marker> | ||
<Label>{label}</Label> | ||
<PriceContainer><Price>{price}</Price></PriceContainer> | ||
</Container> | ||
} | ||
|
||
export default TicketLevelFootnote |
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