File tree 13 files changed +58
-35
lines changed
13 files changed +58
-35
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
2
2
import { useTranslation , Trans } from 'react-i18next' ;
3
3
import Link from 'next/link' ;
4
4
import clsx from 'clsx' ;
5
-
5
+ import pageClasses from '@/styles/responsive.module.less' ;
6
6
import {
7
7
DISCORD_INVITE_URL ,
8
8
MILVUS_VIDEO_LINK ,
@@ -93,20 +93,20 @@ const Footer = (props: Props) => {
93
93
const { t } = useTranslation ( 'common' , { lng : lang } ) ;
94
94
95
95
return (
96
- < footer className = "min-h-[390px] box-border bg-[#fff] border-t-[1px] border-solid border-[#ECECEE] font-mono" >
97
- < div
98
- className = { clsx (
99
- 'max-w-[1440px] mx-auto px-[48px] py-[80px] md:px-[135px] lg:px-[80px] xl:px-[135px]' ,
100
- root
101
- ) }
102
- >
96
+ < footer
97
+ className = { clsx (
98
+ pageClasses . homeContainer ,
99
+ 'min-h-[390px] box-border bg-[#fff] border-t-[1px] border-solid border-[#ECECEE] font-mono'
100
+ ) }
101
+ >
102
+ < div className = { clsx ( 'py-[80px]' , root ) } >
103
103
< div
104
104
className = { clsx (
105
105
'flex flex-col lg:flex-row justify-between space-y-8 lg:space-y-0 lg:space-x-16' ,
106
106
content
107
107
) }
108
108
>
109
- < div className = "flex flex-col items-center max-phone:items-start sm:items-start lg:items-start flex-shrink flex-grow-0 flex-[390px]" >
109
+ < div className = "flex flex-col items-center max-phone:items-start sm:items-start lg:items-start flex-shrink-0 flex-grow-0 flex-[390px]" >
110
110
< img
111
111
alt = "Milvus logo"
112
112
height = "30"
Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ const NotFoundPage = (props: { blogList: BlogDataType[] }) => {
67
67
/>
68
68
</ Head >
69
69
70
- < section className = { clsx ( pageClasses . container , styles . navContainer ) } >
70
+ < section
71
+ className = { clsx ( pageClasses . homeContainer , styles . navContainer ) }
72
+ >
71
73
< h1 className = { styles . pageTitle } > { t ( 'title' ) } </ h1 >
72
74
< p className = { styles . abstract } >
73
75
< Trans
@@ -93,7 +95,7 @@ const NotFoundPage = (props: { blogList: BlogDataType[] }) => {
93
95
</ ul >
94
96
</ section >
95
97
< section
96
- className = { clsx ( pageClasses . container , styles . exploreContainer ) }
98
+ className = { clsx ( pageClasses . homeContainer , styles . exploreContainer ) }
97
99
>
98
100
< h2 className = "" > { t ( 'explore.title' ) } </ h2 >
99
101
< p className = "" > { t ( 'explore.desc' ) } </ p >
Original file line number Diff line number Diff line change @@ -577,17 +577,17 @@ const Blog: React.FC<Props> = props => {
577
577
< link rel = "alternate" href = { absoluteUrl } hrefLang = "en" />
578
578
</ Head >
579
579
< main >
580
- < header className = { styles [ 'banner' ] } >
581
- < div className = { pageClasses . blogContainer } >
580
+ < section className = { styles [ 'banner' ] } >
581
+ < div className = { pageClasses . homeContainer } >
582
582
< div className = { styles [ 'banner-detail' ] } >
583
583
{ renderRecommend ( ) }
584
584
{ renderRecentTabs ( ) }
585
585
</ div >
586
586
{ renderSubscribe ( ) }
587
587
</ div >
588
- </ header >
588
+ </ section >
589
589
< section className = { styles [ 'content' ] } >
590
- < div className = { pageClasses . blogContainer } >
590
+ < div className = { pageClasses . homeContainer } >
591
591
< header className = { styles [ 'list-header' ] } >
592
592
{ renderFilter ( ) }
593
593
{ renderSearcher ( ) }
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ export default function Bootcamp(props) {
35
35
/>
36
36
</ Head >
37
37
38
- < div className = { clsx ( pageClasses . container , classes . bootcampContainer ) } >
38
+ < div
39
+ className = { clsx ( pageClasses . homeContainer , classes . bootcampContainer ) }
40
+ >
39
41
< section className = { classes . sectionContainer } >
40
42
< h1 className = { classes . seoTitle } > Milvus Bootcamp</ h1 >
41
43
< h2 className = { classes . title } > { title } </ h2 >
Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ export default function Community() {
123
123
</ Head >
124
124
125
125
< div className = { classes . communityPageContainer } >
126
- < section className = { clsx ( pageClasses . container , classes . headSection ) } >
126
+ < section
127
+ className = { clsx ( pageClasses . homeContainer , classes . headSection ) }
128
+ >
127
129
< h1 className = "" > { t ( 'title' ) } </ h1 >
128
130
129
131
< ul className = { classes . mediaWrapper } >
@@ -162,7 +164,7 @@ export default function Community() {
162
164
</ section >
163
165
164
166
< section
165
- className = { clsx ( pageClasses . container , classes . contentSection ) }
167
+ className = { clsx ( pageClasses . homeContainer , classes . contentSection ) }
166
168
>
167
169
< h2 > { t ( 'community.title' ) } </ h2 >
168
170
< h3 className = { classes . sectionDesc } > { t ( 'community.content' ) } </ h3 >
@@ -179,7 +181,7 @@ export default function Community() {
179
181
</ section >
180
182
181
183
< section
182
- className = { clsx ( pageClasses . container , classes . mailListSection ) }
184
+ className = { clsx ( pageClasses . homeContainer , classes . mailListSection ) }
183
185
>
184
186
< h2 > { t ( 'mail.title' ) } </ h2 >
185
187
< div className = { classes . mailListWrapper } >
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export default function WhatIsMilvus() {
115
115
116
116
< main >
117
117
< section className = { styles . headerSection } >
118
- < div className = { clsx ( pageClasses . container , styles . innerSection ) } >
118
+ < div className = { clsx ( pageClasses . homeContainer , styles . innerSection ) } >
119
119
< h1 className = "" > { t ( 'title' ) } </ h1 >
120
120
< p className = { styles . desc } > { t ( 'desc' ) } </ p >
121
121
</ div >
Original file line number Diff line number Diff line change @@ -130,13 +130,17 @@ export default function MilvusDemos() {
130
130
</ Head >
131
131
132
132
< section className = { classes . headerSection } >
133
- < div className = { clsx ( pageClasses . container , classes . innerSection ) } >
133
+ < div
134
+ className = { clsx ( pageClasses . homeContainer , classes . innerSection ) }
135
+ >
134
136
< h1 className = { classes . title } > { t ( 'title' ) } </ h1 >
135
137
< p className = { classes . desc } > { t ( 'desc' ) } </ p >
136
138
</ div >
137
139
</ section >
138
140
139
- < section className = { clsx ( pageClasses . container , classes . demoContainer ) } >
141
+ < section
142
+ className = { clsx ( pageClasses . homeContainer , classes . demoContainer ) }
143
+ >
140
144
< ul className = { classes . demoList } >
141
145
{ DEMOS . map ( demo => (
142
146
< li key = { demo . name } >
Original file line number Diff line number Diff line change @@ -165,7 +165,10 @@ export default function SizingTool() {
165
165
/>
166
166
</ div >
167
167
168
- < ZillizAdv className = { classes . zillizAdv } />
168
+ < ZillizAdv
169
+ className = { classes . zillizAdv }
170
+ ctaLink = "https://cloud.zilliz.com/signup?utm_source=partner& utm_medium = referral & utm_campaign = 2024 - 12 - 19 _resouces_milvus - sizing - tool_milvusio "
171
+ />
169
172
</ div >
170
173
</ Layout >
171
174
</ main >
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ export default function UseCasesTemplate(props: {
41
41
</ Head >
42
42
< main >
43
43
< div className = { styles . casePageContainer } ref = { scrollContainer } >
44
- < div className = { clsx ( pageClasses . container , styles . contentContainer ) } >
44
+ < div
45
+ className = { clsx ( pageClasses . homeContainer , styles . contentContainer ) }
46
+ >
45
47
< section className = { styles . headerSection } >
46
48
< Typography variant = "h2" component = "h1" >
47
49
{ t ( 'title' ) }
Original file line number Diff line number Diff line change @@ -7,9 +7,12 @@ import clsx from 'clsx';
7
7
const CTA_LINK =
8
8
'https://cloud.zilliz.com/signup?utm_source=partner&utm_medium=referral&utm_campaign=2024-12-19_blog_overview-page_milvusio' ;
9
9
10
- export default function ZillizAdv ( props : { className ?: string } ) {
10
+ export default function ZillizAdv ( props : {
11
+ className ?: string ;
12
+ ctaLink ?: string ;
13
+ } ) {
11
14
const { t } = useTranslation ( 'blog' ) ;
12
- const { className = '' } = props ;
15
+ const { className = '' , ctaLink = CTA_LINK } = props ;
13
16
const features = [
14
17
t ( 'blog:zillizAdv.feature1' ) ,
15
18
t ( 'blog:zillizAdv.feature2' ) ,
@@ -34,7 +37,7 @@ export default function ZillizAdv(props: { className?: string }) {
34
37
</ h3 >
35
38
< ul className = { styles [ 'zilliz-adv-features' ] } > { featureItems } </ ul >
36
39
< Link
37
- href = { CTA_LINK }
40
+ href = { ctaLink }
38
41
target = "_blank"
39
42
className = { styles [ 'zilliz-adv-btn' ] }
40
43
>
Original file line number Diff line number Diff line change 33
33
}
34
34
35
35
li {
36
- flex : 0 0 297 px ;
36
+ flex : 0 0 327 px ;
37
37
38
38
@media @tablet , @phone {
39
39
flex : auto ;
Original file line number Diff line number Diff line change 56
56
57
57
.homeContainer {
58
58
margin : 0 auto ;
59
- max-width : calc (@homepage-content-width + 80px );
60
- width : 100% ;
61
- padding : 0 40px ;
59
+ max-width : 1580px ;
60
+
61
+ @media @desktop1024 , @desktop1440 {
62
+ width : calc (100vw - 270px );
63
+ }
64
+
65
+ @media @desktop1920 {
66
+ width : calc (100vw - 340px );
67
+ }
62
68
63
69
@media @tablet {
64
- max-width : 100% ;
65
- padding : 0 40px ;
70
+ width : calc ((100vw - 180px ) / 10 * 8 + 140px );
66
71
}
67
72
68
73
@media @phone {
69
- padding : 0 25 px ;
74
+ width : calc ( 100 vw - 50 px ) ;
70
75
}
71
76
}
Original file line number Diff line number Diff line change 60
60
margin-bottom : 80px ;
61
61
gap : 60px ;
62
62
63
- @media @tablet , @phone {
63
+ @media ( max-width : 1280 px ) {
64
64
flex-direction : column ;
65
65
}
66
66
You can’t perform that action at this time.
0 commit comments