generated from natterstefan/nextjs-template
-
-
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.
feat: we added Header component; removed Navigation; optimzed Layout (#1
- Loading branch information
1 parent
05b97fe
commit 756fdac
Showing
17 changed files
with
133 additions
and
123 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,38 @@ | ||
import React from 'react' | ||
|
||
export const Header = () => { | ||
return ( | ||
<div className="flex flex-col items-center gap-8 px-4 md:flex-row"> | ||
<div className="flex justify-center w-full md:w-5/12"> | ||
<div className="overflow-hidden border-8 border-white border-solid rounded-full shadow-xl max-w-[200px] lg:max-w-[400px]"> | ||
<img | ||
src="https://lmpixels.com/wp/leven-wp/full-width/wp-content/uploads/sites/3/2019/12/cesar-rincon-1024x1024.jpg" | ||
alt="Alex Smith" | ||
/> | ||
</div> | ||
</div> | ||
<div className="w-full text-center md:w-7/12 md:text-left"> | ||
<span className="mb-4 text-sm text-gray-400">Frontend-developer</span> | ||
<h1 className="mb-4 text-3xl font-black text-gray-700">Alex Smith</h1> | ||
<p className="mb-4 text-sm"> | ||
Fusce tempor magna mi, non egestas velit ultricies nec. Aenean | ||
convallis, risus non condimentum gravida, odio mauris ullamcorper | ||
felis, ut venenatis purus ex eu mi. Quisque imperdiet lacinia urna, a | ||
placerat sapien pretium eu. | ||
</p> | ||
<a | ||
href="" | ||
className="inline-block p-2 px-6 mr-2 bg-white border-2 border-green-700 shadow-lg rounded-3xl hover:bg-green-700 hover:text-white" | ||
> | ||
Download CV | ||
</a> | ||
<a | ||
href="" | ||
className="inline-block p-2 px-6 bg-white border-2 border-gray-700 shadow-lg rounded-3xl hover:bg-gray-700" | ||
> | ||
Contact | ||
</a> | ||
</div> | ||
</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 @@ | ||
export * from './Header' |
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/components/navigation/__stories__/Navigation.stories.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export * from './whatido' |
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,10 @@ | ||
h2.title { | ||
&:before { | ||
content: ''; | ||
@apply absolute bottom-0 w-full h-[3px] bg-gray-100; | ||
} | ||
&:after { | ||
content: ''; | ||
@apply absolute bottom-0 left-0 w-8 h-[3px] bg-green-500; | ||
} | ||
} |
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,63 @@ | ||
import React, { ComponentType } from 'react' | ||
import { FaPencilAlt, FaWarehouse } from 'react-icons/fa' | ||
import { FiMonitor } from 'react-icons/fi' | ||
import { HiOutlineSpeakerphone } from 'react-icons/hi' | ||
|
||
interface IItem { | ||
icon: ComponentType | ||
title: string | ||
text: string | ||
} | ||
|
||
const ITEMS: IItem[] = [ | ||
{ | ||
icon: FaPencilAlt, | ||
title: 'Copywrite', | ||
text: | ||
'Mauris neque libero, aliquet vel mollis nec, euismod sed tellus. Mauris convallis dictum elit id volutpat. Vivamus blandit, dolor vitae lacinia maximus, risus velit vehicula odio, a tincidunt turpis turpis tempus ex.', | ||
}, | ||
{ | ||
icon: FaWarehouse, | ||
title: 'Ecommerce', | ||
text: | ||
'Mauris neque libero, aliquet vel mollis nec, euismod sed tellus. Mauris convallis dictum elit id volutpat. Vivamus blandit, dolor vitae lacinia maximus, risus velit vehicula odio, a tincidunt turpis turpis tempus ex.', | ||
}, | ||
{ | ||
icon: FiMonitor, | ||
title: 'Web Design', | ||
text: | ||
'Mauris neque libero, aliquet vel mollis nec, euismod sed tellus. Mauris convallis dictum elit id volutpat. Vivamus blandit, dolor vitae lacinia maximus, risus velit vehicula odio, a tincidunt turpis turpis tempus ex.', | ||
}, | ||
{ | ||
icon: HiOutlineSpeakerphone, | ||
title: 'Marketing', | ||
text: | ||
'Mauris neque libero, aliquet vel mollis nec, euismod sed tellus. Mauris convallis dictum elit id volutpat. Vivamus blandit, dolor vitae lacinia maximus, risus velit vehicula odio, a tincidunt turpis turpis tempus ex.', | ||
}, | ||
] | ||
|
||
export const WhatIDo = () => { | ||
return ( | ||
<div className="px-4 mx-auto space-y-4"> | ||
<h2 className="relative inline-block pb-2 text-2xl font-bold title"> | ||
What I do | ||
</h2> | ||
<div className="flex flex-wrap -mx-6"> | ||
{ITEMS.map(item => ( | ||
<div | ||
key={item.title} | ||
className="flex w-full px-6 mt-4 space-x-6 md:w-1/2" | ||
> | ||
<div className="py-2 text-lg text-green-500 md:text-3xl"> | ||
<item.icon /> | ||
</div> | ||
<div> | ||
<h4 className="text-lg font-bold">{item.title}</h4> | ||
<p>{item.text}</p> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</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
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
756fdac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: