@@ -2,7 +2,7 @@ import * as React from 'react';
22import NextImage from 'next/image' ;
33import TimeAgo from 'react-timeago' ;
44
5- import { AspectRatio , Box , Button , Card , CardContent , CardOverflow , ColorPaletteProp , Container , Grid , Sheet , Typography , VariantProp } from '@mui/joy' ;
5+ import { AspectRatio , Box , Button , Card , CardContent , CardOverflow , ColorPaletteProp , Container , Divider , Grid , ListDivider , Sheet , Typography , VariantProp } from '@mui/joy' ;
66import ArrowForwardRoundedIcon from '@mui/icons-material/ArrowForwardRounded' ;
77import ArrowOutwardRoundedIcon from '@mui/icons-material/ArrowOutwardRounded' ;
88import ExpandMoreIcon from '@mui/icons-material/ExpandMore' ;
@@ -107,7 +107,10 @@ function NewsCard(props: {
107107 const { addPadding, idx, newsItem : ni } = props ;
108108
109109 return (
110- < Card color = { props . color } variant = { props . variant ?? 'plain' } sx = { { mb : 3 , minHeight : 32 , gap : 1 } } >
110+ < Card color = { props . color } variant = { props . variant ?? 'plain' } sx = { {
111+ mb : 3 , minHeight : 32 , gap : 1 ,
112+ boxShadow : ! idx ? 'md' : undefined ,
113+ } } >
111114 < CardContent sx = { { position : 'relative' , pr : addPadding ? 4 : 0 } } >
112115 < Box sx = { { display : 'flex' , alignItems : 'center' , justifyContent : 'space-between' } } >
113116 < Typography level = 'title-sm' component = 'div' >
@@ -190,6 +193,7 @@ export function AppNews() {
190193 overflowY : 'auto' ,
191194 display : 'flex' , justifyContent : 'center' ,
192195 p : { xs : 3 , md : 6 } ,
196+ // backgroundColor: 'background.level2'
193197 } } >
194198
195199 < Box sx = { {
@@ -231,7 +235,7 @@ export function AppNews() {
231235 } }
232236 >
233237 Big-AGI Pro
234- { /*✨*/ }
238+ ✨
235239 </ Button >
236240 ) }
237241 </ Box >
@@ -242,8 +246,13 @@ export function AppNews() {
242246
243247 < Container disableGutters maxWidth = 'sm' >
244248
249+ { /* Inject the callout item here*/ }
250+ { /*<Box sx={{ mb: 3 }}>*/ }
251+ { /* <BigAgiProNewsCallout />*/ }
252+ { /*</Box>*/ }
253+
245254 { /* Development Notices */ }
246- { Release . TenantSlug === 'open' && < NewsCard variant = 'soft' color = 'warning' newsItem = { DevNewsItem } idx = { 0 } addPadding = { false } /> }
255+ { Release . TenantSlug === 'open' && Release . IsNodeDevBuild && < NewsCard variant = 'soft' color = 'warning' newsItem = { DevNewsItem } idx = { 0 } addPadding = { false } /> }
247256
248257 { news ?. map ( ( ni , idx ) => {
249258 // const firstCard = idx === 0;
@@ -274,6 +283,8 @@ export function AppNews() {
274283 </ Box >
275284 ) }
276285
286+ { idx === 0 && < Divider sx = { { my : 6 , mx : 6 } } /> }
287+
277288 </ React . Fragment > ;
278289 } ) }
279290
0 commit comments