-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from isaacRaphael/dev
Feature : Figma Navbar
- Loading branch information
Showing
11 changed files
with
141 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
client/src/components/Apps/Figma/about-secttion/FigmaAbout.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
14
client/src/components/Apps/Figma/messages-section/FigmaMessages.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |