|
1 | | -import React from 'react'; |
2 | | -import Firstcontainer from '../Component/Home_Page/Firstcontainer'; |
3 | | -import Secondcontainer from '../Component/Home_Page/Secondcontainer'; |
4 | | -import Responsivegallry from '../UI-Test/Responsivegallry'; |
| 1 | +import React from "react"; |
| 2 | +import Firstcontainer from "../Component/Home_Page/Firstcontainer"; |
| 3 | +import Secondcontainer from "../Component/Home_Page/Secondcontainer"; |
| 4 | +import Responsivegallry from "../UI-Test/Responsivegallry"; |
5 | 5 |
|
6 | 6 | const Home = () => { |
7 | 7 | const Heightsize = "80vh"; |
8 | 8 |
|
9 | | - const Header1 = "Image Generation"; |
10 | | - const Header1_Summary = "A clean and professional scene showcasing an AI-powered image generation feature. The interface displays a user entering a text prompt, with the AI creating a vibrant, high-quality image in real time. The background is minimal, with subtle glowing lines representing AI technology."; |
11 | | - const Header1_url = "/Image_generation"; |
12 | | - const Header1_Button_text = "Image Generation"; |
13 | | - |
14 | | - const Header2 = "Video Generation"; |
15 | | - const Header2_Summary = "A simple and professional interface showcasing an AI video generation feature. Users enter a text prompt, and the AI creates a high-quality video preview instantly. The layout is clean, with clear options to customize or finalize the video. Smooth animations illustrate the video creation process."; |
16 | | - const Header2_url = "/Video_generation"; |
17 | | - const Header2_Button_text = "Video Generation"; |
18 | | - |
19 | | - const Header3 = "Sky Generation"; |
20 | | - const Header3_Summary = "Lorem ipsum dolor sit amet consectetur adipisicing elit..."; |
21 | | - const Header3_url = "/Skybox_generation"; |
22 | | - const Header3_Button_text = "SkyBox Generation"; |
| 9 | + const sections = [ |
| 10 | + { |
| 11 | + Header: "Image Generation", |
| 12 | + Header_summary: |
| 13 | + "A clean and professional scene showcasing an AI-powered image generation feature. The interface displays a user entering a text prompt, with the AI creating a vibrant, high-quality image in real time. The background is minimal, with subtle glowing lines representing AI technology.", |
| 14 | + Header_url: "/Image_generation", |
| 15 | + Header_Button_text: "Image Generation", |
| 16 | + Header_Image_src: "/model/Aimg1.jpg", |
| 17 | + Direaction: false, |
| 18 | + }, |
| 19 | + { |
| 20 | + Header: "Video Generation", |
| 21 | + Header_summary: |
| 22 | + "A simple and professional interface showcasing an AI video generation feature. Users enter a text prompt, and the AI creates a high-quality video preview instantly. The layout is clean, with clear options to customize or finalize the video. Smooth animations illustrate the video creation process.", |
| 23 | + Header_url: "/Video_generation", |
| 24 | + Header_Button_text: "Video Generation", |
| 25 | + Header_Image_src: "/model/Aimg2.jpg", |
| 26 | + Direaction: true, |
| 27 | + }, |
| 28 | + { |
| 29 | + Header: "Sky Generation", |
| 30 | + Header_summary: "Create beautiful sky scenes effortlessly. Customize colors and cloud patterns. Generate realistic skies for any environment. Perfect for creative projects.", |
| 31 | + Header_url: "/Skybox_generation", |
| 32 | + Header_Button_text: "SkyBox Generation", |
| 33 | + Header_Image_src: "/model/Aimg1.jpg", |
| 34 | + Direaction: false, |
| 35 | + }, |
| 36 | + ]; |
23 | 37 |
|
24 | 38 | return ( |
25 | 39 | <div> |
26 | 40 | <Firstcontainer Heightsize={Heightsize} /> |
27 | | - <Secondcontainer Header={Header1} Header_summary={Header1_Summary} Header_url={Header1_url} Direaction={false} Header_Button_text={Header1_Button_text} /> |
28 | | - <Secondcontainer Header={Header2} Header_summary={Header2_Summary} Header_url={Header2_url} Direaction={true} Header_Button_text={Header2_Button_text} /> |
29 | | - <Secondcontainer Header={Header3} Header_summary={Header3_Summary} Header_url={Header3_url} Direaction={false} Header_Button_text={Header3_Button_text} /> |
| 41 | + {sections.map((section, index) => ( |
| 42 | + <Secondcontainer key={index} {...section} /> |
| 43 | + ))} |
30 | 44 | <Responsivegallry /> |
31 | 45 | </div> |
32 | 46 | ); |
33 | 47 | }; |
34 | 48 |
|
35 | 49 | export default Home; |
36 | | - |
37 | | -// import React from 'react' |
38 | | -// import Imagegen from './Imagegen' |
39 | | -// import Imgside from './Profile/IMAGEGEN/Imgside' |
40 | | - |
41 | | -// const Home = () => { |
42 | | -// return ( |
43 | | -// // <Imagegen/> |
44 | | -// <Imgside/> |
45 | | -// ) |
46 | | -// } |
47 | | - |
48 | | -// export default Home |
49 | | - |
0 commit comments