-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,100 @@ | ||
<script setup lang="ts"> | ||
const isAuthenticated = useIsAuthenticated() | ||
const { $msal: { signOut } } = useNuxtApp() | ||
const { signIn } = useSignIn() | ||
const { t } = useI18n() | ||
const localePath = useLocalePath() | ||
const tt = (s: string) => t(`pages/index.${s}`) | ||
</script> | ||
|
||
<template> | ||
<StandardContent> | ||
<TitleBar title="RMI PACTA" /> | ||
<p> | ||
TODO(#80) This will eventually be the site for RMI's PACTA, but now it's mostly just a placeholder. | ||
</p> | ||
<p> | ||
This project is open source. You can view the code at <a href="https://github.com/RMI-PACTA/app">github.com/RMI-PACTA/app</a>. | ||
</p> | ||
|
||
<PVButton | ||
v-if="!isAuthenticated" | ||
label="Sign In" | ||
icon="pi pi-sign-in" | ||
icon-pos="right" | ||
@click="signIn" | ||
/> | ||
<template v-else> | ||
<LinkButton | ||
label="Get Started" | ||
icon="pi pi-arrow-right" | ||
icon-pos="right" | ||
to="/upload" | ||
/> | ||
<PVButton | ||
class="p-button-outlined" | ||
label="Sign Out" | ||
icon="pi pi-sign-out" | ||
icon-pos="right" | ||
@click="signOut" | ||
/> | ||
</template> | ||
<div class="border-round p-3"> | ||
<h1 class="text-5xl mt-0 mb-2 "> | ||
{{ tt('Heading') }} | ||
</h1> | ||
<div class="text-2xl mt-0 mb-4"> | ||
{{ tt('Subheading') }} | ||
</div> | ||
<p class=""> | ||
{{ tt('Description') }} | ||
</p> | ||
</div> | ||
<div class="flex gap-3 flex-wrap"> | ||
<div class="border-primary border-2 border-round p-3 flex flex-column gap-3 flex-1"> | ||
<h2 class="m-0"> | ||
{{ tt('Section1Heading') }} | ||
</h2> | ||
<p>{{ tt('Section1Paragraph1') }}</p> | ||
<p>{{ tt('Section1Paragraph2') }}</p> | ||
</div> | ||
<div | ||
class="w-12 md:w-6 xl:w-5 flex p-2 border-2 border-round align-items-center justify-content-center" | ||
> | ||
<PVImage | ||
preview | ||
src="/img/how-it-works.jpg" | ||
:pt="{ | ||
root: { | ||
'class': 'max-w-full', | ||
}, | ||
image : { | ||
'class': 'max-w-full', | ||
} | ||
}" | ||
/> | ||
</div> | ||
</div> | ||
<div class="flex gap-3 flex-column p-3"> | ||
<h2 class="m-0"> | ||
{{ tt('Section2Heading') }} | ||
</h2> | ||
<p>{{ tt('Section2Paragraph1') }}</p> | ||
<p> | ||
{{ tt('Section2Paragraph2') }} | ||
<LinkButton | ||
:to="localePath('/input-user-guide')" | ||
class="p-button-xs align-self-center py-0 ml-2 p-button-outlined" | ||
:label="tt('Input User Guide')" | ||
icon="pi pi-arrow-right" | ||
icon-pos="right" | ||
/> | ||
</p> | ||
<p>{{ tt('Section2Paragraph3') }}</p> | ||
<div class="flex justify-content-center mt-2"> | ||
<PVButton | ||
v-if="!isAuthenticated" | ||
:label="tt('Sign In')" | ||
icon="pi pi-sign-in" | ||
icon-pos="right" | ||
class="max-w-30rem" | ||
@click="signIn" | ||
/> | ||
<LinkButton | ||
v-else | ||
:label="tt('Get Started')" | ||
icon="pi pi-arrow-right" | ||
icon-pos="right" | ||
class="max-w-30rem" | ||
to="/upload" | ||
/> | ||
</div> | ||
</div> | ||
<div class="flex gap-3 flex-column p-3"> | ||
<h2 class="m-0"> | ||
{{ tt('Section4Heading') }} | ||
</h2> | ||
<p> | ||
{{ tt('Section4Paragraph1') }} | ||
<LinkButton | ||
to="pacta.rmi.org" | ||
class="p-button-xs align-self-center py-0 ml-2 p-button-outlined" | ||
:label="tt('Section4CTA')" | ||
icon="pi pi-arrow-right" | ||
icon-pos="right" | ||
/> | ||
</p> | ||
</div> | ||
</StandardContent> | ||
</template> |
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.