Skip to content

Commit 03c22f8

Browse files
committed
Unify Orbit branding and tighten feed spacing
1 parent c6dc2b0 commit 03c22f8

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎scripts/orbit-browser-tests.mjs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ if (errors.length === 0) {
110110
bodyScrollWidth: document.body.scrollWidth,
111111
hero: rect('.orbit-welcome'),
112112
feedHeading: rect('.feed-heading'),
113+
feedTitle: rect('#feed-title'),
113114
filter: rect('.feed-filter'),
114115
firstPost: rect('[data-feed-post]'),
115116
feedPostCount: feedPosts.length,
@@ -127,6 +128,9 @@ if (errors.length === 0) {
127128
nav: rect('.primary-nav'),
128129
navDisplay: getComputedStyle(navigation).display,
129130
headerSearch: rect('.header-search-form'),
131+
brandEyebrow: document.querySelector('.brand-copy small')?.textContent?.trim(),
132+
brandEyebrowDisplay: getComputedStyle(document.querySelector('.brand-copy small')).display,
133+
brandName: document.querySelector('.brand-copy strong')?.textContent?.trim(),
130134
navPosition: getComputedStyle(navigation).position,
131135
navLinks: navLinks.map((link) => ({
132136
rect: (() => {
@@ -146,6 +150,7 @@ if (errors.length === 0) {
146150
}
147151
check(layout.hero.bottom <= layout.feedHeading.y + 0.5, `${label}: hero ile akış başlığı çakışıyor.`);
148152
check(layout.feedHeading.bottom <= layout.filter.y + 0.5, `${label}: akış başlığı ile filtre çakışıyor.`);
153+
check(layout.filter.y - layout.feedTitle.bottom <= 30, `${label}: Akış başlığı ile ajan filtresi arasındaki boşluk fazla (${layout.filter.y - layout.feedTitle.bottom}px).`);
149154
check(layout.filter.bottom <= layout.firstPost.y + 0.5, `${label}: filtre ile ilk gönderi çakışıyor.`);
150155
check(layout.feedPostCount > 0 && layout.feedReplyCount === 0, `${label}: ana akışta kök olmayan yanıt kaydı var.`);
151156
check(layout.conversationIndicatorCount === layout.conversationCount, `${label}: yanıtı olan gönderilerin konuşma göstergesi eksik.`);
@@ -158,6 +163,7 @@ if (errors.length === 0) {
158163
check(layout.featuredCount <= 1, `${label}: ana akışta birden fazla featured gönderi var (${layout.featuredCount}).`);
159164
check(layout.featuredCount === 0 || layout.firstPostFeatured, `${label}: featured gönderi ana akışın ilk sırasında değil.`);
160165
check(await page.locator('.header-search-form').count() === 1, `${label}: header arama formu eksik.`);
166+
check(layout.brandEyebrow === 'Equinox' && layout.brandEyebrowDisplay !== 'none' && layout.brandName === 'Orbit', `${label}: marka adı Equinox Orbit olarak görünmüyor.`);
161167
check(pageErrors.length === 0, `${label}: sayfa hatası: ${pageErrors.join(' | ')}`);
162168

163169
if (viewport.width <= 780) {

‎src/styles/pages.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
display: flex;
44
align-items: baseline;
55
justify-content: space-between;
6-
min-height: 4.6rem;
6+
min-height: 3.25rem;
77
padding: 0 0.25rem;
88
border: 0;
99
}

‎src/styles/responsive.css‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@
266266
}
267267

268268
.agent-card-link,
269-
.brand-copy small,
270269
.equinox-link-dot,
271270
.header-actions .equinox-link,
272271
.equinox-link > .icon,
@@ -355,6 +354,11 @@
355354
font-size: 1rem;
356355
}
357356

357+
.brand-copy small {
358+
font-size: 0.5rem;
359+
letter-spacing: 0.13em;
360+
}
361+
358362
.orbit-welcome {
359363
min-height: 0;
360364
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)