Skip to content

Commit

Permalink
code: added Hero and CTA components
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshsinghrathore committed Dec 13, 2023
1 parent d2a1996 commit 6bc0929
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/stories/Components/Cta.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export default () => {
return (
<section className="py-14">
<div className="max-w-screen-xl mx-auto md:px-8">
<div className="items-center gap-x-12 sm:px-4 md:px-0 lg:flex">
<div className="flex-1 sm:hidden lg:block">
<img src="https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80" className="md:max-w-lg sm:rounded-lg" alt="" />
</div>
<div className="max-w-xl px-4 space-y-3 mt-6 sm:px-0 md:mt-0 lg:max-w-2xl">
<h3 className="text-indigo-600 font-semibold">
Professional services
</h3>
<p className="text-gray-800 text-3xl font-semibold sm:text-4xl">
Build your SaaS solution with help from our experts
</p>
<p className="mt-3 text-gray-600">
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum, sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium
</p>
<a href="javascript:void(0)" className="inline-flex gap-x-1 items-center text-indigo-600 hover:text-indigo-500 duration-150 font-medium">
Learn more
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" className="w-5 h-5">
<path fillRule="evenodd" d="M3 10a.75.75 0 01.75-.75h10.638L10.23 5.29a.75.75 0 111.04-1.08l5.5 5.25a.75.75 0 010 1.08l-5.5 5.25a.75.75 0 11-1.04-1.08l4.158-3.96H3.75A.75.75 0 013 10z" clipRule="evenodd" />
</svg>
</a>
</div>
</div>
</div>
</section>
)
}
17 changes: 17 additions & 0 deletions src/stories/Components/Cta.stories.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Import Rating component
import Cta from './Cta';

export default {
title: 'DSR/Cta',
component: Cta,
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};



export const CtaPage= (args) => <Cta {...args} />;
Loading

0 comments on commit 6bc0929

Please sign in to comment.