Skip to content

Commit

Permalink
Dashboard styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sbddesign committed May 7, 2022
1 parent 0b3ef1f commit 52fa3da
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.default-bg {
@apply fixed h-screen w-screen;
@apply fixed h-screen w-screen z-0;
opacity: 0.10;
filter: blur(8px);
background-image: url('../public/pebbles.jpg');
Expand Down
21 changes: 17 additions & 4 deletions src/routes/Home.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
import React from "react";
import { Link, Outlet } from "react-router-dom";
import Button from '../components/Button';
import {PlusIcon} from '@heroicons/react/solid';

const Home = () => {
return (
<div className="min-h-screen">
<div className="default-bg"></div>
<div className="min-w-screen min-h-screen p-8 flex flex-col justify-center">
<div className="min-w-screen min-h-screen p-8 flex flex-col justify-center z-10 relative">
<h1 className="text-2xl">Welcome, Jerry</h1>

<div className="rounded-md bg-fam-bg-dark p-8">
<h2>Balance</h2>
<p>1000 <span>sats</span></p>
<div className="rounded-lg bg-fam-bg-dark p-8 drop-shadow-lg my-4 border border-fam-teal border-solid">
<h2 className="mb-4">Your Balance</h2>
<p className="text-4xl">1000 <span>sats</span></p>
</div>

<div className="rounded-lg bg-fam-bg-dark p-8 drop-shadow-lg my-4 border border-fam-teal border-solid space-y-4 flex flex-col">
<h2>Members</h2>

<p className="text-lg">Your tribe has no members. Add&nbsp;one! </p>

<Link to="/">
<Button><PlusIcon className="w-8 h-8" /> <span>Add Member</span></Button>
</Link>
</div>

</div>
<Outlet />
</div>
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {
colors: {
'fam-orange': '#ff9500',
'fam-orange-inactive': '#A68659',
'fam-bg-dark': '#3B474B'
'fam-bg-dark': '#3B474B',
'fam-teal': '#56737D'
},
backgroundImage: {
'mountains': "url('../public/mountains.jpg')",
Expand Down

0 comments on commit 52fa3da

Please sign in to comment.