Skip to content

Commit 571aba7

Browse files
committed
minor #2092 [Site] Refresh banner (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Refresh banner * Refreshed banner * Fix menu icons (mobile) * Fix homepage spacing (mobile) | x | Mobile | Desktop | | - | - | - | | Before | ![ux-header2](https://github.com/user-attachments/assets/ba0273b3-afbf-4218-bcec-85c6e8ba7c22) | ![ux-header3](https://github.com/user-attachments/assets/4a919b92-ec23-47c2-b59f-4b6857661eff) | | After | ![ux-header1](https://github.com/user-attachments/assets/f96a2dad-069a-4d1c-8d73-8692e78661ca) | ![ux-header4](https://github.com/user-attachments/assets/2e64403d-0211-4bbf-8944-08d956ab1852) | Commits ------- 56b4c8f [Site] Refresh banner
2 parents 93027de + 56b4c8f commit 571aba7

File tree

5 files changed

+21
-46
lines changed

5 files changed

+21
-46
lines changed

ux.symfony.com/assets/styles/app/_root.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
--space-larger: 2rem;
1515

1616
// Fonts
17-
--font-family-title: "Ubuntu";
17+
--font-family-title: "Ubuntu", "Helvetica Neue", sans-serif;
1818
--font-family-text: system-ui, sans-serif;
1919
--font-family-code: ui-monospace, "SF Mono", SFMono-Regular, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
2020

ux.symfony.com/assets/styles/components/_Banner.scss

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,11 @@
1616

1717
.BannerInner {
1818
display: flex;
19-
flex-direction: column;
20-
padding: 1rem 0;
19+
flex-direction: row;
20+
flex-wrap: nowrap;
21+
padding-block: .5rem;
2122
gap: 1rem;
2223
position: relative;
23-
margin: 0 auto;
24-
}
25-
26-
.BannerMedia {
27-
align-self: center;
28-
justify-self: center;
29-
}
30-
.BannerImage {
31-
width: max(10vw, 40px);
32-
height: auto;
33-
filter: drop-shadow(1px 1px .5rem #000) drop-shadow(2px 2px 2rem #970404);
3424
}
3525

3626
.BannerContent {
@@ -42,25 +32,19 @@
4232
text-wrap: balance;
4333
}
4434

45-
.BannerTitle {
46-
text-align: center;
47-
font-size: 1.2em;
48-
font-family: var(--font-family-title);
49-
margin: 0;
50-
color: #fff;
51-
}
52-
5335
.BannerText {
5436
text-align: center;
5537
margin: 0;
56-
font-size: 0.85rem;
57-
line-height: 1.2;
58-
font-weight: 300;
59-
color: #fff;
38+
font-size: 0.8rem;
39+
line-height: 1.3;
40+
font-weight: 400;
41+
color: #fffd;
6042
}
6143
.BannerText em {
6244
text-decoration: underline;
6345
text-underline-offset: .25rem;
46+
font-weight: 600;
47+
font-style: normal;
6448
}
6549

6650
.BannerAction {
@@ -72,17 +56,17 @@
7256
.BannerButton {
7357
display: flex;
7458
align-items: center;
75-
padding: .35em .75em;
59+
padding: .15em .5em;
7660
align-self: center;
7761
color: #fffc;
78-
font-size: 1.1em;
62+
font-size: .9em;
7963
font-family: var(--font-family-title);
80-
gap: .5em;
64+
gap: .35em;
8165
justify-content: center;
8266
background: linear-gradient(#000e, #000d) padding-box,
8367
linear-gradient(90deg, #D65831 0%, #D2D631 36.52%, #31D673 71.83%, #3aa3ff 100%) border-box;
8468
border-radius: 2em;
85-
border: 3px solid transparent;
69+
border: 2px solid transparent;
8670
transition: all 250ms linear;
8771
}
8872
.BannerButton:hover {
@@ -103,13 +87,11 @@
10387
.BannerButton:hover svg {
10488
transform: scale(1.1);
10589
}
106-
10790
@media screen and (min-width: 768px) {
108-
.BannerImage {
109-
width: 64px;
110-
}
11191
.BannerInner {
112-
flex-direction: row;
113-
padding: 1rem 2rem;
92+
padding: .5rem 2rem;
93+
}
94+
.BannerText {
95+
font-size: .9rem;
11496
}
11597
}

ux.symfony.com/templates/_banner.html.twig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
<aside class="Banner">
22
<div class="container-xxl">
33
<div class="BannerInner">
4-
<div class="BannerMedia">
5-
<picture>
6-
<source type="image/webp" srcset="{{ asset('images/heart.webp') }}"/>
7-
<img src="{{ asset('images/heart.png') }}" alt="Heart" class="BannerImage" width="256" height="256">
8-
</picture>
9-
</div>
104
<div class="BannerContent">
11-
<p class="BannerTitle">Help Ryan Get The Treatment He Needs!</p>
125
<p class="BannerText">
136
Ryan is the lead maintainer of Symfony UX. Now he <em>needs your help</em>.
147
</p>

ux.symfony.com/templates/_header.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
</button>
1818
<twig:ThemeSwitcher class="AppNav_item AppNav_item--icon" aria-label="Switch dark/light mode"/>
1919
<a
20-
class="AppNav_item AppNav_item--icon"
20+
class="AppNav_item AppNav_item--icon d-none d-sm-grid"
2121
href="https://x.com/symfonyux"
2222
rel="external me"
2323
title="Symfony UX on X (Twitter)"
2424
>
2525
<twig:Icon name="x-twitter"/>
2626
</a>
2727
<a
28-
class="AppNav_item AppNav_item--icon"
28+
class="AppNav_item AppNav_item--icon d-none d-sm-grid"
2929
href="https://github.com/symfony/ux"
3030
rel="external me"
3131
title="Symfony UX on GitHub"

ux.symfony.com/templates/main/homepage.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="container-fluid container-xxl px-4 py-4 px-md-5 py-md-5">
1313

1414
<div class="row justify-content-center g-5 pt-3 mt-2">
15-
<div class="col-12 text-center text-lg-start col-lg-6">
15+
<div class="col-12 text-center text-lg-start col-lg-6 mt-0 mt-sm-5">
1616
<span class="eyebrows">curated by symfony</span>
1717
<h1 class="my-3">JavaScript <em class="rainbow-emphasis">tools</em> you can't live without.</h1>
1818
<p>A set of PHP &amp; JavaScript packages to solve every day frontend problems featuring Stimulus and Turbo.</p>

0 commit comments

Comments
 (0)