Restyle bridge live ATC notice

This commit is contained in:
Remi
2025-10-05 13:42:11 +02:00
committed by itsrubberduck
parent 1cd961d642
commit ba46f6d035

View File

@@ -1,5 +1,91 @@
<template>
<div class="relative min-h-screen bg-[#0B1020] text-white">
<Transition name="fade">
<div
v-if="showNotice"
class="fixed inset-0 z-50 flex items-center justify-center bg-black/75 px-4 sm:px-6"
role="dialog"
aria-modal="true"
aria-labelledby="bridge-notice-title"
>
<div class="relative w-full max-w-4xl overflow-hidden rounded-[32px] border border-white/10 bg-[#0E1630]/95 px-6 py-8 shadow-[0_30px_100px_rgba(5,10,35,0.65)] sm:px-10 sm:py-12">
<div class="pointer-events-none absolute -left-20 top-1/2 h-72 w-72 -translate-y-1/2 rounded-full bg-[#16BBD7]/20 blur-3xl"/>
<div class="pointer-events-none absolute -right-10 -top-24 h-64 w-64 rounded-full bg-[#7B4DFF]/20 blur-3xl"/>
<button
type="button"
class="absolute right-5 top-5 inline-flex h-10 w-10 items-center justify-center rounded-full border border-white/15 bg-white/5 text-white/70 transition hover:border-white/25 hover:bg-white/10"
@click="showNotice = false"
aria-label="Close notice"
>
<v-icon icon="mdi-close" class="h-5 w-5"/>
</button>
<div class="relative flex flex-col gap-8 lg:flex-row lg:items-center lg:gap-12">
<div class="flex flex-col gap-6 lg:w-[58%]">
<span class="inline-flex items-center gap-2 self-start rounded-full border border-white/10 bg-white/5 px-4 py-2 text-xs font-semibold uppercase tracking-[0.35em] text-[#84E8F6]">
<span class="h-1.5 w-1.5 rounded-full bg-[#16BBD7] shadow-[0_0_10px_rgba(22,187,215,0.9)]"/>
Heads up
</span>
<h2 id="bridge-notice-title" class="text-3xl font-semibold leading-tight sm:text-4xl">
Live ATC is still in the works
</h2>
<p class="text-sm text-white/75 sm:text-base">
We&rsquo;re actively building this part of the Bridge experience. There isn&rsquo;t a hosted version yet, but we&rsquo;re lining everything up for launch in the coming weeks and months.
</p>
<div class="grid gap-4 sm:grid-cols-2">
<div class="rounded-2xl border border-[#16BBD7]/25 bg-[#16BBD7]/10 p-4 text-left">
<p class="text-sm font-semibold text-[#16BBD7]">For confident developers</p>
<p class="mt-1 text-sm text-white/75">
Grab the current developer builds for the supported simulators and run them locally if you&rsquo;d like to tinker early.
</p>
<a
href="https://github.com/itsrubberduck/OpenSquawk-MSFS-Bridge/"
target="_blank"
rel="noopener"
class="mt-3 inline-flex items-center gap-2 text-sm font-semibold text-[#84E8F6] transition hover:text-white"
>
<v-icon icon="mdi-github" class="h-5 w-5"/>
View developer builds
</a>
</div>
<div class="rounded-2xl border border-white/12 bg-white/5 p-4 text-left">
<p class="text-sm font-semibold text-white">For everyone else</p>
<p class="mt-1 text-sm text-white/70">
Keep exploring OpenSquawk&mdash;the Classroom is ready today and works great without any simulator setup.
</p>
</div>
</div>
</div>
<div class="flex flex-1 flex-col gap-5 rounded-2xl border border-white/10 bg-white/5 p-5 text-left backdrop-blur">
<div>
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-white/60">While you wait</p>
<p class="mt-3 text-sm text-white/75">
Jump into the Classroom to keep your skills sharp, or continue to the download section to grab existing Bridge releases.
</p>
</div>
<div class="flex flex-col gap-3">
<NuxtLink
to="/classroom"
class="inline-flex items-center justify-center gap-2 rounded-2xl bg-[#16BBD7] px-5 py-3 text-sm font-semibold text-[#0B1020] transition hover:bg-[#13a7c4] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#72d9ea]"
>
<v-icon icon="mdi-compass" class="h-5 w-5"/>
Visit the Classroom
</NuxtLink>
<button
type="button"
class="inline-flex items-center justify-center gap-2 rounded-2xl border border-white/15 bg-white/5 px-5 py-3 text-sm font-semibold text-white/80 transition hover:border-white/25 hover:bg-white/10"
@click="showNotice = false"
>
<v-icon icon="mdi-download" class="h-5 w-5"/>
Browse downloads anyway
</button>
</div>
</div>
</div>
</div>
</div>
</Transition>
<div
class="pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_rgba(22,187,215,0.15),transparent_55%)]"/>
<div
@@ -154,10 +240,13 @@
</template>
<script setup lang="ts">
import {ref} from 'vue'
import {useHead} from '#imports'
useHead({title: 'Bridge Downloads · OpenSquawk'})
const showNotice = ref(true)
const downloads = [
{
id: 'msfs2020',
@@ -223,4 +312,14 @@ const steps = [
code {
font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.2s ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
</style>