Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splash screen updates #6

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 33 additions & 21 deletions src/Carina.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,30 @@
<div
id="first-splash-row"
>
<div
<font-awesome-icon
id="close-splash-button"
@click="closeSplashScreen"
>&times;
</div>
icon="xmark"
/>
<div id="splash-screen-text">
<p>Want to see in the</p>
<p class="highlight">INFRARED</p>
<p>like JWST can?</p>
</div>
</div>

<div id="splash-screen-guide">
<v-row>
<v-col cols="12">
<font-awesome-icon
icon="video"
/> Watch the demo
</v-col>
<v-col cols="12">
<font-awesome-icon
icon="book-open"
/> Learn more
</v-col>
</v-row>

<div>
<v-btn
class="splash-get-started"
@click="closeSplashScreen"
:color="accentColor"
:density="xSmallSize ? 'compact' : 'default'"
size="x-large"
variant="elevated"
rounded="lg"
>
Get Started
</v-btn>
</div>

<div id="splash-screen-acknowledgements">
Expand Down Expand Up @@ -555,6 +554,10 @@ export default defineComponent({
return this.$vuetify.display.smAndDown;
},

xSmallSize(): boolean {
return this.$vuetify.display.xs;
},

cssVars() {
return {
'--accent-color': this.accentColor,
Expand Down Expand Up @@ -1047,7 +1050,7 @@ video {
padding-top: 4rem;
padding-bottom: 1rem;

border-radius: 10%;
border-radius: 30px;
border: min(1.2vw, 0.9vh) solid #6facf1;
overflow: auto;
font-family: 'Highway Gothic Narrow', 'Roboto', sans-serif;
Expand Down Expand Up @@ -1080,11 +1083,11 @@ video {

#close-splash-button {
position: absolute;
top: 0.5rem;
right: 1.75rem;
top: 20px;
right: 20px;
text-align: end;
color: var(--accent-color);
font-size: min(8vw, 5vh);
font-size: min(5vw, 4vh);

&:hover {
cursor: pointer;
Expand All @@ -1099,6 +1102,14 @@ video {

}

.splash-get-started {
border: 2px solid white;
font-size: calc(1.8 * var(--default-font-size));
margin-top: 5%;
margin-bottom: 2%;
font-weight: bold !important;
}

#splash-screen-guide {
margin-block: 1.5em;
font-size: min(5vw, 4vh);
Expand All @@ -1116,6 +1127,7 @@ video {
}

#splash-screen-acknowledgements {
margin-top: 3rem;
font-size: calc(1.7 * var(--default-font-size));
line-height: calc(1.5 * var(--default-line-height));
width: 60%;
Expand Down
Loading