-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented rapidez/blade-components and v3 colors (#39)
- Loading branch information
1 parent
b5c00f2
commit e2b805f
Showing
29 changed files
with
53 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="flex flex-wrap w-full justify-between gap-2"> | ||
<x-rapidez-mw::button.outline href="/account"> | ||
<x-rapidez::button.outline href="/account"> | ||
@lang('Back to dashboard') | ||
</x-rapidez-mw::button.outline> | ||
<x-rapidez-mw::button.accent v-on:click="addWishlist('{{ __('New wishlist') }}')"> | ||
</x-rapidez::button.outline> | ||
<x-rapidez::button.secondary v-on:click="addWishlist('{{ __('New wishlist') }}')"> | ||
@lang('Create new wishlist') | ||
</x-rapidez-mw::button.accent> | ||
</x-rapidez::button.secondary> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<x-rapidez-mw::button.accent @click.prevent="addAllToCart" class="max-md:w-full"> | ||
<x-rapidez::button.secondary @click.prevent="addAllToCart" class="max-md:w-full"> | ||
@lang('Add all items to cart') | ||
</x-rapidez-mw::button.accent> | ||
</x-rapidez::button.secondary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<x-rapidez-mw::button.outline href="{{ route('wishlist.listing') }}" class="mt-5">@lang('Back to wishlists')</x-rapidez-mw::button.outline> | ||
<x-rapidez::button.outline href="{{ route('wishlist.listing') }}" class="mt-5">@lang('Back to wishlists')</x-rapidez::button.outline> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div v-if="wishlist.description" class="p-4 text-ct-primary rounded bg-ct-inactive-100 mb-4 whitespace-pre-line"> | ||
<div v-if="wishlist.description" class="p-4 text-primary rounded bg mb-4 whitespace-pre-line"> | ||
<p>@{{ wishlist.description }}</p> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
resources/views/account/partials/details/edit-button.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<x-rapidez-mw::dropdown class="absolute right-0 top-11 w-60 flex flex-col p-4 sm:px-7 sm:py-6"> | ||
<x-rapidez-mw::button.link v-if="wishlist" @click="toggleEdit"> | ||
@lang('Change name') | ||
<x-heroicon-o-pencil-square class="w-5 h-5"/> | ||
<x-heroicon-o-pencil-square class="size-5"/> | ||
</x-rapidez-mw::button.link> | ||
<hr class="border-t my-4" /> | ||
<x-rapidez-mw::button.link v-if="wishlist" @click="removeWishlist(wishlist.id, true)"> | ||
@lang('Delete wishlist') | ||
<x-heroicon-o-trash class="w-5 h-5"/> | ||
<x-heroicon-o-trash class="size-5"/> | ||
</x-rapidez-mw::button.link> | ||
</x-rapidez-mw::dropdown> |
6 changes: 3 additions & 3 deletions
6
resources/views/account/partials/details/product/name.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<td class="max-sm:w-56 sm:flex-1"> | ||
<div class="flex flex-col items-start"> | ||
<a :href="product.url" class="font-medium text-base">@{{ product.name }}</a> | ||
<span v-if="category" class="text-ct-inactive text-sm">@{{ category }}</span> | ||
<span v-if="!product.in_stock" class="text-sm text-ct-wishlist">@lang('Not in stock')</span> | ||
<a :href="product.url" class="font-medium">@{{ product.name }}</a> | ||
<span v-if="category" class="text-muted text-sm">@{{ category }}</span> | ||
<span v-if="!product.in_stock" class="text-sm text">@lang('Not in stock')</span> | ||
</div> | ||
</td> |
2 changes: 1 addition & 1 deletion
2
resources/views/account/partials/details/product/price.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<td> | ||
<span class="text-sm font-bold text-ct-primary">@{{ product.price | price }}</span> | ||
<span class="text-sm font-bold text-primary">@{{ product.price | price }}</span> | ||
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
resources/views/account/partials/details/product/remove.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@if($editable) | ||
<td> | ||
<button @click="remove" class="hover:opacity-75 max-md:ml-auto"> | ||
<x-heroicon-s-heart class="w-5 h-5 text-ct-wishlist" /> | ||
<x-heroicon-s-heart class="size-5 text" /> | ||
</button> | ||
</td> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<x-rapidez-mw::dropdown class="absolute right-0 top-6 w-60 flex flex-col p-4 sm:px-7 sm:py-6"> | ||
<x-rapidez-mw::button.link v-if="wishlist" v-bind:href="'{{ route('wishlist.show', '') }}/'+wishlist.id"> | ||
@lang('Edit') | ||
<x-heroicon-o-pencil-square class="w-5 h-5"/> | ||
<x-heroicon-o-pencil-square class="size-5"/> | ||
</x-rapidez-mw::button.link> | ||
<hr class="border-t my-4" /> | ||
<x-rapidez-mw::button.link v-if="wishlist" @click="removeWishlist(wishlist.id)"> | ||
@lang('Delete wishlist') | ||
<x-heroicon-o-trash class="w-5 h-5"/> | ||
<x-heroicon-o-trash class="size-5"/> | ||
</x-rapidez-mw::button.link> | ||
</x-rapidez-mw::dropdown> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<a class="flex items-center gap-x-7 bg-white rounded border pb-5 pt-4 px-7 hover:opacity-75" :href="'{{ route('wishlist.show', '') }}/'+wishlist.id"> | ||
<x-heroicon-s-heart class="w-5 h-5 text-ct-wishlist mt-1.5" /> | ||
<x-heroicon-s-heart class="size-5 text mt-1.5" /> | ||
<div class="flex flex-col"> | ||
<div class="w-full text-base font-medium text-ct-neutral">@lang('Number of articles (:count)', ['count' => '@{{ wishlist.items.length }}'])</div> | ||
<div class="w-full text-sm text-ct-inactive">@lang('Latest update: :date', ['date' => '@{{ wishlist.updated_at.substring(0,10) }}']) </div> | ||
<div class="w-full text-sm text-ct-inactive max-w-48 max-md:truncate md:max-w-3xl">@{{ wishlist.description }}</div> | ||
<div class="w-full font-medium text">@lang('Number of articles (:count)', ['count' => '@{{ wishlist.items.length }}'])</div> | ||
<div class="w-full text-sm text-muted">@lang('Latest update: :date', ['date' => '@{{ wishlist.updated_at.substring(0,10) }}']) </div> | ||
<div class="w-full text-sm text-muted max-w-48 max-md:truncate md:max-w-3xl">@{{ wishlist.description }}</div> | ||
</div> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<a v-if="wishlist.shared" :href="'{{ route('wishlist.shared', '') }}/' + wishlist.sharing_token" class="text-ct-inactive text-sm hover:underline"> | ||
<a v-if="wishlist.shared" :href="'{{ route('wishlist.shared', '') }}/' + wishlist.sharing_token" class="text-muted text-sm hover:underline"> | ||
(@lang('shared')) | ||
</a> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<x-rapidez-mw::button {{ $attributes->merge(['class' => 'w-full flex items-center justify-between text-base font-medium text-ct-primary !p-0 hover:opacity-75']) }}> | ||
<x-rapidez-mw::button {{ $attributes->merge(['class' => 'w-full flex items-center justify-between font-medium text-primary !p-0 hover:opacity-75']) }}> | ||
{{ $slot }} | ||
</x-rapidez-mw::button> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div {{ $attributes->merge(['class' => 'z-10 bg-white border text-base drop-shadow-sm rounded']) }}> | ||
<div {{ $attributes->merge(['class' => 'z-10 bg-white border drop-shadow-sm rounded']) }}> | ||
{{ $slot }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<thead {{ $attributes->class(['w-full rounded bg-ct-inactive-100']) }}> | ||
<tr class="text-xs text-ct-inactive *:py-4 *:font-normal *:px-5"> | ||
<thead {{ $attributes->class(['w-full rounded bg']) }}> | ||
<tr class="text-xs text-muted *:py-4 *:font-normal *:px-5"> | ||
{{ $slot }} | ||
</tr> | ||
</thead> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<button v-if="$root.loggedIn" class="p-3" @click="toggle"> | ||
<x-heroicon-s-heart v-if="isWishlisted({{ $productId }})" class="w-5 h-5 text-ct-wishlist hover:opacity-80" /> | ||
<x-heroicon-o-heart v-else v-bind:class="{ 'text-ct-primary': isOpen, 'text-ct-border hover:text-ct-primary': !isOpen }" class="w-5 h-5 transition" /> | ||
<x-heroicon-s-heart v-if="isWishlisted({{ $productId }})" class="size-5 text hover:opacity-80" /> | ||
<x-heroicon-o-heart v-else v-bind:class="{ 'text-primary': isOpen, 'text-muted hover:text-primary': !isOpen }" class="size-5 transition" /> | ||
</button> | ||
|
||
<button v-else class="p-3" @click="toggle"> | ||
<x-heroicon-o-heart v-bind:class="{ 'text-ct-primary': isOpen, 'text-ct-border hover:text-ct-primary': !isOpen }" class="w-5 h-5 transition" /> | ||
<x-heroicon-o-heart v-bind:class="{ 'text-primary': isOpen, 'text-muted hover:text-primary': !isOpen }" class="size-5 transition" /> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template v-if="!$root.loggedIn"> | ||
@lang('You must log in to add a product to your order list.') <a href="/login" class="text-ct-accent underline underline-offset-3">@lang('login')</a> | ||
@lang('You must log in to add a product to your order list.') <a href="/login" class="text-primary underline underline-offset-3">@lang('login')</a> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="border-t"> | ||
<button class="text-base !font-sans flex justify-between w-full items-center mt-2.5 text-inactive hover:text-ct-primary" @click="addWishlist('New wishlist')"> | ||
<button class="!font-sans flex justify-between w-full items-center mt-2.5 text-muted hover:text-primary" @click="addWishlist('New wishlist')"> | ||
@lang('New order list') | ||
<x-heroicon-o-plus-circle class="w-5 h-5"/> | ||
<x-heroicon-o-plus-circle class="size-5"/> | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters