-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: public account lottery view (#4255)
- Loading branch information
1 parent
54a1429
commit 4d431ad
Showing
15 changed files
with
402 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
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
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
sites/public/src/components/account/ApplicationCards.module.scss
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 @@ | ||
.application-card { | ||
p { | ||
color: var(--seeds-text-color); | ||
} | ||
.heading-section { | ||
background-color: var(--seeds-color-primary); | ||
} | ||
|
||
.card-header { | ||
font-weight: var(--seeds-font-weight-bold); | ||
color: var(--seeds-color-white); | ||
font-family: var(--seeds-font-alt-sans); | ||
} | ||
} |
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,43 @@ | ||
import React from "react" | ||
import { Card, Button, Heading } from "@bloom-housing/ui-seeds" | ||
import { t } from "@bloom-housing/ui-components" | ||
import styles from "./ApplicationCards.module.scss" | ||
|
||
const ApplicationCard = (props: { children: React.ReactElement; heading: string }) => { | ||
return ( | ||
<Card spacing={"sm"} className={`${styles["application-card"]} my-6`}> | ||
<Card.Section className={`${styles["heading-section"]} px-8 py-4`}> | ||
<Heading priority={1} size={"xl"} className={styles["card-header"]}> | ||
{props.heading} | ||
</Heading> | ||
</Card.Section> | ||
<Card.Section className={"px-8"}>{props.children}</Card.Section> | ||
</Card> | ||
) | ||
} | ||
export const ApplicationError = (props: { error: string }) => { | ||
return ( | ||
<ApplicationCard heading={t("account.application.error")}> | ||
<> | ||
<p className="mb-5">{props.error}</p> | ||
<Button size="sm" variant="primary-outlined" href={"/account/applications"}> | ||
{t("account.application.return")} | ||
</Button> | ||
</> | ||
</ApplicationCard> | ||
) | ||
} | ||
|
||
export const ApplicationListingCard = (props: { listingName: string; listingId: string }) => { | ||
return ( | ||
<ApplicationCard heading={props.listingName}> | ||
<div> | ||
{props.listingId && ( | ||
<Button size="sm" variant={"text"} href={`/listing/${props.listingId}`}> | ||
{t("application.confirmation.viewOriginalListing")} | ||
</Button> | ||
)} | ||
</div> | ||
</ApplicationCard> | ||
) | ||
} |
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
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
Oops, something went wrong.