Skip to content

Commit

Permalink
Add logo and icons (react-icons) for menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Benevanio committed Jan 10, 2023
1 parent 7f7aa77 commit fbac5f6
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 47 deletions.
115 changes: 71 additions & 44 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -1,66 +1,93 @@
//Variaveis globaus
$Background: #f7e8e8;
$Links: #5608a6;

* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
box-sizing: border-box;
padding: 0;
margin: 0;
scroll-behavior: smooth;
}

body {
background-color: $Background;
background: var(--color-bg);
}

a {
text-decoration: none;
color: $Links;
color: unset;
text-decoration: none;
}

.gradient_bg {
background: rgb(95, 215, 217);
background: radial-gradient(circle, rgba(95, 215, 217, 1) 0%, rgba(145, 45, 192, 1) 17%);
.gradient__bg {
background:-moz-radial-gradient(circle at 3% 25%, rgb(155, 172, 189) 0%, rgb(110, 141, 189) 25%);

/* safari 5.1+,chrome 10+ */
background:-webkit-radial-gradient(circle at 3% 25%, rgb(130, 162, 196) 0%, rgb(36, 111, 224) 25%);

/* opera 11.10+ */
background:-o-radial-gradient(circle at 3% 25%, rgb(175, 194, 214) 0%, rgb(54, 106, 185) 25%);

/* ie 10+ */
background:-ms-radial-gradient(circle at 3% 25%, rgb(185, 208, 233) 0%, rgb(170, 201, 248) 25%);

/* global 92%+ browsers support */
background:radial-gradient(circle at 3% 25%, rgb(118, 128, 139) 0%, rgb(146, 168, 201) 25%);
}

.gradient_text {
background: $Background;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
.gradient__text {
background: var(--gradient-text);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.section_paddind {
padding: 3rem 5rem;
.section__padding {
padding: 4rem 6rem;
}

.section_margin {
padding: 3rem 5rem;
.section__margin {
margin: 4rem 6rem;
}

.scale-up-center {
-webkit-animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
-webkit-animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes scale-up-center {
0% {
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}

@-webkit-keyframes scale-up-center {
0% {
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
@keyframes scale-up-center {
0% {
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
@keyframes scale-up-center {
0% {
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}

}

@media screen and (max-width: 700px) {
.section__padding {
padding: 4rem;
}

.section__margin {
margin: 4rem;
}
}

@media screen and (max-width: 550px) {
.section__padding {
padding: 4rem 2rem;
}

.section__margin {
margin: 4rem 2rem;
}
}
Binary file added src/assets/Logo.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 src/assets/logotipo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 27 additions & 2 deletions src/components/navbar/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
import React from 'react'
import React,{useState} from 'react'
import { RiMenu3Line, RiCloseLine } from 'react-icons/ri';

import './Navbar.scss'
import logo from '../../assets/logotipo.png'
const Navbar = () => {
const [menu, setMenu] = useState(false)
return (
<div>Navbar</div>
<div className="AI__navbar">
<div className="AI__navbar-links">
<div className="AI__navbar-links_logo">
<img src={logo} />
</div>
<div className="AI__navbar-links_container">
<p><a href="#home">Home</a></p>
<p><a href="#aicom">About IA?</a></p>
<p><a href="#possibility">Open-D</a></p>
<p><a href="#features">Cases</a></p>
<p><a href="#blog">Library</a></p>
</div>
<div className="AI__navbar-sign">
<p>Login</p>
<button type='button'>Sign Up</button>
</div>
</div>
<div className="AI__navbar-menu">
{menu ? <RiCloseLine size={28} onClick={() => setMenu(false)} /> : <RiMenu3Line size={28} onClick={() => setMenu(true)} />
}
</div>
</div>
)
}

Expand Down
62 changes: 62 additions & 0 deletions src/components/navbar/Navbar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
.AI__navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f0d291;
height: 80px;
padding: 2rem 6rem;
}

.AI__navbar-links {
flex: 1;
display: flex;
justify-content: flex-start;
align-items: center;
}

.AI__navbar-links_logo {
margin-right: 2rem;
}

.AI__navbar-links_logo img {
width: 62.56px;
height: 16.02px;
}

.AI__navbar-links_container {
display: flex;
flex-direction: row;
}

.AI__navbar-sign {
display: flex;
justify-content: flex-end;
align-items: center;
}

.AI__navbar-links_container p,
.AI__navbar-sign p,
.AI__navbar-menu_container p {
color: rgb(10, 10, 10);
font-family: var(--font-family);
font-weight: 700;
font-size: 18px;
line-height: 25px;
text-transform: capitalize;
margin: 0 1rem;
cursor: pointer;
}
.AI__navbar-sign button,
.AI__navbar-menu_container button{
padding: 0.5rem 1rem;
background: #f8ab06;
cursor: pointer;
border: none;
border-radius: 5px;
color: #fff;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-weight: 700;
font-size: 18px;
line-height: 25px;
outline: none;
}
2 changes: 1 addition & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--gradient-text: linear-gradient(89.97deg, #AE67FA 1.84%, #F49867 102.67%);
--gradient-bar: linear-gradient(103.22deg, #AE67FA -13.86%, #F49867 99.55%);

--color-bg: #040C18;
--color-bg: #f5f5fa;
--color-footer : #031B34;
--color-blog: #042c54;
--color-text: #81AFDD;
Expand Down

0 comments on commit fbac5f6

Please sign in to comment.