summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-12-29 09:04:39 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-12-29 09:04:39 +0700
commit69d7bd767f1b720ea5d1d5124374281e3449a48d (patch)
tree350252a6fadc9427c15cbd87756babde4fc8dbb9 /src/components
parent753e2468be9f8b339fe3b206603752a9d0100803 (diff)
no message
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppBar.js15
-rw-r--r--src/components/LineDivider.js7
-rw-r--r--src/components/ProgressBar.js2
3 files changed, 16 insertions, 8 deletions
diff --git a/src/components/AppBar.js b/src/components/AppBar.js
index 68a93f64..869e4fff 100644
--- a/src/components/AppBar.js
+++ b/src/components/AppBar.js
@@ -1,5 +1,4 @@
-import { HeartIcon, HomeIcon } from "@heroicons/react/24/outline";
-import { ChevronLeftIcon } from "@heroicons/react/24/solid";
+import { ArrowLeftIcon, HeartIcon, HomeIcon } from "@heroicons/react/24/outline";
import Head from "next/head";
import { useRouter } from "next/router";
import Link from "./Link";
@@ -12,12 +11,14 @@ const AppBar = ({ title }) => {
<Head>
<title>{ title } - Indoteknik</title>
</Head>
- <div className="flex justify-between px-4 py-5 border-b border-gray_r-6">
+ <div className="flex justify-between pr-4 py-5 border-b border-gray_r-6 bg-gray_r-1">
{/* --- Start Title */}
- <button type="button" onClick={() => router.back()} className="flex gap-x-2 items-center text-gray_r-12">
- <ChevronLeftIcon className="w-6 stroke-2"/>
- <h1>{ title }</h1>
- </button>
+ <div className="flex items-center">
+ <button type="button" onClick={() => router.back()} className="text-gray_r-12 px-4">
+ <ArrowLeftIcon className="w-6 stroke-2"/>
+ </button>
+ <h1 className="text-h-md">{ title }</h1>
+ </div>
{/* --- End Title */}
{/* --- Start Icons */}
diff --git a/src/components/LineDivider.js b/src/components/LineDivider.js
new file mode 100644
index 00000000..ce92f4ee
--- /dev/null
+++ b/src/components/LineDivider.js
@@ -0,0 +1,7 @@
+const LineDivider = () => {
+ return (
+ <hr className="h-1.5 bg-gray_r-4 border-none"/>
+ );
+};
+
+export default LineDivider; \ No newline at end of file
diff --git a/src/components/ProgressBar.js b/src/components/ProgressBar.js
index 8a2df0a4..0adedcdf 100644
--- a/src/components/ProgressBar.js
+++ b/src/components/ProgressBar.js
@@ -6,7 +6,7 @@ const ProgressBar = ({ current, labels }) => {
{labels.map((label, index) => (
<Fragment key={index}>
<div className={"flex gap-x-2 items-center " + (index < current ? 'text-gray_r-12' : 'text-gray_r-11')}>
- <div className={"leading-none p-2 rounded-full w-7 text-center text-caption-2 " + (index < current ? 'bg-yellow_r-9' : 'bg-gray_r-6')}>
+ <div className={"leading-none p-2 rounded-full w-7 text-center text-caption-2 " + (index < current ? 'bg-yellow_r-9' : 'bg-gray_r-5')}>
{ index + 1 }
</div>
<p className="font-medium text-caption-2">{ label }</p>