File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ export default function Hero ( { title, description, image } ) {
4
+ return ( < section class = "text-gray-700 bg-white body-font" >
5
+ < div class = "container mx-auto flex px-5 py-24 md:flex-row flex-col items-center" >
6
+ < div class = "lg:flex-grow md:w-1/2 lg:pr-24 md:pr-16 flex flex-col md:items-start md:text-left mb-16 md:mb-0 items-center text-center" >
7
+ < h1 class = "title-font sm:text-4xl text-3xl mb-4 font-medium text-gray-900" >
8
+ { title }
9
+ </ h1 >
10
+ < p class = "mb-8 leading-relaxed" >
11
+ { description }
12
+ </ p >
13
+ < div class = "flex justify-center" >
14
+ < button class = "inline-flex text-white bg-teal-700 border-0 py-2 px-6 focus:outline-none hover:bg-teal-700 rounded text-lg" > Button</ button >
15
+ < button class = "ml-4 inline-flex text-gray-400 bg-gray-800 border-0 py-2 px-6 focus:outline-none hover:bg-gray-700 hover:text-white rounded text-lg" > Button</ button >
16
+ </ div >
17
+ </ div >
18
+ < div class = "lg:max-w-lg lg:w-full md:w-1/2 w-5/6" >
19
+ < img class = "object-cover object-center rounded" alt = "hero" src = { image } />
20
+ </ div >
21
+ </ div >
22
+ </ section > )
23
+ }
You can’t perform that action at this time.
0 commit comments