-
Notifications
You must be signed in to change notification settings - Fork 1
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 #15 from uffsnlp/11
Implementa o Header
- Loading branch information
Showing
11 changed files
with
236 additions
and
16 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 +1 @@ | ||
import "./src/styles/global.scss"; | ||
import "./src/assets/scss/global.scss"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
$orange: #f23827; | ||
$orange-grey: #a64f47; | ||
$red: #a60303; |
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,10 @@ | ||
@import "bootstrap/scss/bootstrap-grid.scss"; | ||
|
||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap'); | ||
|
||
* { | ||
font-family: Roboto, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} |
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,40 @@ | ||
@import "../../assets/scss/variables"; | ||
|
||
.header { | ||
position: relative; | ||
width: 100%; | ||
height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
padding: 1rem; | ||
z-index: -2; | ||
|
||
&__image { | ||
position: relative; | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
&__title { | ||
font-weight: bolder; | ||
font-size: 2.5rem; | ||
background: linear-gradient(135deg, $red, $orange); | ||
-webkit-background-clip: text; | ||
background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
} | ||
|
||
&__subtitle { | ||
font-weight: 300; | ||
color: darken($color: $orange-grey, $amount: 30%); | ||
} | ||
|
||
svg { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 30vw; | ||
z-index: -1; | ||
} | ||
} |
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,106 @@ | ||
import React, { Component } from 'react'; | ||
import "./header.scss"; | ||
import HeaderImg from "../../assets/images/undraw_teacher_35j2.svg"; | ||
|
||
class Header extends Component { | ||
render() { | ||
return ( | ||
<header className="header"> | ||
<div className="container"> | ||
<div className="row"> | ||
<div className="col-md-6"> | ||
<h1 | ||
className="header__title" | ||
data-aos="fade-down" | ||
> | ||
{ this.props.title } | ||
</h1> | ||
|
||
<h3 | ||
className="header__subtitle" | ||
data-aos="fade-down" | ||
data-aos-delay="200" | ||
> | ||
{ this.props.subtitle } | ||
</h3> | ||
</div> | ||
|
||
<div className="col-md-6"> | ||
<img | ||
src={HeaderImg} | ||
alt="Grupo de Estudos em NLP - UFFS" | ||
className="header__image" | ||
data-aos="zoom-out" | ||
data-aos-delay="500" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{/* <svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 100 100" | ||
preserveAspectRatio="none" | ||
> | ||
<defs> | ||
<linearGradient id="shadow1" x1="0%" y1="0%" x2="100%" y2="0%"> | ||
<stop | ||
offset="0%" | ||
style={{ | ||
stopColor: "rgba(255,255,255,0.50)", | ||
stopOpacity: 1, | ||
}} | ||
/> | ||
<stop | ||
offset="100%" | ||
style={{ | ||
stopColor: "rgba(255, 174, 166, 0.45)", | ||
stopOpacity: 1, | ||
}} | ||
/> | ||
</linearGradient> | ||
</defs> | ||
<polygon fill="url(#shadow1)" points="0,60 100,0 100,100 0,100"/> | ||
</svg> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 100 100" | ||
preserveAspectRatio="none" | ||
> | ||
<defs> | ||
<linearGradient id="shadow2" x1="0%" y1="0%" x2="100%" y2="0%"> | ||
<stop | ||
offset="0%" | ||
style={{ | ||
stopColor: "rgba(255, 174, 166, 0.45)", | ||
stopOpacity: 1, | ||
}} | ||
/> | ||
<stop | ||
offset="100%" | ||
style={{ | ||
stopColor: "rgba(255, 255, 255, 0.50)", | ||
stopOpacity: 1, | ||
}} | ||
/> | ||
</linearGradient> | ||
</defs> | ||
<polygon fill="url(#shadow2)" points="0,80 100,20 100,100 0,100"/> | ||
</svg> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 100 100" | ||
preserveAspectRatio="none" | ||
> | ||
<polygon fill="white" points="0,100 100,40 100,100 0,100"/> | ||
</svg> */} | ||
</header> | ||
); | ||
} | ||
} | ||
|
||
export default Header; |
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
This file was deleted.
Oops, something went wrong.