File tree Expand file tree Collapse file tree 4 files changed +16
-17
lines changed Expand file tree Collapse file tree 4 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const BtnToggleTheme = ({ className }) => {
14
14
15
15
return (
16
16
< Button className = { className + " btn-toggle" } onClick = { toggleTheme } >
17
- < ToggleThemeIcon style = { { marginTop : "10px" , fontSize : "25px" } } />
17
+ < ToggleThemeIcon style = { { fontSize : "25px" } } />
18
18
</ Button >
19
19
) ;
20
20
} ;
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ function Footer() {
17
17
< Col md = "4" >
18
18
</ Col >
19
19
20
- < Col md = "4" >
20
+ < Col md = "4" className = "footer-copyright" >
21
21
< h3 > Copyright © { year } Massimiliano Pronesti</ h3 >
22
22
</ Col >
23
23
24
- < Col md = "4" >
25
- < ul className = "footer-icons" >
24
+ < Col md = "4" className = "footer-social-icons" >
25
+ < ul >
26
26
< li className = "social-icons" >
27
27
< a className = "footer-social-icons"
28
28
href = "https://github.com/mspronesti"
Original file line number Diff line number Diff line change 1
1
import React , { useState } from "react" ;
2
2
import Navbar from "react-bootstrap/Navbar" ;
3
3
import Nav from "react-bootstrap/Nav" ;
4
- import Container from "react-bootstrap/Container" ;
5
4
import { Link } from "react-router-dom" ;
6
5
import BtnToggleTheme from "./BtnTottleTheme" ;
7
6
@@ -33,11 +32,6 @@ function NavBar() {
33
32
expand = "md"
34
33
className = { navColour ? "sticky" : "navbar" }
35
34
>
36
- < Container >
37
- < Navbar . Brand href = "/" className = "d-flex" >
38
- { /* <img src={logo} className="img-fluid logo" alt="brand" /> */ }
39
- </ Navbar . Brand >
40
-
41
35
< Navbar . Toggle
42
36
aria-controls = "responsive-navbar-nav"
43
37
onClick = { ( ) => {
@@ -48,6 +42,7 @@ function NavBar() {
48
42
< span />
49
43
< span />
50
44
</ Navbar . Toggle >
45
+
51
46
52
47
< Navbar . Collapse id = "responsive-navbar-nav" >
53
48
< Nav className = "mx-auto" defaultActiveKey = "#home" >
@@ -79,14 +74,9 @@ function NavBar() {
79
74
Projects
80
75
</ Nav . Link >
81
76
</ Nav . Item >
82
-
83
- < Nav . Item >
84
- < BtnToggleTheme className = "col-md-12" />
85
- </ Nav . Item >
86
-
87
77
</ Nav >
88
78
</ Navbar . Collapse >
89
- </ Container >
79
+ { ! expand && < BtnToggleTheme /> }
90
80
</ Navbar >
91
81
) ;
92
82
}
Original file line number Diff line number Diff line change 14
14
--bg-color : # ffffff ;
15
15
--text-color : # 24292e ;
16
16
17
- --nav-active : transparent ;
17
+ --nav-active : # f3f3f3 ;
18
18
--footer-background : transparent;
19
19
--footer-social-icons : black;
20
20
}
@@ -408,6 +408,7 @@ button:focus {
408
408
padding-left : 15px ;
409
409
}
410
410
411
+
411
412
.icon-colour {
412
413
color : var (--green-1 ) !important ;
413
414
}
@@ -422,6 +423,7 @@ button:focus {
422
423
padding-bottom : 8px !important ;
423
424
}
424
425
.footer-copywright {
426
+ flex : 1 ;
425
427
text-align : center !important ;
426
428
}
427
429
@@ -432,8 +434,14 @@ button:focus {
432
434
433
435
.footer-social-icons {
434
436
color : var (--footer-social-icons ) !important ;
437
+ display : flex !important ;
438
+ justify-content : center;
439
+ margin-top : 0.5rem ;
440
+ padding : 0 ;
441
+ font-size : 1.1rem ;
435
442
}
436
443
444
+
437
445
@media (max-width : 767px ) {
438
446
.footer-copywright {
439
447
text-align : center !important ;
@@ -516,6 +524,7 @@ button:focus {
516
524
color : var (--text-color ) !important ;
517
525
background-color : transparent !important ;
518
526
border-color : transparent !important ;
527
+ position : relative !important ;
519
528
}
520
529
.btn-toggle : hover {
521
530
color : var (--text-color ) !important ;
You can’t perform that action at this time.
0 commit comments