Profile page ready.

This commit is contained in:
FilipHalon 2020-01-20 12:33:29 +01:00
parent d06085dc6b
commit 2bc3b6f3d9
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faTasks, faCloud, faSearch } from '@fortawesome/free-solid-svg-icons';
const Profile = props => {
return (
<section className="task-description">
<div className="task-description">
<div className="task-area">
<div className="profile-action"><span><FontAwesomeIcon icon={faSearch} /></span><span>Przeglądaj zadania</span></div>
<div className="profile-action"><span><FontAwesomeIcon icon={faTasks} /></span><span>Dodaj zadanie</span></div>
<div className="profile-action"><span><FontAwesomeIcon icon={faSearch} /></span><span>Zobacz rozwiązania</span></div>
<div className="profile-action"><span><FontAwesomeIcon icon={faSearch} /></span><span>Zobacz wstawione zadania</span></div>
</div>
</div>
</section>
)
};
export default Profile;

13
pages/profile.js Normal file
View File

@ -0,0 +1,13 @@
import Sidebar from "./components/Sidebar";
import Profile from "./components/Profile";
const ProfilePage = () => {
return (
<main>
<Sidebar/>
<Profile/>
</main>
)
};
export default ProfilePage;

View File

@ -656,3 +656,33 @@ form.solution-add-area > div:last-of-type button {
form.solution-add-area > div:last-of-type button:hover { form.solution-add-area > div:last-of-type button:hover {
background-color: var(--button-green-hover); background-color: var(--button-green-hover);
} }
/* profile */
.profile-action {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
border-radius: 4px;
box-shadow: 0px 7px 14px #32325D1A;
background: #FFF;
font-size: 130%;
cursor: pointer;
transition: .4s;
}
.profile-action:hover {
background: #838DAC;
color: #FFF;
}
.profile-action span {
padding-right: .5rem;
padding-bottom: .5rem;
}
.profile-action svg {
font-size: 140%;
color: var(--button-orange)
}