Skip to content

Commit 4d94f3c

Browse files
committed
css fixes, add more Qs
1 parent b465d27 commit 4d94f3c

File tree

2 files changed

+23
-52
lines changed

2 files changed

+23
-52
lines changed

src/css/sumo.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,14 @@ html[data-theme='light'] {
227227
min-width: 100px;
228228
}
229229

230-
/* Example: Force global styles back to normal */
230+
/* Berry CSS override to force global styles back to normal */
231231
body, .MuiTypography-root, button, input, select, textarea {
232232
font-family: 'Lab Grotesque', sans-serif !important;
233233
}
234234

235-
#inline-chatbot-container iframe {
236-
height: 500px !important;
235+
/* Berry chatbot */
236+
#inline-berry-chatbot-container iframe {
237+
height: 600px !important;
237238
}
238239

239240
//GitHub icon

src/pages/index.tsx

Lines changed: 19 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,19 @@ import SumoLogicDocsLogo from '../../static/img/sumo-logic-docs.svg';
88
import { Feature } from '../components/Feature';
99
import { features } from '../helper/features';
1010
import ErrorBoundary from '../components/ErrorBoundary';
11-
import { SvgIcon } from '@mui/material';
12-
13-
const ChatIcon = (props) => (
14-
<SvgIcon {...props} viewBox="0 0 27 27" sx={{ bgcolor: '#0045BE', borderRadius: '50%', padding: '3px' }}>
15-
<path
16-
fill="none"
17-
stroke="white"
18-
strokeWidth="2"
19-
d="M18 3H9C5.5 3 3 5.5 3 9V14C3 18 5.5 20.5 9 20.5H13.5L19 25V20.5H18C22 20.5 24.5 18 24.5 14V9C24.5 5.5 22 3 18 3Z"
20-
/>
21-
</SvgIcon>
22-
);
2311

2412
export const Home = () => {
2513
const [tab, setTab] = useState('0');
2614

2715
const questions = [
28-
'✨ How do I set up alerts?',
29-
'✨ What types of logs can I analyze?',
30-
'✨ How do I secure my environment?',
31-
'✨ How to navigate dashboards.'
16+
'✨ timestamps',
17+
'✨ how do you write a log search query?',
18+
'✨ how do I set up alerts?',
19+
'✨ what types of logs can I analyze?',
20+
'✨ what is copilot?',
21+
'✨ cloud siem',
22+
'✨ how do I change my password?',
23+
'✨ what is the parse operator?'
3224
];
3325

3426
useEffect(() => {
@@ -48,7 +40,7 @@ export const Home = () => {
4840
isOpenByDefault: true,
4941
botUrlPath: 'nova',
5042
showNewChat: true,
51-
parentElementId: 'inline-chatbot-container',
43+
parentElementId: 'inline-berry-chatbot-container',
5244
});
5345
};
5446

@@ -73,42 +65,20 @@ export const Home = () => {
7365
description='Sumo Logic docs - real-time alerting, security, dashboards, and machine-learning-powered analytics for all three types of telemetry — logs, metrics, and traces.'
7466
title='Home'
7567
>
76-
{/* Header */}
77-
<Typography
78-
bgcolor='#0045BE'
79-
color='#e3e3e3'
80-
fontFamily='Lab Grotesque'
81-
fontSize={28}
82-
fontWeight={700}
83-
pt={3}
84-
px={2}
85-
pb={1}
86-
sx={{
87-
backgroundImage: 'linear-gradient(to right, rgb(0,0,153), rgb(0,70,190) 30%)',
88-
}}
89-
textAlign='center'
90-
>
91-
<Box
92-
component={SumoLogicDocsLogo}
93-
alt="Sumo Logic Docs logo"
94-
role="<img>"
95-
aria-hidden="true"
96-
height={{
97-
md: 36,
98-
xs: 28,
99-
}}
100-
width='100%'
101-
/>
102-
</Typography>
68+
10369

10470
{/* Suggested Questions */}
10571
<Box sx={{ width: '100%', background: '#2a2a2a', color: '#fff', py: 4 }}>
72+
10673
<Container maxWidth="md" sx={{ textAlign: 'center' }}>
107-
<Typography variant="h4" fontFamily="Lab Grotesque" fontWeight={600} mb={1} sx={{ background: 'linear-gradient(90deg, #9900ED, #C04CF4, #00C8E0)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent' }}>
108-
Your Sumo Docs assistant is here to help!
74+
<Typography variant="h4" fontWeight={600} mt={1} mb={3}>
75+
Sumo Logic Documentation
76+
</Typography>
77+
<Typography variant="h5" fontFamily="Lab Grotesque" fontWeight={300} mb={2} sx={{ background: 'linear-gradient(90deg, #9900ED, #C04CF4, #00C8E0)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent' }}>
78+
Our Docs Assistant is here to help!
10979
</Typography>
110-
<Typography fontFamily="Lab Grotesque" fontSize={15} fontWeight={300} mb={2}>
111-
Ask me a question! Try these to get started:
80+
<Typography fontFamily="Lab Grotesque" fontSize={13} fontWeight={300} mb={2}>
81+
Ask me anything! You can type full questions, sentences, or just keywords, and I'll help you find the information you need. Try these to get started:
11282
</Typography>
11383
<Stack
11484
direction="row"
@@ -146,7 +116,7 @@ export const Home = () => {
146116
</Stack>
147117

148118
{/* Inline Chatbot Container */}
149-
<Box id="inline-chatbot-container" sx={{ my: 4, p: 2, margin: '0 auto', textAlign: 'center' }}>
119+
<Box id="inline-berry-chatbot-container" sx={{ my: 4, p: 2, margin: '0 auto', textAlign: 'center' }}>
150120
{/* The chatbot will render here */}
151121
</Box>
152122
</Container>

0 commit comments

Comments
 (0)