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ja1OFq+eH&;Qyqnzm?(+#h*{*J|Dl+=PS-UL(Qn$j`zY4zD7U&waJ+1Qc>zl;db1}$K3i}}_?m^X4K
zcc+1lN^zO(qc0$-;X?^dHF%0hA@_}g-h-=iYe5g5ThpnThAu}7*q=5Bq^5z@8%IiTSVq-4lBnJE8k;B@&%3A7L7A`!V5c!!aPJ=yj(
zx_X(x?#2~ap1qd~11+S4gv53if_k$}F{IkA1zioiYm}0op#Aj5Y4pPQTitMocPt8%
zO}L5{i|^k&dMF0adVMkAE4%Vylp(#kh;VjtPpV_ZZRiK{%a|h_A>JhGFPf*9g~LRV
zFcy%>$+NTbbp45}`~T8REqO|XJ`9v+kU~$x-bw{bHu=Ror~WPhxN+S;3>^<
BcxM0r
literal 0
HcmV?d00001
diff --git a/components/search.svg b/components/search.svg
new file mode 100644
index 00000000..1d06aa91
--- /dev/null
+++ b/components/search.svg
@@ -0,0 +1,3 @@
+
diff --git a/components/send.svg b/components/send.svg
new file mode 100644
index 00000000..9ddbe459
--- /dev/null
+++ b/components/send.svg
@@ -0,0 +1,3 @@
+
diff --git a/components/sendFeedback.svg b/components/sendFeedback.svg
new file mode 100644
index 00000000..de0a83ca
--- /dev/null
+++ b/components/sendFeedback.svg
@@ -0,0 +1,3 @@
+
diff --git a/components/settings.svg b/components/settings.svg
new file mode 100644
index 00000000..6fc7b4d2
--- /dev/null
+++ b/components/settings.svg
@@ -0,0 +1,3 @@
+
diff --git a/components/spam.svg b/components/spam.svg
new file mode 100644
index 00000000..329bac38
--- /dev/null
+++ b/components/spam.svg
@@ -0,0 +1,3 @@
+
diff --git a/components/trash.svg b/components/trash.svg
new file mode 100644
index 00000000..5c2501c3
--- /dev/null
+++ b/components/trash.svg
@@ -0,0 +1,3 @@
+
From b4510814726f7d6e616c1ea9a566f1f20c16aef4 Mon Sep 17 00:00:00 2001
From: "vivid-github[bot]"
<129557859+vivid-github[bot]@users.noreply.github.com>
Date: Tue, 14 Nov 2023 23:41:01 +0000
Subject: [PATCH 2/2] Modularize generated code
---
components/Sidebar.tsx | 62 ++++++++++++++++++++++++++-------------
components/SidebarTab.tsx | 4 +++
2 files changed, 45 insertions(+), 21 deletions(-)
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 48cf818e..3e2200d9 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -17,12 +17,14 @@ import { Contacts } from "./Contacts";
import { Invite } from "./Invite";
import { SendFeedback } from "./SendFeedback";
import styled from "styled-components";
+
const Image = styled.img`
position: absolute;
inset: 0;
height: 100%;
width: 100%;
`;
+
const MailIcon = styled.div`
overflow: hidden;
border-radius: 10px;
@@ -30,18 +32,21 @@ const MailIcon = styled.div`
width: 38px;
height: 38px;
`;
+
const SkiffMail = styled.p`
color: rgb(255, 255, 255);
font-size: 15px;
font-weight: 300;
line-height: 19.5px;
`;
+
const AryamanSWorkspace = styled.p`
color: rgba(255, 255, 255, 0.54);
font-size: 13px;
font-weight: 300;
line-height: 16.9px;
`;
+
const Text = styled.div`
display: flex;
flex-direction: column;
@@ -49,6 +54,7 @@ const Text = styled.div`
height: fit-content;
width: fit-content;
`;
+
const Workspace = styled.div`
display: flex;
align-items: flex-start;
@@ -57,6 +63,7 @@ const Workspace = styled.div`
padding: 10px;
width: 100%;
`;
+
const OverallOptions = styled.div`
display: flex;
flex-direction: column;
@@ -68,6 +75,7 @@ const OverallOptions = styled.div`
border-color: rgba(255, 255, 255, 0.04);
border-bottom-width: 1px;
`;
+
const MailTabs = styled.div`
display: flex;
flex-direction: column;
@@ -77,6 +85,7 @@ const MailTabs = styled.div`
padding: 0px 0px 12px;
width: 239px;
`;
+
const MailOptions = styled.div`
overflow: hidden;
display: flex;
@@ -86,6 +95,7 @@ const MailOptions = styled.div`
width: 100%;
height: 598px;
`;
+
const ShareOptions = styled.div`
display: flex;
flex-direction: column;
@@ -93,6 +103,7 @@ const ShareOptions = styled.div`
height: fit-content;
width: 100%;
`;
+
const SidebarComponent = styled.div`
overflow: hidden;
display: flex;
@@ -112,6 +123,7 @@ const SidebarComponent = styled.div`
linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0));
font-family: Roboto;
`;
+
export const Sidebar = ({ override }: { override?: React.CSSProperties }) => {
const sidebarTabProps = [
{
@@ -195,32 +207,13 @@ export const Sidebar = ({ override }: { override?: React.CSSProperties }) => {
];
return (
-
-
-
-
-
- Skiff Mail
- aryaman's workspace
-
-
+
{sidebarTabProps.map((props, i) => (
))}
-
-
-
- {sidebarTabProps1.map((props, i) => (
-
- ))}
-
-
- } label="aryaman@skiff.com" />
-
-
-
+
{sidebarTabProps2.map((props, i) => (
@@ -229,3 +222,30 @@ export const Sidebar = ({ override }: { override?: React.CSSProperties }) => {
);
};
+
+const AryamansWorkspace = () => (
+
+
+
+
+
+ Skiff Mail
+ aryaman's workspace
+
+
+);
+
+const MailOptions = ({ sidebarTabProps1 }: any) => (
+
+
+
+ {sidebarTabProps1.map((props, i) => (
+
+ ))}
+
+
+ } label="aryaman@skiff.com" />
+
+
+
+);
diff --git a/components/SidebarTab.tsx b/components/SidebarTab.tsx
index 11213d35..d15ac8ec 100644
--- a/components/SidebarTab.tsx
+++ b/components/SidebarTab.tsx
@@ -1,10 +1,12 @@
import { InboxIcon } from "./InboxIcon";
import styled from "styled-components";
+
const Inbox = styled.p`
font-size: 15px;
font-weight: 300;
line-height: 19.5px;
`;
+
const Content = styled.div`
display: flex;
align-items: center;
@@ -14,6 +16,7 @@ const Content = styled.div`
width: 100%;
height: 32px;
`;
+
const SidebarTabComponent = styled.div`
display: flex;
flex-direction: column;
@@ -22,6 +25,7 @@ const SidebarTabComponent = styled.div`
padding: 0px 6px;
width: 239px;
`;
+
export const SidebarTab = ({
override,
status,