- designing the builder

- designing the left navbar and sidebar
This commit is contained in:
Amruth Pillai
2020-07-04 22:41:28 +05:30
parent b42deb737c
commit 6f66181c17
18 changed files with 157 additions and 27 deletions

View File

@ -0,0 +1,23 @@
import { Link } from "gatsby";
import React from "react";
import Avatar from "../../shared/Avatar";
import Logo from "../../shared/Logo";
import styles from "./LeftNavbar.module.css";
const LeftNavbar = () => {
return (
<div className={styles.container}>
<Link to="/app/dashboard">
<Logo size="40px" />
</Link>
<hr className="my-4" />
<hr className="mt-auto my-4" />
<Avatar />
</div>
);
};
export default LeftNavbar;

View File

@ -0,0 +1,6 @@
.container {
width: 75px;
z-index: 20;
box-shadow: var(--left-shadow);
@apply p-4 h-screen flex flex-col items-center;
}

View File

@ -0,0 +1,24 @@
import React from "react";
import Input from "../../shared/Input";
import LeftNavbar from "./LeftNavbar";
import styles from "./LeftSidebar.module.css";
const LeftSidebar = () => {
return (
<div className="flex">
<LeftNavbar />
<div className={styles.container}>
<section>
<h2 className="text-4xl mb-8">Profile</h2>
<div className="flex items-center">
<div className={styles.circle}></div>
<Input label="Photograph" className="ml-6" />
</div>
</section>
</div>
</div>
);
};
export default LeftSidebar;

View File

@ -0,0 +1,12 @@
.container {
z-index: 10;
box-shadow: var(--left-shadow);
@apply w-full h-screen p-8;
}
.circle {
width: 60px;
height: 60px;
flex: 0 0 60px;
@apply bg-gray-300 rounded-full;
}