Skip to content

Commit a734a27

Browse files
authored
Merge pull request #26 from cmu-delphi/header
Header / Footer
2 parents 9e7f383 + 255fc1e commit a734a27

26 files changed

+285
-21
lines changed

config.toml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,37 @@ relativeURLs = false
99

1010
[permalinks]
1111
post = "/:year/:month/:day/:slug/"
12-
1312
[[menu.main]]
14-
identifier = "main"
15-
name = "Delphi"
16-
url = "/"
13+
identifier = "about"
14+
name = "About"
15+
url = "/about"
16+
post = "angle-down"
17+
weight = 1
18+
[[menu.main]]
19+
identifier = "team"
20+
parent = "about"
21+
name = "Team"
22+
url = "/about/team"
1723
weight = 1
1824
[[menu.main]]
1925
name = "COVIDcast"
20-
url = "https://covidcast.cmu.edu"
26+
pre = "map"
27+
url = "/covidcast"
2128
weight = 2
22-
[[menu.main]]
23-
name = "Data"
24-
url = "https://cmu-delphi.github.io/delphi-epidata/"
25-
weight = 3
2629
[[menu.main]]
2730
name = "Blog"
31+
pre = "blog"
2832
url = "/blog"
29-
weight = 4
33+
weight = 3
3034
[[menu.main]]
3135
name = "GitHub"
36+
pre = "github"
3237
url = "https://github.com/cmu-delphi/"
38+
weight = 4
39+
[[menu.main]]
40+
name = "API"
41+
pre = "api"
42+
url = "https://cmu-delphi.github.io/delphi-epidata/"
3343
weight = 5
3444

3545
[params]

static/font-awesome/angle-down.svg

Lines changed: 1 addition & 0 deletions
Loading

static/font-awesome/api.svg

Lines changed: 1 addition & 0 deletions
Loading

static/font-awesome/blog.svg

Lines changed: 1 addition & 0 deletions
Loading

static/font-awesome/bookmark.svg

Lines changed: 1 addition & 0 deletions
Loading

static/font-awesome/github.svg

Lines changed: 1 addition & 0 deletions
Loading

static/font-awesome/map.svg

Lines changed: 1 addition & 0 deletions
Loading

themes/delphi/assets/css/main.scss

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
// 1. Your custom variables and variable overwrites.
22
// $global-link-color: #DA7D02;
33

4+
// Font
5+
$global-font-family: "Open Sans", Roboto, Arial, sans-serif;
6+
7+
// Breakpoints:
8+
$breakpoint-small: 715px;
9+
10+
// Navbar
11+
$navbar-nav-item-padding-horizontal: 0px;
12+
$navbar-nav-item-height: 35px;
13+
$navbar-nav-item-color: #505565;
14+
$navbar-background: none;
15+
$navbar-dropdown-padding: 10px;
16+
$navbar-dropdown-nav-item-color: #232735;
17+
$nav-default-item-active-color: red;
18+
19+
$button-padding-horizontal: 0px;
20+
$button-line-height: 0px;
21+
22+
23+
// Table (footer)
24+
$table-cell-padding-vertical: 4px;
25+
$table-header-cell-color: white;
26+
427
// 2. Import default variables and available mixins.
528
@import './node_modules/uikit/src/scss/variables-theme.scss';
629
@import './node_modules/uikit/src/scss/mixins-theme.scss';
@@ -11,4 +34,102 @@
1134
// 4. Import UIkit.
1235
@import './node_modules/uikit/src/scss/uikit-theme.scss';
1336

37+
1438
@import 'custom';
39+
40+
// Site-wide
41+
.content {
42+
margin: 20px 10%;
43+
max-width: 1200px;
44+
}
45+
46+
.delphi-text-logo {
47+
background-color: white;
48+
color: #F03F3F !important;
49+
font-size: 16px !important;
50+
font-weight: 700;
51+
line-height: 18px;
52+
padding: 5px 10px;
53+
}
54+
55+
svg {
56+
max-height: 18px;
57+
}
58+
59+
.inline-svg {
60+
display: inline-block;
61+
fill: #505565;
62+
width: 18px;
63+
padding: 0 9px 0 5px;
64+
}
65+
66+
// Navbar
67+
.nav-active {
68+
border-bottom: 2px solid #F03F3F !important;
69+
}
70+
.uk-navbar-container {
71+
box-shadow: 0 3px 5px -1px rgba(0,0,0,.15);
72+
}
73+
.uk-navbar-left {
74+
margin: 40px 10% 0 10%;
75+
}
76+
.uk-navbar-nav>li {
77+
padding-left: 10px;
78+
padding-right: 20px;
79+
}
80+
.uk-navbar-dropdown-bottom-left {
81+
margin-left: -20px;
82+
margin-top: 3px;
83+
}
84+
85+
.mobile-nav {
86+
height: 20px;
87+
padding: 23px;
88+
border-bottom: 1px solid #d2d2d2;
89+
}
90+
.uk-navbar-toggle {
91+
float:right;
92+
margin-top: -10px;
93+
}
94+
.dropdown-mobile {
95+
left: 0 !important;
96+
padding: 0;
97+
width: 100%;
98+
}
99+
.menu-element {
100+
border-top: 1px solid #d2d2d2;
101+
font-weight: 400;
102+
padding: 20px 0 20px 40px;
103+
}
104+
.menu-element.menu-parent {
105+
font-weight: 600;
106+
}
107+
.menu-element.menu-child {
108+
padding-left: 64px;
109+
}
110+
111+
// Footer
112+
.footer {
113+
background-color: #232735;
114+
color: white;
115+
font-size: 12px;
116+
padding: 50px 20% 20px 20%;
117+
}
118+
.footer .footer-header {
119+
font-weight: 700;
120+
text-transform: uppercase;
121+
}
122+
.footer a {
123+
color: white;
124+
text-decoration: none;
125+
}
126+
.footer-small {
127+
text-align: center;
128+
font-size: 14px;
129+
}
130+
.footer-small .footer-header {
131+
padding-top: 30px;
132+
}
133+
.footer-small div {
134+
padding-top: 10px;
135+
}

themes/delphi/layouts/_default/baseof.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
{{ partial "head.html" . }}
55
<body>
66
{{ partial "nav.html" . }}
7-
{{ partial "header.html" . }}
8-
<div>
9-
{{ block "main" . }}
10-
{{ end }}
7+
<div class="content">
8+
{{ partial "header.html" . }}
9+
<div>
10+
{{ block "main" . }}
11+
{{ end }}
12+
</div>
1113
</div>
1214
{{ partial "footer.html" . }}
1315
</body>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a class="delphi-text-logo" href="https://delphi.cmu.edu/">DELPHI</a>

0 commit comments

Comments
 (0)