Skip to content

Commit

Permalink
add page "Import DB"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-hazaz committed Apr 20, 2024
1 parent 75d529e commit 807d20a
Show file tree
Hide file tree
Showing 14 changed files with 197 additions and 9 deletions.
10 changes: 3 additions & 7 deletions components/Common/CardsList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ import Image from 'next/image';
import icon1 from '../../../public/images/icons/icon-1.svg';
import PropTypes from 'prop-types';

import { useEffect, useState } from 'react';

import 'swiper/css';
import { Swiper, SwiperSlide } from 'swiper/react';
import { Autoplay } from 'swiper';

const CardsList = ({ title, subTitle, cards, customClasses }) => {
return (
<div className="w-full grid grid-cols-1 tablet:grid-cols-2 gap-4 p-4">
<div
className={`w-full grid grid-cols-1 tablet:grid-cols-2 gap-4 p-4 ${customClasses}`}
>
{cards.map((item, index) => {
return (
<div
Expand Down
2 changes: 1 addition & 1 deletion components/Header/Menu/menu-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const PRODUCTS_ITEMS_1 = [
{
title: 'Build APIs on existing DB',
image: IconAPI,
url: '/database-first-api',
url: '/build-api-on-existing-db',
description: 'Head start development using existing DB',
},
];
Expand Down
2 changes: 1 addition & 1 deletion components/Sections/LowCode/Hero/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from 'next/image';
import LowCodeHeroImage from '../../../../public/images/low-code/low-code-hero.png';
import LowCodeHeroImage from '../../../../public/images/product/low-code-hero.png';
import PageHero from '../../../Common/PageHero';

const Hero = () => {
Expand Down
192 changes: 192 additions & 0 deletions pages/build-api-on-existing-db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
import Hero from '../components/Sections/LowCode/Hero';

import { NextSeo } from 'next-seo';
import { MainLayout } from '../layouts';
import PageSection from '../components/Common/PageSection';
import CardsList from '../components/Common/CardsList';
import IconEvolution from '../public/images/low-code/icon-evolution.svg';
import IconFreedom from '../public/images/low-code/icon-operational-freedom.svg';
import IconRapid from '../public/images/low-code/icon-rapid.svg';
import Slider from '../components/Sections/Enterprise/Slider';
import WidePanelWithImage from '../components/Common/WidePanelWithImage';

import ImageImport from '../public/images/product/image-import.png';
import ImageModernStack from '../public/images/product/image-modern-stack.png';
import ImagePlugins from '../public/images/product/image-plugins.png';
import ImageModernDev from '../public/images/product/image-modern-dev.png';
import ImageHero from '../public/images/product/image-db-import-hero.png';


import StartNow from '../components/Sections/About/StartNow';
import PageHero from '../components/Common/PageHero';
import Image from 'next/image';

const cards = [
{
title: 'Quick transition',
subTitle:
"Significantly cut down on development time, focus on innovation and enhancement rather than starting from scratch.",
icon: IconRapid,
},
{
title: 'Seamless integration',
subTitle:
"Maintain the integrity of your existing database structure, move to modern application architecture without disruption.",
icon: IconEvolution,
},
{
title: 'Improved efficiency',
subTitle: "Eliminate the need for extensive resources investment in rebuilding your database for new applications and reduce overall project costs.",
icon: IconFreedom,
},

];

const features = [

{
title: 'Quick import',
image: ImageImport,
secondaryBtn: {
title: 'Learn More',
href: 'https://docs.amplication.com/',
},
primaryBtn: undefined,
content:
"Import your existing database schema directly into Amplication, without compromising on data integrity."
},
{
title: 'Modern stack',
image: ImageModernStack,
primaryBtn: {
title: 'Book a Demo',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
},
secondaryBtn: undefined,
content:
"Build modern services and APIs on top of your database in minutes."
},
{
title: 'Seamless transition',
image: ImagePlugins,
secondaryBtn: {
title: 'Try Free',
href: 'https://app.amplication.com/',
},
primaryBtn: undefined,
content:
"Maintain your existing database while transitioning to a modern application architecture."
},
{
title: 'No redundancy',
image: ImageModernDev,
primaryBtn: {
title: 'Book a Demo',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
},
secondaryBtn: undefined,
content:
'Avoid the redundancy of recreating your database schema',
},


]

const ImportDBPage = () => {
return (
<>
<NextSeo
title="Accelerate Your Modernization Journey with Amplication DB Schema Import | Amplication"
description="Streamline your transition to a modern, scalable application architecture."
/>

<main
className="w-full font-poppins z-10 !mb-0 "
id="apply"
>
<PageSection>
<PageHero
title={
<>
Accelerate Your Modernization Journey{' '}
<span className="text-purple-bright">
with Amplication DB Schema Import
</span>
</>
}
subTitle={''}
subText={
'Streamline your transition to a modern, scalable application architecture.'
}
mainButton={{
text: 'Book a Demo',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
eventName: 'bookDemoClicked',
eventParams: {
buttonLocation: 'hero-import-db',
},
}}
secondaryButton={{
text: 'Try Free',
href: 'https://app.amplication.com/login',
eventName: 'startNowClicked',
eventParams: {
buttonLocation: 'hero-import-db',
},
}}
imageNode={
<Image src={ImageHero} alt={'Build API on existing Database'} />
}
/>
</PageSection>
<PageSection alternate className={'!pt-5 !pb-4 laptop:!py-20 '} innerClassName={"flex-grow"}>
<Slider />
</PageSection>
<PageSection>
<h2 className="my-12 mx-auto text-[32px] !font-semibold leading-[48px] tracking-normal text-center max-w-[960px]">
Modernize your legacy systems without the hassle of remapping your entire database
</h2>
<CardsList
cards={cards}
title={'DB Schema Import Key Features'}
customClasses={'tablet:grid-cols-3'}
/>
<div className="p-4">
{features.map((feature, i) =>
(
<WidePanelWithImage
key={i}
image={feature.image}
title={feature.title}
content={feature.content}
primaryBtn={feature.primaryBtn}
secondaryBtn={feature.secondaryBtn}
customClasses={feature.customClasses}
alternate={i % 2 === 1}
/>
)
)}
</div>
</PageSection>

<PageSection alternate>
<div className='amplication-base'>
<StartNow />
</div>
</PageSection>

</main >
</>
);
};
ImportDBPage.getLayout = function getLayout(page) {
return (
<MainLayout
hideFooterBanner={true}
hideBackground={true}
>
{page}
</MainLayout>
);
};
export default ImportDBPage;
File renamed without changes
Binary file added public/images/product/image-db-import-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/images/product/image-import.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/images/product/image-modern-stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes

0 comments on commit 807d20a

Please sign in to comment.