Skip to content

Commit 8a3f116

Browse files
feat(ai-integrations): add new ai homepage (#589)
* feat(ai-integrations): add new ai homepage * removed lockfile duplicates
1 parent 060b3ac commit 8a3f116

26 files changed

Lines changed: 1106 additions & 461 deletions

workspaces/ai-integrations/plugins/ai-experience/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"@material-ui/core": "^4.9.13",
4040
"@material-ui/icons": "^4.9.1",
4141
"@material-ui/lab": "^4.0.0-alpha.61",
42+
"@mui/icons-material": "5.16.4",
43+
"@mui/material": "5.16.14",
4244
"react-use": "^17.2.4"
4345
},
4446
"peerDependencies": {
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* Copyright Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
import React from 'react';
17+
18+
import { Content, Page } from '@backstage/core-components';
19+
import Box from '@mui/material/Box';
20+
21+
import SectionWrapper from '../SectionWrapper';
22+
import LearnSection from '../LearnSection';
23+
import ModelSection from '../ModelSection';
24+
import TemplateSection from '../TemplateSection';
25+
import useGreeting from '../../hooks/useGreeting';
26+
27+
export const AiExperienceHomePage = () => {
28+
const greeting = useGreeting();
29+
30+
return (
31+
<Page themeId="home">
32+
<Content>
33+
<Box>
34+
<SectionWrapper title={`${greeting} Alex!`}>
35+
<Box sx={{ padding: '20px 10px 30px 40px' }}>
36+
<LearnSection />
37+
</Box>
38+
</SectionWrapper>
39+
</Box>
40+
<Box sx={{ pt: 3 }}>
41+
<SectionWrapper title="Explore AI models">
42+
<Box sx={{ padding: '20px 10px 10px 0' }}>
43+
<ModelSection />
44+
</Box>
45+
</SectionWrapper>
46+
</Box>
47+
<Box sx={{ pt: 3 }}>
48+
<SectionWrapper title="Explore AI templates">
49+
<Box sx={{ padding: '20px 10px 10px 0' }}>
50+
<TemplateSection />
51+
</Box>
52+
</SectionWrapper>
53+
</Box>
54+
</Content>
55+
</Page>
56+
);
57+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
import { AiExperienceHomePage } from './AiExperienceHomePage';
17+
18+
export { AiExperienceHomePage };

workspaces/ai-integrations/plugins/ai-experience/src/components/ExampleComponent/ExampleComponent.test.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

workspaces/ai-integrations/plugins/ai-experience/src/components/ExampleComponent/ExampleComponent.tsx

Lines changed: 0 additions & 53 deletions
This file was deleted.

workspaces/ai-integrations/plugins/ai-experience/src/components/ExampleFetchComponent/ExampleFetchComponent.test.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)