-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update navigation and add social links component
- Loading branch information
1 parent
df4300b
commit f86a31c
Showing
3 changed files
with
86 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const socialLinks = [ | ||
{ | ||
name: 'LinkedIn', | ||
url: 'https://www.linkedin.com/in/serifcolakel/', | ||
}, | ||
{ | ||
name: 'Twitter', | ||
url: 'https://twitter.com/ColakelSerif', | ||
}, | ||
]; | ||
|
||
export default function SocialLinks() { | ||
return ( | ||
<div style={{ display: 'flex', flexDirection: 'row' }}> | ||
{socialLinks.map(({ name, url }) => ( | ||
<a | ||
href={url} | ||
key={name} | ||
rel="noreferrer" | ||
style={{ display: 'block', margin: '10px' }} | ||
target="_blank" | ||
> | ||
{name} | ||
</a> | ||
))} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import SocialLinks from '../../components/social-links'; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<div | ||
style={{ | ||
height: '90vh', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: '#f0f0f0', | ||
}} | ||
> | ||
<h1>Welcome to the Container!</h1> | ||
<p>This is the container app that consumes the remote app info.</p> | ||
<p>It was created with the Nx plugin for Webpack 5.</p> | ||
<SocialLinks /> | ||
</div> | ||
); | ||
} |