Compare commits
No commits in common. "ai-dev" and "master" have entirely different histories.
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,8 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
*/node_modules/
|
*/node_modules/
|
||||||
*/build/
|
*/build/
|
||||||
|
|
||||||
**/node_modules/
|
|
||||||
**/build/
|
|
||||||
.DS_Store
|
|
||||||
.env
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{}
|
|
||||||
@ -23,17 +23,13 @@ export default function HeroSection({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchImages = async () => {
|
const fetchImages = async () => {
|
||||||
if (image && image.length > 0 && typeof image[0] === 'object' && image[0].src) {
|
|
||||||
setImages(image);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (design !== HeroDesigns.TEXT_CENTER) {
|
if (design !== HeroDesigns.TEXT_CENTER) {
|
||||||
try {
|
try {
|
||||||
const images = await getMultiplePexelsImages(pexelsQueriesWebSite);
|
const images = await getMultiplePexelsImages(pexelsQueriesWebSite);
|
||||||
const formattedImages = images.map((img) => ({
|
const formattedImages = images.map((image) => ({
|
||||||
src: img.src || undefined,
|
src: image.src || undefined,
|
||||||
photographer: img.photographer || undefined,
|
photographer: image.photographer || undefined,
|
||||||
photographer_url: img.photographer_url || undefined,
|
photographer_url: image.photographer_url || undefined,
|
||||||
}));
|
}));
|
||||||
setImages(formattedImages);
|
setImages(formattedImages);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -41,6 +37,7 @@ useEffect(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchImages();
|
fetchImages();
|
||||||
}, [pexelsQueriesWebSite, design]);
|
}, [pexelsQueriesWebSite, design]);
|
||||||
|
|
||||||
|
|||||||
@ -93,8 +93,8 @@ export default function WebSite() {
|
|||||||
<main className={`flex-grow bg-white rounded-none `}>
|
<main className={`flex-grow bg-white rounded-none `}>
|
||||||
<HeroSection
|
<HeroSection
|
||||||
projectName={'Management system'}
|
projectName={'Management system'}
|
||||||
image={[{src: 'https://images.pexels.com/photos/774909/pexels-photo-774909.jpeg', photographer_url: 'https://www.pexels.com/photo/woman-in-white-blouse-774909/', photographer: 'Pexels'}]}
|
image={['Project management dashboard overview']}
|
||||||
mainText={`Welcome to ${projectName} - where project management feels just like home!`}
|
mainText={`Revolutionize Project Management with ${projectName}`}
|
||||||
subTitle={`${projectName} empowers project managers to seamlessly oversee multiple organizations, tasks, and teams, enhancing productivity and efficiency.`}
|
subTitle={`${projectName} empowers project managers to seamlessly oversee multiple organizations, tasks, and teams, enhancing productivity and efficiency.`}
|
||||||
design={HeroDesigns.IMAGE_RIGHT || ''}
|
design={HeroDesigns.IMAGE_RIGHT || ''}
|
||||||
buttonText={`Get Started Now`}
|
buttonText={`Get Started Now`}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user