-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from andela/create-user-dropdown-menu-167690864
#167690864 Create user dropdown menu
- Loading branch information
Showing
20 changed files
with
240 additions
and
231 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
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,14 @@ | ||
import React from 'react'; | ||
|
||
const facebook = () => ( | ||
<svg | ||
width="15" | ||
height="15" | ||
viewBox="0 0 1024 1024" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path d="M608 192h160v-192h-160c-123.514 0-224 100.486-224 224v96h-128v192h128v512h192v-512h160l32-192h-192v-96c0-17.346 14.654-32 32-32z" /> | ||
</svg> | ||
); | ||
|
||
export default facebook; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import YoutubeIcon from './youtube.svg'; | ||
import FacebookIcon from './facebook.svg'; | ||
import LinkedInIcon from './linkedin.svg'; | ||
import InstagramIcon from './instagram.svg'; | ||
import TwitterIcon from './twitter.svg'; | ||
// import YoutubeIcon from './youtube.svg'; | ||
// import FacebookIcon from './facebook.svg'; | ||
// import LinkedInIcon from './linkedin.svg'; | ||
// import InstagramIcon from './instagram.svg'; | ||
// import TwitterIcon from './twitter.svg'; | ||
|
||
export { YoutubeIcon, FacebookIcon, LinkedInIcon, InstagramIcon, TwitterIcon }; | ||
// export { YoutubeIcon, FacebookIcon, LinkedInIcon, InstagramIcon, TwitterIcon }; |
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
15 changes: 13 additions & 2 deletions
15
src/assets/icons/twitter.svg → src/assets/icons/twitter.js
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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
<svg width="15" height="15" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"> | ||
import React from 'react'; | ||
|
||
const twitter = () => ( | ||
<svg | ||
width="15" | ||
height="15" | ||
viewBox="0 0 1024 1024" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path d="M1024 226.4c-37.6 16.8-78.2 28-120.6 33 43.4-26 76.6-67.2 92.4-116.2-40.6 24-85.6 41.6-133.4 51-38.4-40.8-93-66.2-153.4-66.2-116 0-210 94-210 210 0 16.4 1.8 32.4 5.4 47.8-174.6-8.8-329.4-92.4-433-219.6-18 31-28.4 67.2-28.4 105.6 0 72.8 37 137.2 93.4 174.8-34.4-1-66.8-10.6-95.2-26.2 0 0.8 0 1.8 0 2.6 0 101.8 72.4 186.8 168.6 206-17.6 4.8-36.2 7.4-55.4 7.4-13.6 0-26.6-1.4-39.6-3.8 26.8 83.4 104.4 144.2 196.2 146-72 56.4-162.4 90-261 90-17 0-33.6-1-50.2-3 93.2 59.8 203.6 94.4 322.2 94.4 386.4 0 597.8-320.2 597.8-597.8 0-9.2-0.2-18.2-0.6-27.2 41-29.4 76.6-66.4 104.8-108.6z" /> | ||
</svg> | ||
</svg> | ||
); | ||
|
||
export default twitter; |
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 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,11 @@ | ||
@media only screen and (max-width: 640px) { | ||
.menu { | ||
width: 100%; | ||
} | ||
.menu li { | ||
text-align: center; | ||
font-size: 1.1em; | ||
color: #000; | ||
border-bottom: 1px dotted #efefef; | ||
} | ||
} |
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,29 @@ | ||
import React from 'react'; | ||
import './Menu.css'; | ||
|
||
const Menu = () => ( | ||
<ul className="absolute right-0 top-0 mt-10 p-5 shadow-lg bg-white z-10 block text-left w-100 menu"> | ||
<li className="p-3 whitespace-no-wrap text-sm md:text-base text-black-600 hover:text-gray-800 hover:bg-gray-100"> | ||
<a className="px-2 py-1" href="/"> | ||
<span>Create Article</span> | ||
</a> | ||
</li> | ||
<li className="p-3 whitespace-no-wrap text-sm md:text-base text-black hover:text-gray-800 hover:bg-gray-100"> | ||
<a className="px-2 py-1" href="/"> | ||
<span>My Profile</span> | ||
</a> | ||
</li> | ||
<li className="p-3 whitespace-no-wrap text-sm md:text-base text-black hover:text-gray-800 hover:bg-gray-100"> | ||
<a className="px-2 py-1" href="/"> | ||
<span>Admin Management</span> | ||
</a> | ||
</li> | ||
<li className="p-3 whitespace-no-wrap text-sm md:text-base text-black hover:text-gray-800 hover:bg-gray-100"> | ||
<a className="px-2 py-1" href="/"> | ||
<span>Logout</span> | ||
</a> | ||
</li> | ||
</ul> | ||
); | ||
|
||
export default Menu; |
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 |
---|---|---|
@@ -1,46 +0,0 @@ | ||
import React, { Component } from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
class LoginPage extends Component { | ||
state = {}; | ||
style = { | ||
backgroundColor: 'sky-blue', | ||
color: 'black', | ||
padding: '7px 9px', | ||
marginLeft: '80%', | ||
border: 'none' | ||
}; | ||
input = { | ||
width: '100%', | ||
border: '1px solid #333', | ||
height: '2em' | ||
}; | ||
label = { | ||
width: '50%', | ||
height: '2em' | ||
}; | ||
render() { | ||
return ( | ||
<> | ||
<Link to="/"> | ||
<button type="button" style={this.style}> | ||
Home | ||
</button> | ||
</Link> | ||
<form> | ||
<label style={this.label}>Email</label> | ||
<input | ||
type="email" | ||
placeholder="example@email.com" | ||
style={this.input} | ||
/> | ||
<label style={this.label}>Password</label> | ||
<input type="password" placeholder="......." style={this.input} /> | ||
<input type="submit" value="login" style={this.style} /> | ||
</form> | ||
</> | ||
); | ||
} | ||
} | ||
|
||
export default LoginPage; | ||
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.
Oops, something went wrong.