From f1aaf862ae2f7065f07d2e0b398e30eb1c16a793 Mon Sep 17 00:00:00 2001
From: anusreesubash <65728079+anusreesubash@users.noreply.github.com>
Date: Sun, 16 Oct 2022 18:29:00 +0530
Subject: [PATCH] Feature/support links (#30)
* feat: added support links
* chore: fixed lint issues
---
.../components/BrunoSupport/StyledWrapper.js | 20 ++++++++++
.../src/components/BrunoSupport/index.js | 39 +++++++++++++++++++
.../src/components/Sidebar/MenuBar/index.js | 9 +++--
.../bruno-app/src/components/Sidebar/index.js | 3 ++
.../bruno-app/src/components/Welcome/index.js | 26 ++++++++-----
packages/bruno-app/src/styles/globals.css | 1 +
6 files changed, 86 insertions(+), 12 deletions(-)
create mode 100644 packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js
create mode 100644 packages/bruno-app/src/components/BrunoSupport/index.js
diff --git a/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js b/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js
new file mode 100644
index 00000000..b919eda2
--- /dev/null
+++ b/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js
@@ -0,0 +1,20 @@
+import styled from 'styled-components';
+
+const StyledWrapper = styled.div`
+ color: var(--color-text);
+ .collection-options {
+ svg {
+ position: relative;
+ top: -1px;
+ }
+
+ .label {
+ cursor: pointer;
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+ }
+`;
+
+export default StyledWrapper;
diff --git a/packages/bruno-app/src/components/BrunoSupport/index.js b/packages/bruno-app/src/components/BrunoSupport/index.js
new file mode 100644
index 00000000..b7a878b7
--- /dev/null
+++ b/packages/bruno-app/src/components/BrunoSupport/index.js
@@ -0,0 +1,39 @@
+import React from "react";
+import Modal from "components/Modal/index";
+import {IconSpeakerphone, IconBrandTwitter} from "@tabler/icons";
+import StyledWrapper from "./StyledWrapper";
+
+const BrunoSupport = ({onClose}) => {
+ return (
+
+
+
+
+
+ );
+}
+
+export default BrunoSupport;
+
diff --git a/packages/bruno-app/src/components/Sidebar/MenuBar/index.js b/packages/bruno-app/src/components/Sidebar/MenuBar/index.js
index 6bebd225..bdc36ad2 100644
--- a/packages/bruno-app/src/components/Sidebar/MenuBar/index.js
+++ b/packages/bruno-app/src/components/Sidebar/MenuBar/index.js
@@ -1,14 +1,16 @@
-import React from 'react';
+import React, { useState } from 'react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { IconCode, IconFiles, IconUser, IconUsers, IconSettings, IconChevronsLeft, IconLifebuoy} from '@tabler/icons';
import { useDispatch } from 'react-redux';
-import { toggleLeftMenuBar } from 'providers/ReduxStore/slices/app'
+import { toggleLeftMenuBar } from 'providers/ReduxStore/slices/app';
+import BrunoSupport from 'components/BrunoSupport';
import StyledWrapper from './StyledWrapper';
const MenuBar = () => {
const router = useRouter();
const dispatch = useDispatch();
+ const [openBrunoSupport, setOpenBrunoSupport] = useState(false);
const getClassName = (menu) => {
return router.pathname === menu ? "active menu-item": "menu-item";
@@ -38,12 +40,13 @@ const MenuBar = () => {
*/}
-
+ setOpenBrunoSupport(true)}/>
dispatch(toggleLeftMenuBar())}>
+ {openBrunoSupport && setOpenBrunoSupport(false)}/>}
);
};
diff --git a/packages/bruno-app/src/components/Sidebar/index.js b/packages/bruno-app/src/components/Sidebar/index.js
index ae8282e0..5a832130 100644
--- a/packages/bruno-app/src/components/Sidebar/index.js
+++ b/packages/bruno-app/src/components/Sidebar/index.js
@@ -103,6 +103,9 @@ const Sidebar = () => {
{/* */}
{/* Need to ut github stars link here */}
+
+
+
v1.25.2
diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js
index b687e364..592a12b9 100644
--- a/packages/bruno-app/src/components/Welcome/index.js
+++ b/packages/bruno-app/src/components/Welcome/index.js
@@ -112,21 +112,29 @@ const Welcome = () => {
Links
-
-
Chrome Extension
+
-
-
Desktop App
+
-
-
Report Issues
+
{/*
Docs
*/}
-
-
-
Github
+
diff --git a/packages/bruno-app/src/styles/globals.css b/packages/bruno-app/src/styles/globals.css
index 41dcfd10..4fc0bed1 100644
--- a/packages/bruno-app/src/styles/globals.css
+++ b/packages/bruno-app/src/styles/globals.css
@@ -1,6 +1,7 @@
:root {
--color-brand: #546de5;
+ --color-text: rgb(52 52 52);
--color-sidebar-collection-item-active-indent-border: #d0d0d0;
--color-sidebar-collection-item-active-background: #e1e1e1;
--color-sidebar-background: #f3f3f3;