Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Sep 10, 2023
1 parent 23dcfb4 commit 238a9d4
Show file tree
Hide file tree
Showing 9 changed files with 21,293 additions and 27 deletions.
2 changes: 1 addition & 1 deletion resources/css/another-portfolio.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@config "../../another-portfolio.config.js";
@config "../../tailwind-another-portfolio.config.js";

@tailwind base;
@tailwind components;
Expand Down
2,484 changes: 2,481 additions & 3 deletions resources/dist/css/another-portfolio.css

Large diffs are not rendered by default.

4,337 changes: 4,336 additions & 1 deletion resources/dist/css/breeze.css

Large diffs are not rendered by default.

5,196 changes: 5,195 additions & 1 deletion resources/dist/css/daisy.css

Large diffs are not rendered by default.

9,250 changes: 9,248 additions & 2 deletions resources/dist/js/another-portfolio.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<link rel="manifest" href="{{ asset('favicon/site.webmanifest') }}">

<link rel="stylesheet" href="{{ asset('vendor/zeus-artemis/css/another-portfolio.css') }}">
<link rel="stylesheet" href="{{ asset('css/flag-icons.css') }}">

<style>
[x-cloak] {
Expand All @@ -38,7 +37,7 @@
@include($artemisTheme.'.layouts.nav')

@if(isset($header) || isset($breadcrumbs))
<div class="bg-gray-500/10 dark:bg-gray-800">
<div class="my-10 bg-gray-500/10 dark:bg-gray-800">
<div class="max-w-7xl mx-auto py-2 px-10">
@if(isset($header))
<div class="italic font-semibold text-xl text-primary-600 dark:text-gray-100">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@
<h3 class="text-center my-4 text-gray-600">{{ $item->description }}</h3>

<x-zeus::another-card>
<div id="library-images-gallery" class="mas-grdi">
@foreach($item->getFiles() as $file)
@include($skyTheme.'.addons.library-types.'.strtolower($item->type))
@endforeach
</div>
@if($item->file_path !== null)
<a href="{{ $item->file_path }}" target="_blank">
<img class="mx-auto" src="{{ $item->file_path }}"/>
</a>
@else
<div id="library-images-gallery" class="mas-grdi">
@foreach($item->getFiles() as $file)
@include($skyTheme.'.addons.library-types.'.strtolower($item->type))
@endforeach
</div>
@endif
</x-zeus::another-card>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,38 @@
</li>
</x-slot>

<h1 class="text-primary-500 text-3xl font-bold text-center my-10">{{ $libraryTag->name }}</h1>
<h1 class="text-primary-500 text-3xl text-center my-10">{{ $libraryTag->name }}</h1>

<div class="my-2 grid grid-cols-1 md:grid-cols-2 gap-2">
@foreach($libraryTag->library as $item)
<x-zeus::another-card>
<div>
<h2 class="text-secondary-500 text-xl font-semibold">
<h2 class="text-secondary-400 text-xl font-semibold">
<a href="{{ route('library.item', $item->slug) }}">
{{ $item->title ?? '' }}
</a>
</h2>

<div class="w-full relative h-96">
@foreach($item->getFiles() as $file)
@php
$sign = ($loop->even) ? '+' : '-' ;
$angle1 = \LaraZeus\Artemis\Classes\RandomNumber::get($loop->iteration,$item->getFiles()->count()+abs(fmod($item->getFiles()->count(),5)-30));
$x = \LaraZeus\Artemis\Classes\RandomNumber::get($loop->iteration,$item->getFiles()->count()+abs(fmod($item->getFiles()->count(),5)-10));
$y = \LaraZeus\Artemis\Classes\RandomNumber::get($loop->iteration,$item->getFiles()->count()+abs(fmod($item->getFiles()->count(),5)-10));
@endphp
<a href="{{ $file->getFullUrl() }}" target="_blank">
<div class="lib-item-card" style="--image: url('{{ $file->getFullUrl() }}'); --angle: {{ $sign }}{{ $angle1 }}deg; --x: {{ $sign }}{{ $x }}%; --y: {{ $sign }}{{ $y }}%; --caption: '{{ $item->title }}'"></div>
@if($item->file_path !== null)
<a href="{{ $item->file_path }}" target="_blank">
<img class="mx-auto my-4" src="{{ $item->file_path }}"/>
</a>
@endforeach
@else
@foreach($item->getFiles() as $file)
@if($item->type === 'IMAGE')
@php
$sign = ($loop->even) ? '+' : '-' ;
$angle1 = \LaraZeus\Artemis\Classes\RandomNumber::get($loop->iteration,$item->getFiles()->count()+abs(fmod($item->getFiles()->count(),5)-30));
$x = \LaraZeus\Artemis\Classes\RandomNumber::get($loop->iteration,$item->getFiles()->count()+abs(fmod($item->getFiles()->count(),5)-10));
$y = \LaraZeus\Artemis\Classes\RandomNumber::get($loop->iteration,$item->getFiles()->count()+abs(fmod($item->getFiles()->count(),5)-10));
@endphp
<a href="{{ $file->getFullUrl() }}" target="_blank">
<div class="lib-item-card" style="--image: url('{{ $file->getFullUrl() }}'); --angle: {{ $sign }}{{ $angle1 }}deg; --x: {{ $sign }}{{ $x }}%; --y: {{ $sign }}{{ $y }}%; --caption: '{{ $item->title }}'"></div>
</a>
@endif
@endforeach
@endif
</div>
<p class="text-center">
<a class="text-primary-500" href="{{ route('library.item', $item->slug) }}">show all</a>
Expand Down
File renamed without changes.

0 comments on commit 238a9d4

Please sign in to comment.