Skip to content

Commit

Permalink
Squash game layout till lg
Browse files Browse the repository at this point in the history
  • Loading branch information
marein committed May 14, 2024
1 parent bf5e874 commit 3f13c58
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 39 deletions.
4 changes: 2 additions & 2 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ notification-list {
border: var(--tblr-border-width) solid var(--tblr-border-color-translucent);
border-radius: var(--tblr-border-radius);
border-collapse: initial;
border-spacing: var(--tblr-spacer-2);
padding: var(--tblr-spacer-1) var(--tblr-spacer-1);
border-spacing: .5rem;
padding: .25rem .25rem;
}

.gp-game__field {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/Chat/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ customElements.define('chat-widget', class extends HTMLElement {
return html`
<div class="chat-item" data-id="${message.messageId}">
<div class="${`row${isSameAuthor ? ' align-items-end justify-content-end' : ''}`}">
<div class="col-xl-11 col-lg-12 col-11">
<div class="col-11">
<div class="${`chat-bubble${isSameAuthor ? ' chat-bubble-me' : ''}`}">
<div class="chat-bubble-title">
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion src/WebInterface/Presentation/Http/View/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="page">
<header class="navbar navbar-expand navbar-light d-print-none sticky-top">
<div class="container">
<h1 class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-3">
<h1 class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-lg-1">
<a href="{{ path('lobby') }}">
<img src="{{ asset('img/logo.png') }}"
alt="Gaming Platform"
Expand Down
72 changes: 37 additions & 35 deletions src/WebInterface/Presentation/Http/View/game.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,50 @@
{% set page_title = 'Anonymous vs. Anonymous' %}

{% block content %}
<div class="row row-cards">
<div class="col-sm">
<div class="card">
<div class="card-body">
<div class="row row-gap-2">
<div class="col-6 col-lg-12">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="icon icon-filled text-red">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"/>
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/>
</svg>
Anonymous
</div>
<div class="col-6 col-lg-12">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="icon icon-filled text-yellow">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"/>
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/>
</svg>
Anonymous
<div class="row row-gap-2">
<div class="col-md-7 col-xl-9">
<div class="row row-gap-2">
<div class="col-xl-4">
<div class="card">
<div class="card-body">
<div class="row row-gap-2">
<div class="col-6 col-xl-12">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="icon icon-filled text-red">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"/>
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/>
</svg>
Anonymous
</div>
<div class="col-6 col-xl-12">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="icon icon-filled text-yellow">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"/>
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/>
</svg>
Anonymous
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8">
<connect-four-game game="{{ game|json_encode|e('html_attr') }}"
previous-move-selector="#previous-move"
next-move-selector="#next-move"
follow-moves-selector="#follow-moves">
</connect-four-game>
</div>
</div>
</div>
<div class="col-lg-6">
<connect-four-game game="{{ game|json_encode|e('html_attr') }}"
previous-move-selector="#previous-move"
next-move-selector="#next-move"
follow-moves-selector="#follow-moves">
</connect-four-game>
</div>
<div class="col-sm">
<div class="col-md-5 col-xl-3">
<div class="card mb-2">
<div class="card-body">
<div class="row mb-2">
<div class="row row-gap-2">
<div class="col-3">
<button class="btn btn-icon w-100" id="previous-move">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
Expand Down Expand Up @@ -73,8 +77,6 @@
</svg>
</button>
</div>
</div>
<div class="row">
<div class="col-6">
<connect-four-abort-button game-id="{{ game.gameId }}">
Abort
Expand Down

0 comments on commit 3f13c58

Please sign in to comment.