Skip to content

Commit

Permalink
Merge pull request #388 from PabloWolf96/dev
Browse files Browse the repository at this point in the history
Endpoint to search for github user
  • Loading branch information
claretnnamocha authored Sep 3, 2021
2 parents 32423cf + 479aefe commit 30aa47a
Show file tree
Hide file tree
Showing 9 changed files with 394 additions and 246 deletions.
136 changes: 68 additions & 68 deletions client/src/components/Apps/Figma/Figma.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
import React, { Component } from "react";
import "./../../searchbar.component";
import SearchBar from "./../../searchbar.component";
import FigmaAbout from "./about-secttion/FigmaAbout";
import FigmaMessages from "./messages-section/FigmaMessages";
import logo from "./images/fignaLogo.png";
import "./css/Figma.css";
// import ToolsHeader from "../../toolsheader/toolsheader";

const initialState = {
page: "about",
};
class Figma extends Component {
constructor() {
super();
this.state = initialState;
}

render() {
const localHostUrl =
"https://www.figma.com/oauth?client_id=V2IvPlEApDfBT9uNS5Rbrf&redirect_uri=http://localhost:3000/figma/authenticate/&scope=file_read&state=state&response_type=code";
const deployedUrl =
"https://www.figma.com/oauth?client_id=V2IvPlEApDfBT9uNS5Rbrf&redirect_uri=http://externaltools.zuri.chat/figma/authenticate/&scope=file_read&state=state&response_type=code";

return (
<>
{/* <ToolsHeader /> */}
<SearchBar />
<div className="Start-title">
<div className="figmalogo-container">
<img src={logo} />
</div>
<h4 className="Logo-tag">Figma</h4>
<div className="arrow-down">^</div>
</div>
<div className="mb-1.5 fig-connect-btn">
<a
className="px-4 py-2 bg-gray-700 text-white rounded-sm"
href={deployedUrl}
>
Connect to figma
</a>
</div>
<div className="welcome-nav">
<h4
onClick={() => {
this.setState({ page: "messages" });
}}
className={this.state.page === "about" ? "" : "selected"}
>
Messages
</h4>
<h4
onClick={() => {
this.setState({ page: "about" });
}}
className={this.state.page === "about" ? "selected" : ""}
>
About
</h4>
</div>
{this.state.page === "about" ? <FigmaAbout /> : <FigmaMessages />}
</>
);
}
}

export default Figma;
import React, { Component } from "react";
import "./../../searchbar.component";
import SearchBar from "./../../searchbar.component";
import FigmaAbout from "./about-secttion/FigmaAbout";
import FigmaMessages from "./messages-section/FigmaMessages";
import logo from "./images/fignaLogo.png";
import "./css/Figma.css";
// import ToolsHeader from "../../toolsheader/toolsheader";

const initialState = {
page: "about",
};
class Figma extends Component {
constructor() {
super();
this.state = initialState;
}

render() {
const localHostUrl =
"https://www.figma.com/oauth?client_id=V2IvPlEApDfBT9uNS5Rbrf&redirect_uri=http://localhost:3000/figma/authenticate/&scope=file_read&state=state&response_type=code";
const deployedUrl =
"https://www.figma.com/oauth?client_id=V2IvPlEApDfBT9uNS5Rbrf&redirect_uri=http://externaltools.zuri.chat/figma/authenticate/&scope=file_read&state=state&response_type=code";

return (
<>
{/* <ToolsHeader /> */}
<SearchBar />
<div className="Start-title">
<div className="figmalogo-container">
<img src={logo} />
</div>
<h4 className="Logo-tag">Figma</h4>
<div className="arrow-down">^</div>
</div>
<div className="mb-1.5 fig-connect-btn">
<a
className="px-4 py-2 bg-gray-700 text-white rounded-sm"
href={deployedUrl}
>
Connect to figma
</a>
</div>
<div className="welcome-nav">
<h4
onClick={() => {
this.setState({ page: "messages" });
}}
className={this.state.page === "about" ? "" : "selected"}
>
Messages
</h4>
<h4
onClick={() => {
this.setState({ page: "about" });
}}
className={this.state.page === "about" ? "selected" : ""}
>
About
</h4>
</div>
{this.state.page === "about" ? <FigmaAbout /> : <FigmaMessages />}
</>
);
}
}

export default Figma;
136 changes: 68 additions & 68 deletions client/src/components/Apps/Figma/css/Figma.css
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

*{
font-family: 'Lato', sans-serif;

}
.Start-title {
display: flex;
padding: 20px 0 20px 20px;
justify-content: flex-start;
align-items: center;
position :relative;
}

.Start-title h4 {
font-size: 25px;
margin-left: 5px;
font-weight: 700;
}

.Start-title .arrow-down {
transform: rotate(180deg) translateX(-5px);
font-size: 15px;
}

.figmalogo-container {
width: 44px;

}

.figmalogo-container img {
border-radius: 8px;
}

.welcome-nav {
display: flex;
justify-content: flex-start;
align-items: center;
height: auto;
width: 100%;
border-top: .7px solid #cfcfcf;
border-bottom: .7px solid #cfcfcf;
padding-left: 20px;
}
.welcome-nav h4 {
padding: 10px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
}

.selected {
border-bottom: 1px solid #0ACF83;
}

.welcome-nav h4:hover {
border-bottom: 1px solid #0ACF83;
}

.fig-connect-btn {
position: absolute;
top: 95px;
left: 180px;

}

.fig-connect-btn a {
background-color: #0ACF83 ;
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

*{
font-family: 'Lato', sans-serif;

}
.Start-title {
display: flex;
padding: 20px 0 20px 20px;
justify-content: flex-start;
align-items: center;
position :relative;
}

.Start-title h4 {
font-size: 25px;
margin-left: 5px;
font-weight: 700;
}

.Start-title .arrow-down {
transform: rotate(180deg) translateX(-5px);
font-size: 15px;
}

.figmalogo-container {
width: 44px;

}

.figmalogo-container img {
border-radius: 8px;
}

.welcome-nav {
display: flex;
justify-content: flex-start;
align-items: center;
height: auto;
width: 100%;
border-top: .7px solid #cfcfcf;
border-bottom: .7px solid #cfcfcf;
padding-left: 20px;
}
.welcome-nav h4 {
padding: 10px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
}

.selected {
border-bottom: 1px solid #0ACF83;
}

.welcome-nav h4:hover {
border-bottom: 1px solid #0ACF83;
}

.fig-connect-btn {
position: absolute;
top: 95px;
left: 180px;

}

.fig-connect-btn a {
background-color: #0ACF83 ;
}
Loading

0 comments on commit 30aa47a

Please sign in to comment.