Skip to content

Commit

Permalink
Merge pull request magrathealabs#8 from peterbrendel/front-main
Browse files Browse the repository at this point in the history
Front main
  • Loading branch information
Peter Brendel authored Sep 16, 2020
2 parents 765468e + 9c372e4 commit 1a08177
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 26 deletions.
11 changes: 6 additions & 5 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
}
}

.teste {
font-size: 120px;
background-color: aqua;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
Expand All @@ -41,3 +36,9 @@
transform: rotate(360deg);
}
}

.Card-folder {
margin-top: 20px;
display: flex;
justify-content: center;
}
63 changes: 61 additions & 2 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,71 @@
import React from 'react';
import React, { useState } from 'react';
import './App.css';
import Navbar from './components/navbar';
import Navbar from './components/navbar/Navbar';
import CardDeck from 'react-bootstrap/CardDeck';
import Card from './components/card/Card';


function App() {

const [tags, setTags] = useState(
[
{
variant:'secondary',
text: 'Javascript'
},
{
variant:'success',
text: 'C++'
},
{
variant:'secondary',
text: "Ana"
},
{
variant:'light',
text: "ovo"
},
{
variant:'light',
text: "ovo"
}
]
);

return (
<div className="App">
<Navbar/>
<CardDeck className="Card-folder">
<Card
repository="Test Repo"
author="unkown"
readme="Little experimental text to check if card is doing ok"
tags={tags}/>

<Card
repository="Test Repo"
author="unkown"
readme="Little experimental text to check if card is doing ok"
tags={tags}/>

<Card
repository="Test Repo"
author="unkown"
readme="Little experimental text to check if card is doing ok"
tags={tags}/>

<Card
repository="Test Repo"
author="unkown"
readme="Little experimental text to check if card is doing ok"
tags={tags}/>

<Card
repository="Test Repo"
author="unkown"
readme="Little experimental text to check if card is doing ok"
tags={tags}/>
</CardDeck>
</div>
);
}
Expand Down
31 changes: 31 additions & 0 deletions frontend/src/components/navbar/Navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Navbar, Form, InputGroup, FormControl, Button } from 'react-bootstrap';
import React from 'react';
import Image from './github';

export default () => {
return (
<>
<Navbar className="bg-dark justify-content-between">
<Form inline>
<Navbar.Brand href="#home">
<Image/>
</Navbar.Brand>
<InputGroup>
<InputGroup.Prepend>
<InputGroup.Text id="basic-addon1">/</InputGroup.Text>
</InputGroup.Prepend>
<FormControl
placeholder="Username"
aria-label="Username"
aria-describedby="basic-addon1"
/>
<Button type="search" style={{ "border-radius": "0px 5px 5px 0px"}}>Search Repos</Button>
</InputGroup>
</Form>
<Form inline>
<Button type="login">Login with Github</Button>
</Form>
</Navbar>
</>
);
}
38 changes: 19 additions & 19 deletions frontend/src/components/navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ import Image from './github';
export default () => { return (
<>
<Navbar className="bg-dark justify-content-between">
<Form inline>
<Navbar.Brand href="#home">
<Image/>
</Navbar.Brand>
<InputGroup>
<InputGroup.Prepend>
<InputGroup.Text id="basic-addon1">/</InputGroup.Text>
</InputGroup.Prepend>
<FormControl
placeholder="Username"
aria-label="Username"
aria-describedby="basic-addon1"
/>
<Button type="search" style={{ "border-radius": "0px 5px 5px 0px"}}>Search Repos</Button>
</InputGroup>
</Form>
<Form inline>
<Button type="login">Login with Github</Button>
</Form>
<Form inline>
<Navbar.Brand href="#home">
<Image/>
</Navbar.Brand>
<InputGroup>
<InputGroup.Prepend>
<InputGroup.Text id="basic-addon1">/</InputGroup.Text>
</InputGroup.Prepend>
<FormControl
placeholder="Username"
aria-label="Username"
aria-describedby="basic-addon1"
/>
<Button type="search" style={{ "border-radius": "0px 5px 5px 0px"}}>Search</Button>
</InputGroup>
</Form>
<Form inline>
<Button type="login">Login with Github</Button>
</Form>
</Navbar>
</>
);}

0 comments on commit 1a08177

Please sign in to comment.