Skip to content

Commit b2ab592

Browse files
authored
Merge pull request #2750 from appwrite/fix-ipad-nav-spacing-and-fix-customers-page
Fix: iPad navbar spacing and CTA and customers page
2 parents 6e88532 + 75ccde3 commit b2ab592

File tree

4 files changed

+70
-25
lines changed

4 files changed

+70
-25
lines changed

src/markdoc/layouts/Category.svelte

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,17 @@
3838
</svelte:head>
3939

4040
<Main>
41-
<div class="pt-10">
42-
<div class="web-big-padding-section-level-2">
41+
<div class="pt-6">
42+
<div class="web-big-padding-section-level-2 web-category-page">
4343
<div class="container">
44-
<a class="web-link web-u-color-text-secondary items-baseline" href="/blog">
45-
<span class="web-icon-chevron-left" aria-hidden="true"></span>
46-
<span>Back to blog</span>
47-
</a>
48-
<div class="web-category-header mt-6">
49-
<div class="flex flex-col justify-between gap-6 md:flex-row md:items-center">
50-
<h1 class="text-display font-aeonik-pro text-primary">
44+
<div class="web-category-header">
45+
<div class="web-category-header-content">
46+
<h1
47+
class="web-category-header-title text-display font-aeonik-pro text-primary"
48+
>
5149
{name}
5250
</h1>
53-
<p class="text-secondary text-description">
51+
<p class="web-category-header-description text-secondary text-description">
5452
{description}
5553
</p>
5654
</div>
@@ -77,13 +75,13 @@
7775
{/each}
7876
</ul>
7977
</div>
80-
<div class="relative overflow-hidden pt-[7.5rem]">
81-
<div class="container">
82-
<FooterNav />
83-
<MainFooter />
84-
</div>
78+
</div>
79+
<div class="relative mt-0 overflow-hidden">
80+
<div class="container">
81+
<FooterNav />
82+
<MainFooter />
8583
</div>
8684
</div>
8785
</div>
88-
</div></Main
89-
>
86+
</div>
87+
</Main>

src/scss/7-components/_main-header.scss

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,45 @@
100100
--p-main-header-border-color: rgb(0, 0, 0, 0.1);
101101
}
102102

103-
@media #{$break2} {
104-
display: none;
103+
@media #{$break2} {
104+
--p-main-header-padding-block: #{pxToRem(10)};
105+
106+
padding-inline: pxToRem(20);
107+
108+
.#{$p}-main-header-wrapper {
109+
gap: pxToRem(12);
110+
}
111+
112+
.#{$p}-main-header-nav {
113+
font-size: pxToRem(15);
114+
}
115+
116+
.#{$p}-main-header-nav-list {
117+
gap: pxToRem(20);
118+
}
119+
120+
.#{$p}-main-header-end {
121+
gap: pxToRem(6);
122+
}
123+
124+
.web-logo {
125+
margin-inline-end: pxToRem(24);
126+
}
127+
128+
.#{$p}-inline-tag {
129+
display: none;
130+
}
131+
132+
.#{$p}-button {
133+
min-block-size: pxToRem(36);
134+
padding-inline: pxToRem(12);
135+
font-size: pxToRem(14);
136+
}
137+
138+
.web-main-header-cta {
139+
.cta-full { display: none; }
140+
.cta-short { display: inline; }
141+
}
105142
}
106143

107144
@media #{$break1} {

src/scss/7-components/_mobile-header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
-webkit-backdrop-filter: blur(pxToRem(8));
3030
backdrop-filter: blur(pxToRem(8));
3131
}
32-
@media #{$break3open} {
32+
@media #{$break2open} {
3333
display: none;
3434
}
3535

src/scss/8-sequences/_category-header.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@
22

33
.#{$p}-category-header {
44
display:flex; flex-direction:column;
5-
&-content { display:flex; gap:pxToRem(24); }
6-
&-description { max-inline-size:pxToRem(892); }
5+
&-content { display:flex; flex-direction:column; gap:pxToRem(12); align-items:flex-start; }
6+
&-title { max-inline-size:100%; text-wrap:balance; margin:0; }
7+
&-description { max-inline-size:pxToRem(640); margin:0; }
78

89
@media #{$break1} {
9-
&-content { flex-direction:column; }
1010
.#{$p}-input-text-search-wrapper { margin-block-start:pxToRem(24); }
1111
}
12-
@media #{$break2open} {
12+
@media #{$break4open} {
13+
&-content { flex-direction:row; align-items:flex-start; }
14+
&-title { flex:1 1 auto; white-space:nowrap; }
15+
&-description { flex:0 0 pxToRem(520); padding-block-start:pxToRem(10); }
16+
}
17+
@media #{$break4open} {
1318
&-content { justify-content:space-between; }
1419
.#{$p}-input-text-search-wrapper { align-self:end; margin-block-start:pxToRem(40); }
1520
}
16-
}
21+
}
22+
23+
.#{$p}-category-page {
24+
margin-block-end:0;
25+
padding-block-end:0;
26+
}

0 commit comments

Comments
 (0)