Skip to content

Commit f187292

Browse files
committed
update CMS info view
1 parent 3aa816f commit f187292

3 files changed

Lines changed: 27 additions & 95 deletions

File tree

resources/css/widgets.css

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,3 @@
1717
@apply focus:outline-none focus-visible:ring-primary-500 dark:focus-visible:ring-primary-500;
1818
}
1919
}
20-
21-
22-
.fi-wi-cms-info {
23-
24-
@apply grid gap-6 lg:grid-rows-3 lg:grid-flow-col lg:gap-8;
25-
26-
.card {
27-
@apply shadow-[0px_14px_34px_0px_rgba(0,0,0,0.08)] ring-1 ring-white/[0.05];
28-
@apply hover:text-black/70 hover:ring-black/20 dark:hover:text-white/70 dark:hover:ring-white/20;
29-
&#docs-card {
30-
@apply gap-6 overflow-hidden lg:row-span-3 lg:col-span-2;
31-
}
32-
&:not(#docs-card) {
33-
@apply gap-4 lg:col-span-2 lg:row-span-1;
34-
}
35-
}
36-
#docs-card #screenshot-container {
37-
@apply relative flex w-full flex-1 items-stretch;
38-
39-
.screenshot {
40-
@apply aspect-video h-full w-full flex-1 rounded-[10px] object-top object-cover;
41-
42-
&.light-screenshot {
43-
@apply drop-shadow-[0px_4px_34px_rgba(0,0,0,0.06)] dark:hidden;
44-
}
45-
&.dark-screenshot {
46-
@apply hidden drop-shadow-[0px_4px_34px_rgba(0,0,0,0.25)] dark:block;
47-
}
48-
}
49-
}
50-
> .fi-wi-widget {
51-
@apply lg:col-span-2 lg:row-span-2;
52-
}
53-
}

resources/dist/inspirecms.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/filament/widgets/cms-info.blade.php

Lines changed: 26 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,32 @@
1-
2-
<x-filament-widgets::widget class="fi-wi-cms-info">
3-
<a
4-
href="{{ $this->getDocumentUrl() }}"
5-
id="docs-card"
6-
class="card flex-col"
7-
>
8-
<div id="screenshot-container" class="relative flex w-full flex-1 items-stretch">
9-
<img
10-
src="{{ $this->getLightScreenshotUrl() }}"
11-
alt="Laravel documentation screenshot"
12-
class="screenshot light-screenshot"
13-
onerror="
14-
document.getElementById('screenshot-container').classList.add('!hidden');
15-
document.getElementById('docs-card').classList.add('!row-span-1');
16-
document.getElementById('docs-card-content').classList.add('!flex-row');
17-
document.getElementById('background').classList.add('!hidden');
18-
"
19-
/>
20-
<img
21-
src="{{ $this->getDarkScreenShotUrl() }}"
22-
alt="Laravel documentation screenshot"
23-
class="screenshot dark-screenshot"
24-
/>
25-
</div>
26-
27-
<div class="relative flex items-center gap-6 lg:items-end">
28-
<div id="docs-card-content" class="flex items-start gap-6 lg:flex-col">
29-
<div class="icon-container">
30-
<x-filament::icon icon="heroicon-o-book-open" class="icon" />
31-
</div>
32-
33-
<div class="pt-3 sm:pt-5 lg:pt-0">
34-
<h2>Documentation</h2>
35-
36-
<p class="mt-4 text-sm/relaxed">
37-
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Qui voluptatum, voluptatibus sequi excepturi expedita distinctio vel recusandae, eligendi illo cum iusto incidunt libero, minus tempora alias quae at sed eaque!
38-
</p>
39-
</div>
1+
<x-filament-widgets::widget>
2+
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 pb-4">
3+
<a href="{{ $this->getDocumentUrl() }}" class="flex items-center p-6 bg-white rounded-lg shadow-sm dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700">
4+
<div class="mr-4">
5+
<x-filament::icon icon="heroicon-o-book-open" class="w-8 h-8 text-primary-500" />
406
</div>
7+
<div class="flex-1">
8+
<h3 class="text-lg font-medium">Documentation</h3>
9+
<p class="mt-2 text-sm text-gray-600 dark:text-gray-300">
10+
Access our comprehensive guides and documentation
11+
</p>
12+
</div>
13+
<x-filament::icon icon="heroicon-o-chevron-right" class="w-5 h-5 text-gray-400" />
14+
</a>
4115

42-
<x-filament::icon icon="heroicon-o-chevron-right" class="icon" />
43-
</div>
44-
</a>
45-
46-
<a
47-
href="{{ $this->getNewsUrl() }}"
48-
class="card"
49-
>
50-
<div class="icon-container">
51-
<x-filament::icon icon="heroicon-o-newspaper" class="icon" />
52-
</div>
53-
54-
<div class="pt-3 sm:pt-5">
55-
<h2>News</h2>
56-
57-
<p class="mt-4 text-sm/relaxed">
58-
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nemo, maiores recusandae. Ex incidunt laboriosam suscipit asperiores deleniti accusantium magni eaque corporis enim, labore aspernatur nihil, culpa maxime rerum nisi? Error.
59-
</p>
60-
</div>
16+
<a href="{{ $this->getNewsUrl() }}" class="flex items-center p-6 bg-white rounded-lg shadow-sm dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700">
17+
<div class="mr-4">
18+
<x-filament::icon icon="heroicon-o-newspaper" class="w-8 h-8 text-primary-500" />
19+
</div>
20+
<div class="flex-1">
21+
<h3 class="text-lg font-medium">News</h3>
22+
<p class="mt-2 text-sm text-gray-600 dark:text-gray-300">
23+
Stay updated with latest features and announcements
24+
</p>
25+
</div>
26+
<x-filament::icon icon="heroicon-o-chevron-right" class="w-5 h-5 text-gray-400" />
27+
</a>
6128

62-
<x-filament::icon icon="heroicon-o-chevron-right" class="icon" />
63-
</a>
29+
</div>
6430

6531
@livewire(\SolutionForest\InspireCms\Filament\Widgets\PageActivity::class)
6632

0 commit comments

Comments
 (0)