File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import { Navbar, Nav } from "react-bootstrap";
5
5
const Header = ( ) => (
6
6
< Navbar expand = "md" variant = "light" bg = "light" sticky = "top" >
7
7
< Navbar . Brand as = { NavLink } exact to = "/" >
8
- ACM Siggraph University of Illinois
8
+ < span className = "full-brand" > ACM SIGGRAPH University of Illinois</ span >
9
+ < span className = "abbrev-brand" > SIGGRAPH UIUC</ span >
9
10
</ Navbar . Brand >
10
11
< Navbar . Toggle aria-controls = "navbar-nav" />
11
12
< Navbar . Collapse id = "navbar-nav" >
Original file line number Diff line number Diff line change @@ -35,12 +35,15 @@ h1.center {
35
35
left : 0 ;
36
36
}
37
37
38
+ // reference https://medium.com/@zerox/keep-that-damn-footer-at-the-bottom-c7a921cb9551
39
+ $footer-height : 3.5em ;
40
+
38
41
.main-container {
39
42
min-height : 100vh ; /* will cover the 100% of viewport */
40
43
overflow : hidden ;
41
44
display : block ;
42
45
position : relative ;
43
- padding-bottom : 2.5 em ; /* height of your footer */
46
+ padding-bottom : $footer-height ; /* height of your footer */
44
47
}
45
48
46
49
.container {
@@ -51,7 +54,7 @@ h1.center {
51
54
position : absolute ;
52
55
bottom : 0 ;
53
56
width : 100% ;
54
- height : 2.5 em ;
57
+ height : $footer-height ;
55
58
56
59
display : flex ;
57
60
justify-content : center ;
@@ -87,3 +90,17 @@ h1.center {
87
90
transform : translateY (-50% );
88
91
width : calc (100% - 20px );
89
92
}
93
+
94
+ .full-brand {
95
+ display : block ;
96
+ @media (max-width : 768px ) {
97
+ display : none ;
98
+ }
99
+ }
100
+
101
+ .abbrev-brand {
102
+ display : none ;
103
+ @media (max-width : 768px ) {
104
+ display : block ;
105
+ }
106
+ }
You can’t perform that action at this time.
0 commit comments