Skip to content

Commit

Permalink
[ADD] fga-eps-mds/2018.2-GamesBI#96 Search bar home page
Browse files Browse the repository at this point in the history
Co-authored-by: lucas <lmlucasmachadom@gmail.com>
Co-authored-by: augusto <augusto.vilarins@gmail.com>
Co-authored-by: Andre <andre.eduardo11@hotmail.com>
Co-authored-by: Ingrid <ingr.dcg@gmail.com>
  • Loading branch information
5 people committed Sep 25, 2018
1 parent 3b89aa7 commit 9ec5fac
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 41 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 19 additions & 26 deletions src/_nav.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,61 @@
export default {
items: [
{
name: 'Dashboard',
name: 'Início',
url: '/dashboard',
icon: 'icon-speedometer',
badge: {
variant: 'info',
text: 'NEW',
},
icon: 'icon-home',
},
{
title: true,
name: 'Theme',
name: 'Jogos',
wrapper: { // optional wrapper object
element: '', // required valid HTML5 element tag
attributes: {} // optional valid JS object with JS API naming ex: { className: "my-class", style: { fontFamily: "Verdana" }, id: "my-id"}
},
class: '' // optional class names space delimited list for title item ex: "text-center"
},
{
name: 'Colors',
url: '/theme/colors',
icon: 'icon-drop',
name: 'Tendências',
url: '/TrendingGames',
icon: 'icon-badge',
},
{
name: 'Typography',
url: '/theme/typography',
icon: 'icon-pencil',
name: 'Recentes',
url: '/base/progress-bar',
icon: 'icon-graph',
},
{
title: true,
name: 'Components',
wrapper: {
element: '',
attributes: {},
},
name: 'Horas jogadas',
url: '/theme/typography',
icon: 'icon-clock',
},
{
name: 'Base',
name: 'Gênero',
url: '/base',
icon: 'icon-puzzle',
children: [
{
name: 'Breadcrumbs',
name: 'Aventura',
url: '/base/breadcrumbs',
icon: 'icon-puzzle',
},
{
name: 'Cards',
name: 'Rpg',
url: '/base/cards',
icon: 'icon-puzzle',
},
{
name: 'Carousels',
name: 'Estratégia',
url: '/base/carousels',
icon: 'icon-puzzle',
},
{
name: 'Collapses',
name: 'Indie',
url: '/base/collapses',
icon: 'icon-puzzle',
},
{
name: 'Dropdowns',
name: 'Esportes',
url: '/base/dropdowns',
icon: 'icon-puzzle',
},
Expand Down Expand Up @@ -255,6 +248,6 @@ export default {
},
],
},

],
};
15 changes: 9 additions & 6 deletions src/containers/DefaultLayout/DefaultHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,22 @@ class DefaultHeader extends Component {
minimized={{ src: sygnet, width: 40, height: 40, alt: 'CoreUI Logo' }}
/>
<AppSidebarToggler className="d-md-down-none" display="lg" />

<Nav className="d-md-down-none" navbar>
<NavItem className="px-3">
<NavLink href="#/">Home</NavLink>
</NavItem>
<NavItem className="px-3">
<NavLink href="#/TrendingGames">Trending Games</NavLink>
</NavItem>

</Nav>
<div class="wrap">
<div className="search">
<input type="text" className="searchTerm" align="center" placeholder="O que você procura?" ></input>
<button type="submit" className="searchButton">
<i className="fa fa-search"></i>
</button>
</div>
</div>
<Nav className="ml-auto" navbar>

</Nav>

<AppAsideToggler className="d-md-down-none" />
{/*<AppAsideToggler className="d-lg-none" mobile />*/}
</React.Fragment>
Expand Down
74 changes: 74 additions & 0 deletions src/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,77 @@ font-family: 'Open Sans', sans-serif; }
.bg-white_04 {
background-color: rgba(255,255,255,0.4) !important;
}

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body{
background: #f2f2f2;
font-family: 'Open Sans', sans-serif;
}

.search {
width: 100%;
position: relative
}

.searchTerm {
float: left;
width: 100%;
border: 3px solid #00B4CC;
padding: 5px;
height: 36px;
border-radius: 5px;
outline: none;
color: #9DBFAF;
}

.searchTerm:focus{
color: #00B4CC;
}

.searchButton {
position: absolute;
right: -50px;
width: 40px;
height: 36px;
border: 1px solid #00B4CC;
background: #00B4CC;
text-align: center;
color: #fff;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
}

/*Resize the wrap to see the search bar change!*/
.wrap{
width: 10%;
position: absolute;
top: 50%;
left: 90%;
transform: translate(-50%, -50%);
}

.chart-wrapper_1 canvas {

width: 50%;
}


.brand-card-header .chart-wrapper_1 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; }

.callout .chart-wrapper_1 {
position: absolute;
top: 10px;
left: 50%;
float: right;
width: 50%; }

*[dir="rtl"] .callout .chart-wrapper_1 {
left: 0;
float: left; }
64 changes: 64 additions & 0 deletions src/scss/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
:root {
--blue: #20a8d8;
--indigo: #6610f2;
Expand Down Expand Up @@ -9904,5 +9905,68 @@ body {
.bg-white_04 {
background-color: rgba(255, 255, 255, 0.4) !important; }

body {
background: #f2f2f2;
font-family: 'Open Sans', sans-serif; }

.search {
width: 100%;
position: relative; }

.searchTerm {
float: left;
width: 100%;
border: 3px solid #00B4CC;
padding: 5px;
height: 36px;
border-radius: 5px;
outline: none;
color: #9DBFAF; }

.searchTerm:focus {
color: #00B4CC; }

.searchButton {
position: absolute;
right: -50px;
width: 40px;
height: 36px;
border: 1px solid #00B4CC;
background: #00B4CC;
text-align: center;
color: #fff;
border-radius: 5px;
cursor: pointer;
font-size: 20px; }

/*Resize the wrap to see the search bar change!*/
.wrap {
width: 10%;
position: absolute;
top: 50%;
left: 90%;
transform: translate(-50%, -50%); }

.chart-wrapper_1 canvas {
width: 50%; }

.brand-card-header .chart-wrapper_1 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; }

.callout .chart-wrapper_1 {
position: absolute;
top: 10px;
left: 50%;
float: right;
width: 50%; }

*[dir="rtl"] .callout .chart-wrapper_1 {
left: 0;
float: left; }

html body .app.flex-row.align-items-center {
height: 100vh; }
Loading

0 comments on commit 9ec5fac

Please sign in to comment.