@@ -14,7 +14,7 @@ import React from 'react';
14
14
import Image from 'next/image' ;
15
15
import 'styles/vs-notion.scss' ;
16
16
17
- const site_url = process . env . ENVIRONMENT === 'test' ? 'https://test.appflowy.io' : 'https://appflowy.io' ;
17
+ const site_url = process . env . NEXT_PUBLIC_SITE_BASE_URL ;
18
18
const title = 'Notion vs AppFlowy | The #1 Open Source Notion Alternative is AppFlowy' ;
19
19
const description = 'Open source, fast, offline support, self-hosting' ;
20
20
@@ -102,27 +102,35 @@ function generateListSchema() {
102
102
}
103
103
104
104
const points = [ 'Offline mode' , 'Self-hosting' , 'AI model selection' , 'Customization' , 'Native mobile and desktop apps' ] ;
105
- const environment = process . env . ENVIRONMENT || 'development' ;
106
105
107
- let importBaseURL : string = 'https://appflowy.com' ;
108
-
109
- if ( environment === 'test' ) {
110
- importBaseURL = 'https://test.appflowy.com' ;
111
- }
106
+ const importBaseURL : string = `${ process . env . NEXT_PUBLIC_SITE_BASE_URL } /app` ;
112
107
113
108
function Page ( ) {
114
109
return (
115
110
< >
116
- < Script id = 'ld-json' type = 'application/ld+json' >
111
+ < Script
112
+ id = "ld-json"
113
+ type = "application/ld+json"
114
+ >
117
115
{ JSON . stringify ( generateListSchema ( ) ) }
118
116
</ Script >
119
117
< div className = { 'vs-notion-page' } >
120
118
< div className = { 'af-container' } >
121
119
< div className = { 'af-box section-1' } >
122
120
< div className = { 'flex items-center justify-center gap-2' } >
123
- < Image src = { AppFlowyImage } alt = { 'AppFlowy' } width = { 56 } height = { 56 } />
121
+ < Image
122
+ src = { AppFlowyImage }
123
+ alt = { 'AppFlowy' }
124
+ width = { 56 }
125
+ height = { 56 }
126
+ />
124
127
< span className = { 'text-sm font-semibold' } > vs</ span >
125
- < Image src = { NotionImage } alt = { 'Notion' } width = { 56 } height = { 56 } />
128
+ < Image
129
+ src = { NotionImage }
130
+ alt = { 'Notion' }
131
+ width = { 56 }
132
+ height = { 56 }
133
+ />
126
134
</ div >
127
135
< div className = { 'main-content' } >
128
136
< h1 >
@@ -142,7 +150,12 @@ function Page() {
142
150
</ h2 >
143
151
< div className = { 'cards' } >
144
152
< div className = { 'card' } >
145
- < Image src = { Object1 } alt = { 'AI model selection' } width = { 151 } height = { 121 } />
153
+ < Image
154
+ src = { Object1 }
155
+ alt = { 'AI model selection' }
156
+ width = { 151 }
157
+ height = { 121 }
158
+ />
146
159
< div className = { 'card-title' } >
147
160
AI model selection
148
161
< div className = { 'card-desc' } >
@@ -152,7 +165,12 @@ function Page() {
152
165
</ div >
153
166
</ div >
154
167
< div className = { 'card' } >
155
- < Image src = { Object2 } alt = { 'Available everywhere' } width = { 151 } height = { 121 } />
168
+ < Image
169
+ src = { Object2 }
170
+ alt = { 'Available everywhere' }
171
+ width = { 151 }
172
+ height = { 121 }
173
+ />
156
174
157
175
< div className = { 'card-title' } >
158
176
Available everywhere
@@ -161,7 +179,12 @@ function Page() {
161
179
</ div >
162
180
163
181
< div className = { 'card' } >
164
- < Image src = { Object3 } alt = { '100% offline mode' } width = { 189 } height = { 121 } />
182
+ < Image
183
+ src = { Object3 }
184
+ alt = { '100% offline mode' }
185
+ width = { 189 }
186
+ height = { 121 }
187
+ />
165
188
166
189
< div className = { 'card-title' } >
167
190
100% offline mode
@@ -175,9 +198,9 @@ function Page() {
175
198
}
176
199
>
177
200
< div className = { 'flex w-full items-center justify-between' } >
178
- < div className = ' w-1/2 px-[48px] py-6 text-[#58585a] max-md:px-4 max-md:py-4' > Compare features</ div >
179
- < div className = ' w-1/4 px-[48px] py-6 text-center text-[#58585a] max-md:px-4 max-md:py-4' > Notion</ div >
180
- < div className = ' w-1/4 px-[48px] py-6 text-center text-[#58585a] max-md:px-4 max-md:py-4' > AppFlowy</ div >
201
+ < div className = " w-1/2 px-[48px] py-6 text-[#58585a] max-md:px-4 max-md:py-4" > Compare features</ div >
202
+ < div className = " w-1/4 px-[48px] py-6 text-center text-[#58585a] max-md:px-4 max-md:py-4" > Notion</ div >
203
+ < div className = " w-1/4 px-[48px] py-6 text-center text-[#58585a] max-md:px-4 max-md:py-4" > AppFlowy</ div >
181
204
</ div >
182
205
{ points . map ( ( point ) => (
183
206
< div
@@ -186,12 +209,22 @@ function Page() {
186
209
'flex w-full items-center justify-between rounded-[15px] border border-gray-100 bg-white text-[24px] max-lg:text-base max-md:text-sm'
187
210
}
188
211
>
189
- < div className = 'w-1/2 px-[48px] py-10 font-medium text-black max-md:px-4 max-md:py-5' > { point } </ div >
190
- < div className = 'flex w-1/4 items-center justify-center px-[48px] py-6 max-md:px-4 max-md:py-5' >
191
- < Image src = { CloseImage } alt = { 'Close' } width = { 20 } height = { 20 } />
212
+ < div className = "w-1/2 px-[48px] py-10 font-medium text-black max-md:px-4 max-md:py-5" > { point } </ div >
213
+ < div className = "flex w-1/4 items-center justify-center px-[48px] py-6 max-md:px-4 max-md:py-5" >
214
+ < Image
215
+ src = { CloseImage }
216
+ alt = { 'Close' }
217
+ width = { 20 }
218
+ height = { 20 }
219
+ />
192
220
</ div >
193
- < div className = 'flex w-1/4 items-center justify-center px-[48px] py-6 max-md:px-4 max-md:py-5' >
194
- < Image src = { RightImage } alt = { 'Right' } width = { 26 } height = { 16 } />
221
+ < div className = "flex w-1/4 items-center justify-center px-[48px] py-6 max-md:px-4 max-md:py-5" >
222
+ < Image
223
+ src = { RightImage }
224
+ alt = { 'Right' }
225
+ width = { 26 }
226
+ height = { 16 }
227
+ />
195
228
</ div >
196
229
</ div >
197
230
) ) }
0 commit comments