File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed
Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,24 @@ import LinkButton from '../LinkButton/LinkButton';
33export default function HeroHeader ( ) {
44 return (
55 < div
6- className = "relative bg-cover bg-center bg-no-repeat"
6+ className = "relative bg-cover bg-center bg-no-repeat"
77 style = { {
88 backgroundImage : `url('/images/hero-image.jpg')` ,
99 backgroundColor : '#160c0c' ,
1010 } }
1111 >
12- < div className = "w-full flex py-20 flex-col items-center justify-center z-10 bg-black bg-opacity-80" >
12+ { /* Translucent overlay to darken image while keeping it visible */ }
13+ < div className = "absolute inset-0 bg-black/80" />
14+
15+ < div className = "w-full flex py-20 flex-col items-center justify-center relative z-10" >
1316 < h1 className = "font-montserrat font-bold text-center text-white text-[40px] leading-10 w-[388px] mx-auto mt-24" >
1417 React Developer Community Kenya
1518 </ h1 >
1619 < p className = "font-montserrat text-white w-[570px] mx-auto text-center mt-5 mb-[45px]" >
1720 We are a tech community in Kenya focused on the React JS library and
1821 its ecosystem.
1922 </ p >
20- < div className = "flex items-center justify-center relative" >
23+ < div className = "flex items-center justify-center relative" >
2124 < LinkButton
2225 className = "flex justify-center items-center bg-[#EC0505] hover:bg-[#e12e2e] transition-all duration:200 hover:scale-105 w-[307px] h-[61px] rounded-md text-white! font-montserrat font-bold"
2326 href = "https://bit.ly/joinreactdevske"
Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ import LinkButton from '../LinkButton/LinkButton';
33export default function MobileHero ( ) {
44 return (
55 < div
6- className = "flex items-center justify-center bg-black bg-cover bg-center text-white mt-0"
6+ className = "relative flex items-center justify-center bg-cover bg-center text-white mt-0"
77 style = { {
88 backgroundImage : `url('/images/hero-image.jpg')` ,
99 } }
1010 >
11- < div className = "bg-black pt-[20vh] h-full justify-end items-center pb-[5vh] flex-col bg-opacity-50 p-6 rounded-md flex bg-cover bg-center text-white mt-0" >
12- { ' ' }
11+ { /* overlay for legibility using Tailwind */ }
12+ < div className = "absolute inset-0 bg-black/50" />
13+
14+ < div className = "relative z-10 pt-[20vh] h-full justify-end items-center pb-[5vh] flex-col p-6 rounded-md flex text-white mt-0" >
1315 { /* Adds opacity to make text more legible */ }
1416 < h1 className = "font-robotoMono font-medium text-2xl text-center mb-2 text-white" >
1517 React Developer Community Kenya
Original file line number Diff line number Diff line change 1+ @import url ('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap' );
12@import 'tailwindcss' ;
23
4+ @theme {
5+ --font-montserrat : 'Montserrat' , sans-serif;
6+ --font-roboto-mono : 'Roboto Mono' , monospace;
7+ --font-dm-sans : 'DM Sans' , sans-serif;
8+ }
9+
310html ,
411body {
512 padding : 0 ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module.exports = {
88 } ,
99 fontFamily : {
1010 montserrat : [ 'Montserrat' , 'sans-serif' ] ,
11- robotoMono : [ 'Robot Mono' , 'monospace' ] ,
11+ robotoMono : [ 'Roboto Mono' , 'monospace' ] ,
1212 dmSans : [ 'DM Sans' , 'sans-serif' ] ,
1313 } ,
1414 } ,
You can’t perform that action at this time.
0 commit comments