-
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.
* fix: use a instead of button * removes unused code * fixes all buttons and hides banner on pages --------- Co-authored-by: Scott Pierce-Wrobel <[email protected]>
- Loading branch information
1 parent
236075d
commit f3a7483
Showing
26 changed files
with
297 additions
and
349 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,93 @@ | ||
<script> | ||
import RedButton from '../buttons/WhiteButton.svelte'; | ||
import { mobile, active } from './stores.js'; | ||
export let title; | ||
export let sequence; | ||
export let text; | ||
export let href; | ||
import ButtonCustom from '../buttons/ButtonCustom.svelte' | ||
import { mobile, active } from './stores.js' | ||
export let title | ||
export let sequence | ||
export let text | ||
export let href | ||
let mobileValue; | ||
mobile.subscribe((value) => {mobileValue = value;}); | ||
let mobileValue | ||
mobile.subscribe((value) => { | ||
mobileValue = value | ||
}) | ||
let activeValue; | ||
active.subscribe((value) => {activeValue = value;}); | ||
let activeValue | ||
active.subscribe((value) => { | ||
activeValue = value | ||
}) | ||
</script> | ||
|
||
{#if activeValue==sequence} | ||
|
||
<div class="h-fit lg:h-full grid grid-cols-1"> | ||
{#if activeValue == sequence} | ||
<div class="h-fit lg:h-full grid grid-cols-1"> | ||
<div class="grid grid-cols-5 p-4 content-center items-end"> | ||
{#if !mobileValue} | ||
<div class="col-span-5 grid grid-cols-2 items-center justify-self-end "><div class = "text-xl align-text-bottom font-menobanner text-mcswf-gold mr-2"> CLOSE </div> <img src="/icons/window-close.svg" alt='close'></div> | ||
{/if} | ||
<div class="col-span-4 flex items-end"> | ||
<div class="text-5xl lg:text-[32px] me-4 text-center font-menobanner text-mcswf-gold py pt-2"> 0{sequence}</div> | ||
<div class="lg:text-left pt-2 tracking-widest font-bold block text-2xl lg:text-4xl"> {title} </div> | ||
{#if !mobileValue} | ||
<div class="col-span-5 grid grid-cols-2 items-center justify-self-end"> | ||
<div | ||
class="text-xl align-text-bottom font-menobanner text-mcswf-gold mr-2"> | ||
CLOSE | ||
</div> | ||
<img src="/icons/window-close.svg" alt="close" /> | ||
</div> | ||
{/if} | ||
<div class="col-span-4 flex items-end"> | ||
<div | ||
class="text-5xl lg:text-[32px] me-4 text-center font-menobanner text-mcswf-gold py pt-2"> | ||
0{sequence} | ||
</div> | ||
<div | ||
class="lg:text-left pt-2 tracking-widest font-bold block text-2xl lg:text-4xl"> | ||
{title} | ||
</div> | ||
</div> | ||
{#if mobileValue} | ||
<div | ||
class="col-span-1 text-3xl text-center font-menobanner text-mcswf-gold"> | ||
- | ||
</div> | ||
{#if mobileValue} | ||
<div class="col-span-1 text-3xl text-center font-menobanner text-mcswf-gold"> - </div> | ||
{/if} | ||
{/if} | ||
</div> | ||
<div class="text-base lg:text-[21px] px-4 pb-6 px-8"> | ||
{text} | ||
{text} | ||
</div> | ||
<div class="col-span-1 flex h-fit py-8 px-6 {mobileValue ? 'justify-center' : 'justify-left'} "> | ||
<div> | ||
<RedButton text="LEARN MORE" href={href} /> | ||
</div> | ||
<div | ||
class="col-span-1 flex h-fit py-8 px-6 {mobileValue | ||
? 'justify-center' | ||
: 'justify-left'} "> | ||
<div> | ||
<ButtonCustom | ||
color="white" | ||
size="lg" | ||
customClasses="w-64 lg:w-52" | ||
{href} | ||
>LEARN MORE | ||
</ButtonCustom> | ||
</div> | ||
</div> | ||
{#if !mobileValue} | ||
<div class="grid grid-cols-1 self-end p-4"> | ||
<div class="col-span-1 text-3xl font-bold text-end whitespace-nowrap text-mcswf-gold right-10 bottom-10"> - </div> | ||
<div class="grid grid-cols-1 self-end p-4"> | ||
<div | ||
class="col-span-1 text-3xl font-bold text-end whitespace-nowrap text-mcswf-gold right-10 bottom-10"> | ||
- | ||
</div> | ||
</div> | ||
{/if} | ||
</div> | ||
</div> | ||
{:else} | ||
<div class="grid grid-cols-5 items-center justify-start p-4 lg:p-8 lg:grid-cols-2 text-white align-bottom bg-black border-y lg:h-full lg:items-end lg:border-y-0"> | ||
<p class="text-[64px] text-left font-menobanner me-6 text-mcswf-gold">0{sequence}</p> | ||
{#if mobileValue} | ||
<div class="tracking-widest text-left text-2xl font-bold col-span-3">{title}</div> | ||
<div class="text-xl font-bold text-center">+</div> | ||
{:else} | ||
<p class="text-2xl font-bold mb-16 -rotate-90 text-start whitespace-nowrap"> | ||
+ {title} </p> | ||
{/if} | ||
</div> | ||
<div | ||
class="grid grid-cols-5 items-center justify-start p-4 lg:p-8 lg:grid-cols-2 text-white align-bottom bg-black border-y lg:h-full lg:items-end lg:border-y-0"> | ||
<p class="text-[64px] text-left font-menobanner me-6 text-mcswf-gold"> | ||
0{sequence} | ||
</p> | ||
{#if mobileValue} | ||
<div class="tracking-widest text-left text-2xl font-bold col-span-3"> | ||
{title} | ||
</div> | ||
<div class="text-xl font-bold text-center">+</div> | ||
{:else} | ||
<p | ||
class="text-2xl font-bold mb-16 -rotate-90 text-start whitespace-nowrap"> | ||
+ {title} | ||
</p> | ||
{/if} | ||
</div> | ||
{/if} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 +1,27 @@ | ||
<script> | ||
import RedButton from '../buttons/WhiteButton.svelte'; | ||
import Timer from './Timer.svelte'; | ||
import Hero from './Hero.svelte'; | ||
export let title; | ||
export let content; | ||
export let link; | ||
</script> | ||
|
||
<div class="max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8 md:pt-24 pt-12 pb-10"> | ||
<Hero padding="pt-24" desktopFontSize='[21px]' title="COHORT 8 APPLICATION DEADLINE" content="Applications for Cohort 8 are due on March 15, 2024. Marines who are accepted to the program will PCS to Austin, TX during the summer of 2024 and begin the Technical Accelerator in August 2024." /> | ||
|
||
<Timer /> | ||
|
||
<!-- Buttons --> | ||
<div class="grid w-full gap-3 mt-8 sm:inline-flex sm:justify-center"> | ||
<RedButton href={link} text="APPLY NOW" /> | ||
</div> | ||
<!-- End Buttons --> | ||
</div> | ||
import ButtonCustom from '../buttons/ButtonCustom.svelte' | ||
import Timer from './Timer.svelte' | ||
import Hero from './Hero.svelte' | ||
export let title | ||
export let content | ||
export let link | ||
</script> | ||
|
||
<div class="max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8 md:pt-24 pt-12 pb-10"> | ||
<Hero | ||
padding="pt-24" | ||
desktopFontSize="[21px]" | ||
title="COHORT 8 APPLICATION DEADLINE" | ||
content="Applications for Cohort 8 are due on March 15, 2024. Marines who are accepted to the program will PCS to Austin, TX during the summer of 2024 and begin the Technical Accelerator in August 2024." /> | ||
|
||
<Timer /> | ||
|
||
<!-- Buttons --> | ||
<div class="grid w-full gap-3 mt-8 sm:inline-flex sm:justify-center"> | ||
<ButtonCustom color="white" size="xl" customClasses="w-64" {link}> | ||
APPLY NOW | ||
</ButtonCustom> | ||
</div> | ||
<!-- End Buttons --> | ||
</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
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.