Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Figma Navbar #330

Merged
merged 5 commits into from
Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 42 additions & 4 deletions client/src/components/Apps/Figma/Figma.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@
import React from "react";
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'


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



render (){
return <>
<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='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 />
}

</>;
}
}

const Figma = () => {
return <div>this is the figma page</div>;
};

export default Figma;
14 changes: 14 additions & 0 deletions client/src/components/Apps/Figma/about-secttion/FigmaAbout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import logo from "./../images/fignaLogo.png"
import ss1 from "./../images/ss1.png"
import ss2 from "./../images/ss2.png"
import ss3 from "./../images/ss3.png"
import './../css/about.css'

const FigmaAbout = () => {
return <>
<p>This is the about section</p>
</>
}

export default FigmaAbout
58 changes: 58 additions & 0 deletions client/src/components/Apps/Figma/css/Figma.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@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;
}

.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;
}

6 changes: 6 additions & 0 deletions client/src/components/Apps/Figma/css/about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@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;

}
7 changes: 7 additions & 0 deletions client/src/components/Apps/Figma/css/messages.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@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;

}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/components/Apps/Figma/images/foo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/components/Apps/Figma/images/ss1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/components/Apps/Figma/images/ss2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/components/Apps/Figma/images/ss3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions client/src/components/Apps/Figma/messages-section/FigmaMessages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import ss1 from './../images/ss1.png'
import logo from './../images/fignaLogo.png'
import './../css/messages.css'

const FigmaMessages = () => {
return <>
<p>This is the message section .</p>
</>
}



export default FigmaMessages