Skip to content

Commit 8092767

Browse files
committed
update: Features page
1 parent 064d6d4 commit 8092767

File tree

1 file changed

+70
-5
lines changed

1 file changed

+70
-5
lines changed

src/pages/Features.jsx

+70-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,78 @@
1-
import {Container} from '@mui/joy'
2-
import Header from "../components/Header.jsx";
1+
import {Container, Sheet, styled, Typography} from '@mui/joy'
2+
import Header from "../components/Header.jsx"
3+
import _ from 'lodash'
4+
5+
const RandomColor = () => {
6+
const colors = [
7+
'background.body',
8+
'background.level1',
9+
'background.level2',
10+
'background.level3',
11+
'primary.plainHoverBg',
12+
'primary.softActiveBg',
13+
'primary.softHoverBg',
14+
]
15+
16+
return _.shuffle(colors)
17+
}
318

419
const Features = () => {
20+
const features = [
21+
'Working AI Chat: Real-time conversations powered by advanced language models.',
22+
'OpenAI Integration: Utilize GPT-3.5 and GPT-4 for enhanced chat capabilities.',
23+
'Responsive Design: Enjoy smooth interactions across devices.',
24+
'Customizable Models: Choose from a selection of models with unique performance.',
25+
'Dynamic Settings: Adjust temperature, frequency penalty, max tokens, and top-p for tailored responses.',
26+
'Light/Dark Mode: Enjoy adaptive color themes for a personalized experience.',
27+
'Snackbar Alerts: Receive informative messages and alerts.',
28+
'Messages Memory: Remember previous messages for reference during the conversation.',
29+
'Actions Counter: Track API request usage for the current model.',
30+
'Auto-scroll: Automatically move to the latest message for smooth chatting.',
31+
'Tip Suggestions: Access conversation starters with ease.'
32+
]
33+
34+
const AnimatedTypography = styled(Typography)(() => ({
35+
"&:hover": {
36+
animation: "focusInContractBck 1s"
37+
},
38+
"@keyframes focusInContractBck": {
39+
"0%": {
40+
letterSpacing: "1em",
41+
"&::-webkit-transform": "translateZ(300px)",
42+
transform: "translateZ(300px)",
43+
"&::-webkit-filter": "blur(12px)",
44+
filter: "blur(12px)",
45+
opacity: "0"
46+
},
47+
"100%": {
48+
"&::-webkit-transform": "translateZ(12px)",
49+
transform: "translateZ(12px)",
50+
"&::-webkit-filter": "blur(0)",
51+
filter: "blur(0)",
52+
opacity: "1"
53+
}
54+
}
55+
}))
56+
557
return (
658
<>
759
<Header/>
8-
<Container>
9-
10-
</Container>
60+
<Typography level="h1">Features</Typography>
61+
{features.map((feature, index) => {
62+
return <Sheet key={index} sx={{
63+
display: "flex",
64+
alignItems: "center",
65+
height: 600,
66+
backgroundColor: RandomColor,
67+
filter: `brightness(${_.random(0.70, 1.30, true)})`
68+
}}>
69+
<Container sx={{height: 200}}>
70+
<AnimatedTypography level="title-lg" sx={{fontSize: 40}}>
71+
{feature}
72+
</AnimatedTypography>
73+
</Container>
74+
</Sheet>
75+
})}
1176
</>
1277
);
1378
};

0 commit comments

Comments
 (0)