From a680360ef722a4f5e2e6fd1ed2f5975681856763 Mon Sep 17 00:00:00 2001 From: Graphictoria Date: Fri, 22 Jul 2022 00:13:13 -0400 Subject: [PATCH] More shop stuff. --- web/resources/js/components/Feed.js | 12 ++-- web/resources/sass/Graphictoria.scss | 8 +++ web/resources/views/web/shop/asset.blade.php | 59 +++++++++++++++++--- 3 files changed, 65 insertions(+), 14 deletions(-) diff --git a/web/resources/js/components/Feed.js b/web/resources/js/components/Feed.js index 8a5a48c..6e14e7e 100644 --- a/web/resources/js/components/Feed.js +++ b/web/resources/js/components/Feed.js @@ -118,20 +118,20 @@ class Feed extends Component { ( this.state.feedPosts.length > 0 ? <> -
+
{ this.state.feedPosts.map(({ postId, poster, time, content }, index) => <> -
this.setState({ mouseHover: index }) } onMouseLeave={ () => this.setState({ mouseHover: -1 }) }> -
+
this.setState({ mouseHover: index }) } onMouseLeave={ () => this.setState({ mouseHover: -1 }) }> + -
+
{ poster.name }{ poster.icon ? <>  : null } { this.state.mouseHover == index ? Report : null } diff --git a/web/resources/sass/Graphictoria.scss b/web/resources/sass/Graphictoria.scss index 4577c27..cad5cb6 100644 --- a/web/resources/sass/Graphictoria.scss +++ b/web/resources/sass/Graphictoria.scss @@ -337,6 +337,14 @@ html { background-size: cover; } +.graphictora-feed-user-circle { + border-radius: 50%; + background: url("/Images/User-Image-Vignette.png"); + background-size: cover; + width: 50px; + height: 50px; +} + // Border .border { diff --git a/web/resources/views/web/shop/asset.blade.php b/web/resources/views/web/shop/asset.blade.php index 6ebb0f8..f91998f 100644 --- a/web/resources/views/web/shop/asset.blade.php +++ b/web/resources/views/web/shop/asset.blade.php @@ -6,22 +6,65 @@ @endsection @section('content') -
+
@if(!$asset->approved)
This asset is pending approval. It will not appear in-game and cannot be voted on or purchased at this time.
@endif
-
+
+ {{ $asset->name }}
-
-

{{ $asset->name }}

+
+

{{ $asset->name }}

{{-- TODO: XlXi: url to user's profile --}} -

By: {{ $asset->user->username }}

-
-

Type: {{ $asset->typeString() }}

-

Description:

+

By {{ $asset->user->username }}

+
+ {{-- TODO: XlXi: limiteds/trading --}} +
+
+

Price

+
+
+ @if( $asset->onSale ) +

+ {{ \App\Helpers\NumberHelper::Abbreviate(Auth::user()->tokens) }}

+ + @endif + @php + $buttonText = 'Buy'; + $buttonClass = 'success'; + + // TODO: XlXi: Owned items + if(!$asset->onSale) { + $buttonText = 'Offsale'; + $buttonClass = 'secondary'; + } + @endphp + +
+
+
+
+

Type

+
+
+

{{ $asset->typeString() }}

+
+
+
+
+

Description

+
+
+ @if ( $asset->description ) +

{{ $asset->description }}

+ @else +

This item has no description.

+ @endif +
+