Skip to content

Commit

Permalink
added new WelcomePage Header and according styles for mobile optimiza…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
splican committed Dec 11, 2024
1 parent c4ac4b8 commit b1ff652
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Binary file added src/Assets/graphics/anim-adler-welcome.webm
Binary file not shown.
Binary file added src/Assets/graphics/welcome-screen-greeting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import LoginComponent from "~ReactComponents/WelcomePage/SignInAndOutComponent/LoginComponent";
import logo from "../../../../../../Assets/icons/adler-engine.svg";
import welcomeGraphic from "../../../../../../Assets/graphics/welcome-screen-greeting.png";
import welcomeVideo from "../../../../../../Assets/graphics/anim-adler-welcome.webm";
import HelpDeskButton from "~ReactComponents/GeneralComponents/HelpDeskButton/HelpDeskButton";
import HelpDeskModal from "~ReactComponents/GeneralComponents/HelpDeskModal/HelpDeskModal";
import { useTranslation } from "react-i18next";
Expand All @@ -23,9 +25,22 @@ export default function WelcomePage() {
<HelpDeskModal />

<section className="flex flex-col items-center portrait:row-start-1 portrait:row-span-1 portrait:col-start-2 portrait:col-span-6 landscape:col-span-6 landscape:col-start-2 landscape:row-start-1 text-adlerdarkblue lg:landscape:col-span-7 lg:landscape:col-start-1 xl:landscape:col-start-2 xl:landscape:col-span-6 lg:landscape:row-start-1">
<h1 className="p-2 text-xl font-extrabold text-center justify-self-center portrait:text-xl lg:text-4xl 2xl:text-8xl">
<h1 className="landscape:hidden p-2 text-xl font-extrabold text-center justify-self-center portrait:text-xl lg:text-4xl 2xl:text-8xl">
{translate("welcome")}
</h1>
<video
className="scale-75 lg:-mb-16 portrait:hidden"
src={welcomeVideo}
autoPlay
loop
>
<track
kind="captions"
srcLang="en"
src="path/to/captions.vtt"
default
/>
</video>
<LoginComponent className="flex flex-col items-center justify-around col-span-6 col-start-2 xl:pt-8 lg:pt-4" />
</section>

Expand Down
2 changes: 2 additions & 0 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ declare module "*.stl";
declare module "*.jpeg";
declare module "*.gif";
declare module "*.mp4";
declare module "*.webm";
declare module "*.mov";

// Babylon Navigation Plugin Dependency
declare module "recast-detour";
Expand Down

0 comments on commit b1ff652

Please sign in to comment.