Skip to content

Commit

Permalink
Tweaks to styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jimirobaer committed Nov 22, 2024
1 parent 9b7a880 commit e8ada1e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/TopSecretComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function render(): View
return view('front.pages.top-secret.index')
->layout('layout.blank', [
'title' => 'Top Secret',
'bodyClass' => 'bg-bf-gray min-h-screen overflow-hidden antialiased',
'bodyClass' => 'bg-bf-gray min-h-screen md:overflow-hidden antialiased',
'image' => '/backgrounds/bf-24-desk.jpg',
]);
}
Expand Down
6 changes: 6 additions & 0 deletions resources/css/front/utilities/black-friday.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@

}

.bf-pre {
@apply bg-transparent font-special-elite;
white-space: pre-wrap;
overflow-wrap: break-word;
}

.challenge-sheet {
display: flex;
flex-direction: column;
Expand Down
18 changes: 9 additions & 9 deletions resources/views/front/pages/top-secret/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class="bf-page page-challenge"
>
<div class="grid justify-center h-full mt-16">

<div class="relative challenge-sheet">
<div class="relative challenge-sheet overflow-scroll md:overflow-visible">

<div class="w-full max-w-[800px] m-auto">
<div class="w-full max-w-[100vw] md:max-w-[800px] m-auto">

@if ($reward)
<div class="red-sticky absolute right-0 -bottom-[4.5em] md:aspect-square w-32 flex items-center z-[1]">
Expand All @@ -92,19 +92,19 @@ class="underline hover:no-underline"

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

<div class="font-special-elite">
<div class="text-sm md:text-base font-special-elite">
@if ($reward)
<p class="mb-2">{{ $question }}</p>
<pre class="bf-pre mb-2">{{ $question }}</pre>
<p class="text-blue mb-2">> {{ $answer }}</p>
@elseif($days[$currentDay]->endOfDay()->isPast())
<p>{{ $question }}</p>
<pre class="bf-pre">{{ $question }}</pre>
@else
<div x-data="{
showInput: @entangle('showInput').live,
}" class="grid gap-6 items-start">
}" class="flex flex-col gap-6">
<div x-on:click="showInput = true" class="paper-markup group"
x-bind:class="showInput ? '' : 'cursor-pointer'">
<p class="group-hover:underline">{{ $question }}</p>
<pre class="bf-pre group-hover:underline">{{ $question }}</pre>
</div>

<textarea x-show="showInput" x-on:click="$el.focus();$el.select();"
Expand All @@ -129,7 +129,7 @@ class="form-input border border-bf-gray resize-none h-24 font-sans" name="answer

</div>

<div class="p-12 lg:p-24 flex flex-wrap text-white gap-4 justify-center">
<div class="p-12 lg:p-18 flex flex-wrap text-white gap-4 justify-center">
@foreach ($days as $day => $date)
<div class="p-2 lg:p-8
{{ $currentDay === $day ? 'bf-date-border' : '' }}
Expand Down Expand Up @@ -271,7 +271,7 @@ class="relative max-w-[760px] bg-paper-cover-beige overflow-hidden paper-stack-i
<div class="flex flex-col items-center text-center h-full">
<img src="../images/black-friday/spatie-logo.svg" alt="Spatie" class="w-56 mb-8">
<h1
class="font-obviously-condensed font-bold text-[3.5rem] uppercase leading-[80%] text-bf-brown text-balance md:text-[7rem]">
class="font-obviously-condensed font-bold text-[3.5rem] uppercase leading-[80%] text-bf-brown text-balance md:text-[6rem]">
Instructions for new Agents</h1>
<img src="../images/black-friday/confidential-stamp.png" alt=""
class="w-[360px]">
Expand Down

0 comments on commit e8ada1e

Please sign in to comment.