Skip to content

Commit 1a76de7

Browse files
committed
feature #892 [Website] Add smart cropping to examples teaser (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [Website] Add smart cropping to examples teaser | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | | License | MIT Commits ------- a418991 Add smart cropping to examples teaser
2 parents 9c60018 + a418991 commit 1a76de7

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

ai.symfony.com/assets/icons/tabler/lifebuoy.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

ai.symfony.com/assets/styles/app.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,10 @@ button#themeToggle {
218218
.demo-blog .demo-icon { background: linear-gradient(180deg, #433F77, #C43BC2); }
219219
.demo-youtube .demo-icon { background: linear-gradient(180deg, #C05920, #CF781A); }
220220
.demo-wikipedia .demo-icon { background: linear-gradient(180deg, #1CA574, #56AB48); }
221-
.demo-audio .demo-icon { background: linear-gradient(180deg, #85A72B, #97BC43); }
222-
.demo-video .demo-icon { background: linear-gradient(180deg, #42DEEE, #7069B0); }
223-
.demo-tuto .demo-icon { background: linear-gradient(180deg, #3B9D87, #35A781); }
221+
.demo-crop .demo-icon { background: linear-gradient(180deg, #85A72B, #97BC43); }
222+
.demo-audio .demo-icon { background: linear-gradient(180deg, #42DEEE, #7069B0); }
223+
.demo-video .demo-icon { background: linear-gradient(180deg, #3B9D87, #35A781); }
224+
.demo-turbo .demo-icon { background: linear-gradient(180deg, #E94E77, #D68189); }
224225

225226
.footer-meta {
226227
font-size: 0.8rem;

ai.symfony.com/templates/homepage.html.twig

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,27 @@
234234
</article>
235235
</div>
236236

237+
<div class="col-md-6">
238+
<article class="demo-crop sf-ai-card sf-ai-card-hover h-100">
239+
<div class="position-relative card-body p-3 p-lg-4 d-flex gap-3 align-items-start">
240+
<div class="demo-icon bg-success bg-opacity-10 text-success flex-shrink-0">
241+
{{ ux_icon('tabler:crop', {width: 42, height: 42}) }}
242+
</div>
243+
<div class="flex-grow-1">
244+
<div class="d-flex align-items-start gap-2 mb-1">
245+
<h3 class="h5 ff-title fw-bold mb-0">
246+
<a href="https://github.com/symfony/ai-demo" class="stretched-link">Smart Cropping</a>
247+
</h3>
248+
{{ ux_icon('tabler:arrow-right', {width: 24, height: 24, class: 'ms-1'}) }}
249+
</div>
250+
<p class="text-balance mb-0 text-muted small">
251+
AI-assisted image cropping to focus on key elements on the image while resizing.
252+
</p>
253+
</div>
254+
</div>
255+
</article>
256+
</div>
257+
237258
<div class="col-md-6">
238259
<article class="demo-audio sf-ai-card sf-ai-card-hover h-100">
239260
<div class="position-relative card-body p-3 p-lg-4 d-flex gap-3 align-items-start">
@@ -279,15 +300,15 @@
279300
</div>
280301

281302
<div class="col-md-6">
282-
<article class="demo-tuto sf-ai-card sf-ai-card-hover h-100">
303+
<article class="demo-turbo sf-ai-card sf-ai-card-hover h-100">
283304
<div class="position-relative card-body p-3 p-lg-4 d-flex gap-3 align-items-start">
284305
<div class="demo-icon bg-primary bg-opacity-10 text-primary flex-shrink-0">
285306
{{ ux_icon('logos:symfony-letters', {width: 36, height: 36}) }}
286307
</div>
287308
<div class="flex-grow-1">
288309
<div class="d-flex align-items-start gap-2 mb-1">
289310
<h3 class="h5 ff-title fw-bold mb-0">
290-
<a href="https://github.com/symfony/ai-demo" class="stretched-link">Tuto stream Bot</a>
311+
<a href="https://github.com/symfony/ai-demo" class="stretched-link">Turbo stream Bot</a>
291312
</h3>
292313
{{ ux_icon('tabler:arrow-right', {width: 24, height: 24, class: 'ms-1'}) }}
293314
</div>
@@ -342,12 +363,12 @@
342363
<div class="card-body p-3 p-lg-4 position-relative">
343364
<div class="d-flex align-items-start justify-content-between gap-2 mb-1">
344365
<h3 class="h5 ff-title fw-bold mb-3">
345-
<a class="stretched-link" href="https://github.com/symfony/ai/issues" target="_blank">Support</a>
366+
<a class="stretched-link" href="https://symfony-devs.slack.com/archives/C09BAPA9BJP" target="_blank">Support in Slack</a>
346367
</h3>
347-
{{ ux_icon('tabler:lifebuoy', {width: 24, height: 24, class: 'ms-1 text-muted'}) }}
368+
{{ ux_icon('tabler:brand-slack', {width: 24, height: 24, class: 'ms-1 text-muted'}) }}
348369
</div>
349370
<p class="text-muted small mb-0">
350-
Ask questions about SymfonyAI
371+
Ask questions in Slack channel <strong>#ai-initiative</strong>
351372
</p>
352373
</div>
353374
</article>

0 commit comments

Comments
 (0)