-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create component WelcomePage, add translations, change height and pad…
…ding-top for WelcomePage, NoEventsPage, main. Add PORT=8080 to start command.
- Loading branch information
dudanova
committed
Jul 25, 2022
1 parent
616840e
commit 2bffbd6
Showing
10 changed files
with
83 additions
and
36 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { ButtonPrimary, Input, TextBodyLarge, TitleH1 } from "../../elements"; | ||
import tentImg from "../../../../assets/images/tent.png"; | ||
|
||
export const WelcomePage = () => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div className="min-h-screen | ||
text-center flex flex-col | ||
justify-between md:justify-start | ||
px-4 pt-16 xs:pt-24 pb-6 mx-auto | ||
sm:w-6/12 | ||
w-full"> | ||
<div> | ||
<div className="mb-8 xs:mb-14 mx-auto"> | ||
<img src={tentImg} alt="Tent" className="mx-auto" /> | ||
</div> | ||
|
||
<div className="mb-6"> | ||
<TitleH1>{t("pages.welcome.title")}</TitleH1> | ||
</div> | ||
|
||
<div className="mb-6"> | ||
<TextBodyLarge> | ||
{t("pages.welcome.description")} | ||
</TextBodyLarge> | ||
</div> | ||
|
||
<div className="mb-8 xs:mb-10"> | ||
<TextBodyLarge>{t("pages.welcome.whats_your_name")}</TextBodyLarge> | ||
</div> | ||
|
||
<div className="mb-10 xs:mb-14"> | ||
<Input placeholder={t("pages.welcome.whats_your_name")} /> | ||
</div> | ||
</div> | ||
<div className="px-7"> | ||
<ButtonPrimary> | ||
{t("buttons.remember_me")} | ||
</ButtonPrimary> | ||
</div> | ||
</div> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export * from "./buttons/index"; | ||
export * from "./inputs/index"; | ||
export * from "./typography/index"; | ||
|
||
export * from "./Indicator"; | ||
export * from "./Ellipse"; | ||
export * from "./EllipseWithImg"; |
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