Skip to content

Commit b09e655

Browse files
authored
Add visual elements (#108)
* Add visual elements * Add more space between Useful Links and connect with us
1 parent da727e2 commit b09e655

File tree

6 files changed

+227
-7
lines changed

6 files changed

+227
-7
lines changed

src/components/HomepageFeatures/index.tsx

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,47 @@ function Feature({title, Svg, description, linkTo, buttonTitle}: FeatureItem) {
9393
export default function HomepageFeatures(): JSX.Element {
9494
const { colorMode } = useColorMode();
9595
return (
96-
<section className={styles.features}>
96+
<section className={styles.features} style={{ position: 'relative', overflow: 'visible'}}>
97+
98+
<div className="hide-small-width" style={{
99+
position: 'absolute',
100+
bottom: '30px',
101+
left: '0px',
102+
width: '281px',
103+
height: '235px',
104+
zIndex: -1,
105+
opacity: 0.4,
106+
overflow: 'visible',
107+
108+
}}>
109+
<img
110+
src="img/visuals/bottom-left.svg"
111+
style={{
112+
width: '100%',
113+
height: '100%',
114+
}}
115+
/>
116+
</div>
117+
118+
<div className="hide-small-width" style={{
119+
position: 'absolute',
120+
bottom: '20px',
121+
right: '0px',
122+
width: '281px',
123+
height: '235px',
124+
zIndex: -1,
125+
opacity: 0.4,
126+
overflow: 'visible',
127+
128+
}}>
129+
<img
130+
src="img/visuals/bottom-right.svg"
131+
style={{
132+
width: '100%',
133+
height: '100%',
134+
}}
135+
/>
136+
</div>
97137
<div className="container" style={{ marginBottom: "80px"}}>
98138
<div className="row" style={{ display: 'flex', justifyContent: 'flex-start' }}>
99139
<Heading as="h1" className="margin-bottom--lg orb-font" style={{ fontSize: 40, fontWeight: 'normal' }}>
@@ -108,12 +148,31 @@ export default function HomepageFeatures(): JSX.Element {
108148
</div>
109149
))}
110150
</div>
111-
<div className="row" style={{ display: 'flex', justifyContent: 'center', marginTop: '80px'}}>
112-
<Heading as="h1" className="text--center orb-font" style={{ fontSize: 40, fontWeight: 'normal'}}>
151+
<div className="row" style={{ overflow: 'visible', display: 'flex', justifyContent: 'center', marginTop: '130px', marginBottom: '80px'}}>
152+
<Heading as="h1" className="text--center orb-font" style={{ overflow: 'visible', position: 'relative', fontSize: 40, fontWeight: 'normal'}}>
113153
Connect With US
154+
<div style={{
155+
position: 'absolute',
156+
top: '-88px',
157+
left: '-68%',
158+
width: '800px',
159+
height: '205px',
160+
zIndex: -1,
161+
opacity: 0.4,
162+
overflow: 'visible',
163+
164+
}}>
165+
<img
166+
src="img/visuals/middle.svg"
167+
style={{
168+
width: '100%',
169+
height: '100%',
170+
}}
171+
/>
172+
</div>
114173
</Heading>
115174
</div>
116-
<div className="row" style={{ display: 'flex', flexDirection: 'row', justifyContent: 'center', marginTop: '40px', gap: '20px'}}>
175+
<div className="row" style={{display: 'flex', flexDirection: 'row', justifyContent: 'center', marginTop: '40px', gap: '20px'}}>
117176
<div className={clsx("card", styles.custom__card_1)} style={{ height: '200px', width: '500px', padding: '20px' , color: '#0073E6'}}>
118177
<div className="orb-font" style={{ fontSize: 26, fontWeight: 'bold', color: '#0073E6' }}>Fhenix Developer Updates</div>
119178
<div style={{ color: colorMode === 'dark' ? '#E6F7FF' : '#003366'}}>Stay up-to-date on the latest Fhenix developer news</div>

src/pages/index.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,27 @@ function HomepageHeader() {
9797
</div>
9898
</div>
9999

100-
<div className="hide-small-width" style={{marginTop: "0px"}}>
101-
{/* <div className="" style={{marginTop: "-100px"}}> */}
102-
{ (colorMode === 'dark') ? <img className="page-cover-image" alt="fhenix stuttershock image" src="img/BookDark.svg" style={{maxWidth: '650px'}}/> : <img className="page-cover-image" alt="fhenix stuttershock image" src="img/BookLight.svg" style={{maxWidth: '650px'}}/>}
100+
<div className="hide-small-width" style={{marginTop: "40px", position: 'relative', overflow: 'visible'}}>
101+
{/* <div className="" style={{marginTop: "-100px"}}> */}
102+
{ (colorMode === 'dark') ? <img className="page-cover-image" alt="fhenix stuttershock image" src="img/BookDark.svg" style={{maxWidth: '600px'}}/> : <img className="page-cover-image" alt="fhenix stuttershock image" src="img/BookLight.svg" style={{maxWidth: '600px'}}/>}
103+
<div style={{
104+
position: 'absolute',
105+
top: '-25%',
106+
left: '-95px',
107+
width: '600px',
108+
height: '600px',
109+
zIndex: -1,
110+
opacity: 0.4
111+
}}>
112+
<img
113+
src="img/visuals/top_section_no-book.svg"
114+
style={{
115+
width: '100%',
116+
height: '100%',
117+
objectFit: 'cover'
118+
}}
119+
/>
120+
</div>
103121
</div>
104122
</div>
105123

static/img/visuals/bottom-left.svg

Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 22 additions & 0 deletions
Loading

static/img/visuals/middle.svg

Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 81 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)