Skip to content

Commit abb0428

Browse files
committed
responsive title
1 parent d80b2a2 commit abb0428

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

src/Header.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Navbar, Nav } from "react-bootstrap";
55
const Header = () => (
66
<Navbar expand="md" variant="light" bg="light" sticky="top">
77
<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>
910
</Navbar.Brand>
1011
<Navbar.Toggle aria-controls="navbar-nav" />
1112
<Navbar.Collapse id="navbar-nav">

src/styles/index.scss

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ h1.center {
3535
left: 0;
3636
}
3737

38+
// reference https://medium.com/@zerox/keep-that-damn-footer-at-the-bottom-c7a921cb9551
39+
$footer-height: 3.5em;
40+
3841
.main-container {
3942
min-height: 100vh; /* will cover the 100% of viewport */
4043
overflow: hidden;
4144
display: block;
4245
position: relative;
43-
padding-bottom: 2.5em; /* height of your footer */
46+
padding-bottom: $footer-height; /* height of your footer */
4447
}
4548

4649
.container {
@@ -51,7 +54,7 @@ h1.center {
5154
position: absolute;
5255
bottom: 0;
5356
width: 100%;
54-
height: 2.5em;
57+
height: $footer-height;
5558

5659
display: flex;
5760
justify-content: center;
@@ -87,3 +90,17 @@ h1.center {
8790
transform: translateY(-50%);
8891
width: calc(100% - 20px);
8992
}
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+
}

0 commit comments

Comments
 (0)