the browser-facing portion of osu!
at master 50 lines 1.3 kB view raw
1{{-- 2 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 3 See the LICENCE file in the repository root for full licence text. 4--}} 5@php 6 $links = [ 7 [ 8 'url' => route('contests.index'), 9 'title' => osu_trans('contest.index.nav_title'), 10 ], 11 [ 12 'url' => $contestMeta->url(), 13 'title' => $contestMeta->name, 14 ], 15 ]; 16@endphp 17 18@extends('master', [ 19 'titlePrepend' => $contestMeta->name, 20 'canonicalUrl' => $contestMeta->url(), 21]) 22 23@section('content') 24 <style> 25 :root { {{ css_var_2x('--header-bg', $contestMeta->header_url) }} } 26 </style> 27 28 @include('layout._page_header_v4', ['params' => [ 29 'links' => $links, 30 'linksBreadcrumb' => true, 31 'theme' => 'contests', 32 ]]) 33 34 <div class="osu-page"> 35 <div class="page-image"> 36 {!! img2x([ 37 'src' => $contestMeta->header_url, 38 'class' => 'page-image__image', 39 ]) !!} 40 41 <h1 class="page-image__title"> 42 {{ $contestMeta->name }} 43 </h1> 44 </div> 45 46 <div class="contest"> 47 @yield('contest-content') 48 </div> 49 </div> 50@endsection