Skip to content

Commit

Permalink
mobile tweaks to styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jimirobaer committed Nov 15, 2024
1 parent 6b253b9 commit 1d00b75
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/TopSecretComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function render(): View
->layout('layout.blank', [
'title' => 'Top Secret',
'bodyClass' => 'bg-bf-dark-gray min-h-screen overflow-hidden antialiased',
'background' => '/backgrounds/bf-24-desk.jpg',
'image' => '/backgrounds/bf-24-desk.jpg',
]);
}
}
2 changes: 1 addition & 1 deletion resources/css/front/utilities/black-friday.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.bf-page {
@apply pt-16;
@apply pt-16 pb-16;
height: 100svh;
overflow: hidden;
}
Expand Down
37 changes: 21 additions & 16 deletions resources/views/front/pages/top-secret/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?php $image = image("/backgrounds/bf-24-desk.jpg") ?>

<div x-data="{
currentPage: 'about',
showCover: true,
showAwards: false,
showToken: false
}">

<div class="wallpaper">
<img srcset="{{ $image->getSrcset() }}" src="{{ $image->getUrl() }}" width="2400" sizes="100vw" alt="" class="h-full object-cover">
</div>

@push('head')
<link rel="stylesheet" href="https://use.typekit.net/oso3hdx.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand All @@ -14,15 +20,15 @@

<header class="absolute grid grid-cols-3 h-16 items-center z-10 w-full">

<nav class="text-bf-beige px-6 py-4 text-xs font-obviously-narrow font-semibold tracking-[0.15em]">
<nav class="text-bf-beige px-6 py-4 text-xs font-obviously-narrow font-semibold tracking-[0.15em] col-span-2 md:col-auto">
<ul class="flex gap-4">
<li><button @click="currentPage = 'about'" class="uppercase hover:underline" :class="{ 'underline': currentPage === 'about' }">About</button></li>
<li><button @click="currentPage = 'challenge'" class="uppercase hover:underline" :class="{ 'underline': currentPage === 'challenge' }">Daily Challenge</button></li>
</ul>
</nav>

<div
class="text-bf-beige text-base font-obviously-narrow uppercase font-semibold tracking-[0.2em] col-start-2 pt-4">
class="pt-4 text-bf-beige text-base font-obviously-narrow uppercase font-semibold tracking-[0.2em] md:col-start-2">
<div class="text-center">
<p>Day {{ $currentDay }}</p>
<x-countdown :expires="$days[$currentDay]->endOfDay()">
Expand All @@ -38,13 +44,13 @@ class="text-bf-beige text-base font-obviously-narrow uppercase font-semibold tra

@auth
<div class="bf-page page-challenge" x-show="currentPage === 'challenge'">
<div class="grid justify-center h-full pt-16">
<div class="grid justify-center h-full mt-16">

<div class="relative challenge-sheet">

<div class="max-w-[800px] overflow-hidden m-auto">

<div class="flex flex-col gap-6 p-12 pb-0 bg-white shadow-bf-hard">
<div class="flex flex-col gap-6 p-8 pb-0 lg:p-16 lg:pb-4 bg-white shadow-bf-hard">

<div class="font-special-elite text-lg">
@if ($reward)
Expand All @@ -54,15 +60,15 @@ class="text-bf-beige text-base font-obviously-narrow uppercase font-semibold tra
<div x-data="{
showInput: false,
}" class="grid gap-6 items-start">
<div x-on:click="showInput = true" class="px-8 paper-markup text-lg group"
<div x-on:click="showInput = true" class="paper-markup text-lg group"
x-bind:class="showInput ? '' : 'cursor-pointer'">
<p class="group-hover:underline">{{ $question }}</p>
</div>

<textarea x-show="showInput" x-on:click="$el.focus();$el.select();"
class="form-input mx-8 border border-bf-dark-gray resize-none h-24 font-sans" name="answer" id="answer" wire:model="answer"></textarea>
class="form-input border border-bf-dark-gray resize-none h-24 font-sans" name="answer" id="answer" wire:model="answer"></textarea>

<div x-show="showInput" class="px-8 border-b border-bf-beige">
<div x-show="showInput">
<button class="paper-action-btn" wire:click="submitAnswer">
Submit your solution
</button>
Expand All @@ -81,9 +87,9 @@ class="form-input mx-8 border border-bf-dark-gray resize-none h-24 font-sans" na

</div>

<div class="p-24 mt-auto flex text-white gap-4">
<div class="p-12 lg:p-24 flex flex-wrap text-white gap-4 justify-center">
@foreach ($days as $day => $date)
<div class="p-8
<div class="p-2 lg:p-8
{{ $currentDay === $day ? 'bf-date-border' : '' }}
{{ $date->isFuture() ? 'opacity-50' : 'cursor-pointer' }}
"
Expand Down Expand Up @@ -193,7 +199,7 @@ class="text-2xl font-obviously-condensed uppercase font-bold underline hover:no-
@endguest

<div
class="grid justify-center paper-stack h-full pt-16"
class="grid justify-center paper-stack h-full pt-16 overflow-scroll md:overflow-visible"
>

<div
Expand All @@ -211,7 +217,7 @@ class="font-obviously-condensed font-bold text-[3.5rem] uppercase leading-[80%]
Instructions for new Agents</h1>
<img src="../images/black-friday/confidential-stamp.png" alt=""
class="w-[360px]">
<div class="mt-auto">
<div class="md:mt-auto">
<button
class="text-bf-red-dark text-2xl font-obviously-condensed uppercase font-bold underline hover:no-underline tracking-wide"
x-on:click="showCover = false">
Expand All @@ -226,10 +232,10 @@ class="text-bf-red-dark text-2xl font-obviously-condensed uppercase font-bold un
<div class="textured-paper absolute inset-0"></div>
</div>

<div class="relative max-w-[760px] bg-white shadow-bf-hard paper-stack-item lg:rotate-[-2.5deg]">
<div class="relative max-w-[760px] bg-white shadow-bf-hard paper-stack-item rotate-0 md:rotate-[-2.5deg]">

<div class="absolute right-0 aspect-square w-32 flex items-center red-sticky z-[1]">
<span class="block font-marker p-4 text-center font-sm leading-tight">
<div class="absolute right-0 md:aspect-square w-32 flex items-center red-sticky z-[1]">
<span class="block font-marker p-4 text-center text-sm md:text-base md:leading-tight">
<button
class="underline hover:no-underline"
x-on:click="showAwards = !showAwards"
Expand All @@ -241,7 +247,7 @@ class="underline hover:no-underline"

<div class="flex overflow-hidden">

<div class="p-14 lg:p-28 font-special-elite text-lg paper-markup">
<div class="p-12 lg:p-28 font-special-elite md:text-lg paper-markup">
<p>Agent,</p>
<p>Welcome to <abbr
title="Secure Packages And Technical Intelligence Extraction">S.P.A.T.I.E.</abbr>—the
Expand All @@ -268,7 +274,6 @@ class="underline hover:no-underline"
<div
class="max-w-[632px] w-full bg-bf-red-light p-8 shadow-bf-smooth overflow-hidden rewards-card rewards-card-markup"
x-show="showAwards"
x-transition
>
<div class="p-8 font-special-elite paper-markup paper-dotted-border">
<p>Some of the incentives we provide new agents:</p>
Expand Down
2 changes: 0 additions & 2 deletions resources/views/layout/blank.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

<body class="{{ $bodyClass ?? '' }}">

@include('layout.partials.wallpaper')

{{ $slot }}

<x-impersonate::banner/>
Expand Down

0 comments on commit 1d00b75

Please sign in to comment.