Styling updates, overhaul main landing page
This commit is contained in:
@@ -17,67 +17,72 @@
|
||||
<SeoMetaTags canonical={data.canonical} />
|
||||
|
||||
<!-- ECSESS Introduction -->
|
||||
<Section from="from-ecsess-black" to="to-ecsess-900">
|
||||
<Section from="from-ecsess-black" to="to-ecsess-800">
|
||||
<div
|
||||
class="grid grid-cols-1 gap-2 place-self-center sm:gap-4 md:gap-6 lg:h-[70vh] lg:grid-cols-3 lg:grid-rows-3 lg:items-center lg:gap-6"
|
||||
class="mx-auto grid w-full max-w-[84dvw] grid-cols-1 place-items-center gap-16 py-6 lg:min-h-[75vh] lg:grid-cols-[1fr_2fr]"
|
||||
>
|
||||
<!-- Title -->
|
||||
<div
|
||||
class="order-1 mb-2 flex items-center justify-center lg:col-start-1 lg:row-start-1 lg:mb-6 lg:place-self-center"
|
||||
>
|
||||
<div class="flex flex-col text-center">
|
||||
<p>
|
||||
{#each 'We are ECSESS!' as char, i}
|
||||
<span class="page-title" in:fade|global={{ delay: 200 + i * 100, duration: 800 }}
|
||||
>{char}</span
|
||||
>
|
||||
{/each}
|
||||
</p>
|
||||
<!-- Left: Description and Quick Links -->
|
||||
<div class="flex flex-col items-center text-center lg:items-start lg:text-left gap-2 ml-4">
|
||||
<h1 class="mb-2">
|
||||
{#each 'We are ECSESS!'.split('') as char, i}
|
||||
<span
|
||||
class="page-title"
|
||||
in:fade|global={{ delay: 150 + i * 60, duration: 800 }}
|
||||
>
|
||||
{char}
|
||||
</span>
|
||||
{/each}
|
||||
</h1>
|
||||
<p
|
||||
class="max-w-xl text-base leading-relaxed text-ecsess-200/90 md:text-lg lg:max-w-lg lg:leading-8"
|
||||
>
|
||||
<span class="font-bold text-ecsess-50">Electrical, Computer & Software Engineering Students' Society at McGill (ECSESS)</span> is the student council which helps McGill ECSE students in their
|
||||
<span class="font-bold text-ecsess-50">academic</span>,
|
||||
<span class="font-bold text-ecsess-50">technical</span>,
|
||||
<span class="font-bold text-ecsess-50">social</span> and
|
||||
<span class="font-bold text-ecsess-50">professional</span> progression.
|
||||
</p>
|
||||
|
||||
<div class="mt-8 w-full max-w-xl lg:max-w-none">
|
||||
<QuickLinks />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Description -->
|
||||
<div
|
||||
class="order-2 mb-2 flex items-center justify-center p-4 lg:col-start-1 lg:row-start-2 lg:mb-6 lg:place-self-center"
|
||||
>
|
||||
<div class="max-w-xl text-center lg:text-center">
|
||||
<RichText value={data.description} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Image -->
|
||||
<div class="order-3 m-0 sm:m-2 lg:col-span-2 lg:col-start-2 lg:row-span-3 lg:row-start-1">
|
||||
<div class="flex h-auto w-full items-center justify-center sm:h-full">
|
||||
<!-- Right: Council Photo -->
|
||||
<div class="relative w-full lg:max-w-none flex justify-center items-center">
|
||||
<div
|
||||
class="relative overflow-hidden rounded-2xl shadow-2xl ring-1 ring-ecsess-400/20 ring-offset-2 ring-offset-ecsess-900/50 flex justify-center items-center"
|
||||
>
|
||||
<div
|
||||
class="absolute inset-0 rounded-2xl bg-linear-to-br from-ecsess-500/10 to-transparent"
|
||||
aria-hidden="true"
|
||||
></div>
|
||||
<img
|
||||
src={data.councilPhoto}
|
||||
alt="ECSESS Council"
|
||||
class="ring-ecsess-500 max-h-[35vh] max-w-full rounded-md object-contain shadow-md ring-4 transition-all sm:max-h-[45vh] md:max-h-[60vh] lg:max-h-full"
|
||||
class="relative w-full h-full object-contain object-center"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Quick Links -->
|
||||
<div class="order-4 p-3 lg:col-start-1 lg:row-start-3 lg:flex lg:place-self-center lg:p-4">
|
||||
<QuickLinks />
|
||||
</div>
|
||||
</div>
|
||||
</Section>
|
||||
|
||||
<!-- Office Hours Calendar -->
|
||||
<Section from="from-ecsess-900" to="to-ecsess-800">
|
||||
<Section from="from-ecsess-800" to="to-ecsess-900">
|
||||
<div class="w-full">
|
||||
<h1 id="office-hours">Office Hours</h1>
|
||||
<h2 class="text-2xl font-bold" id="office-hours">Lounge Office Hours</h2>
|
||||
<p class="text-ecsess-200 mb-8">Come visit us in our student lounge at ENGTR 1060 to grab a coffee (free), play Mario Kart, or just chat about anything!</p>
|
||||
<OhSchedule allOhs={data.allOHs} />
|
||||
</div>
|
||||
</Section>
|
||||
|
||||
<!-- Affiliated Clubs -->
|
||||
<Section from="from-ecsess-800" to="to-ecsess-950">
|
||||
<Section from="from-ecsess-900" to="to-ecsess-black">
|
||||
<AffiliatedGroups />
|
||||
</Section>
|
||||
|
||||
<!-- FAQs and Sponsors -->
|
||||
<Section from="from-ecsess-950" to="to-ecsess-black">
|
||||
<!-- <Section from="from-ecsess-950" to="to-ecsess-black">
|
||||
<div class="grid w-full max-w-[80vw] grid-cols-1 gap-12 lg:grid-cols-2 lg:gap-24">
|
||||
<div>
|
||||
<h1>FAQs</h1>
|
||||
@@ -99,4 +104,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Section>
|
||||
</Section> -->
|
||||
|
||||
Reference in New Issue
Block a user