Skip to content

Commit

Permalink
theme base
Browse files Browse the repository at this point in the history
  • Loading branch information
Thimy Kieu committed Sep 6, 2018
1 parent 271bf35 commit 9e19026
Show file tree
Hide file tree
Showing 30 changed files with 1,789 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ build/Release
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
output/


**/.DS_Store
venv/
2 changes: 2 additions & 0 deletions articles/2018-08-28-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ authors: Open Data Team
summary: Just a sample article
# status: draft
---

test
15 changes: 15 additions & 0 deletions pages/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Frequently asked questions
date: 2018-08-28 18:00
image: https://placehold.it/1920x1080
tags:
- faq
slug: faq
lang: en
authors: Open Data Team
summary: Frequently asked questions
---


## Questions
Knock knock.
4 changes: 2 additions & 2 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

DEFAULT_LANG = 'en'

# THEME = 'theme'
THEME = 'theme'

PATH = os.path.dirname(__file__)
OUTPUT_PATH = os.path.join(PATH, 'output')
Expand Down Expand Up @@ -115,5 +115,5 @@
SOCIAL = (
('github', 'https://github.com/opendatateam'),
('twitter', 'https://twitter.com/udata_project'),
('Gitter', 'https://gitter.im/opendatateam/udata'),
('gitter', 'https://gitter.im/opendatateam/udata'),
)
29 changes: 29 additions & 0 deletions theme/static/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@font-face {
font-family: "Source Sans Pro";
src: url("../fonts/Source Sans Pro/SourceSansPro-Regular.otf");
font-weight: 400;
}

@font-face {
font-family: "Source Sans Pro";
src: url("../fonts/Source Sans Pro/SourceSansPro-Bold.otf");
font-weight: 800;
}

@font-face {
font-family: "Source Sans Pro";
src: url("../fonts/Source Sans Pro/SourceSansPro-It.otf");
font-style: italic;
}

@font-face {
font-family: "Montserrat";
src: url("../fonts/Montserrat/Montserrat-Regular.ttf");
font-weight: 400;
}

@font-face {
font-family: "Montserrat";
src: url("../fonts/Montserrat/Montserrat-Bold.ttf");
font-weight: 800;
}
12 changes: 12 additions & 0 deletions theme/static/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.hero {
background: linear-gradient(to top, #002E82, #005BA3,#76AADB);
}

.hero img {
height: 200px;
}

ul {
line-height: 1.5em;
padding-left: 1em;
}
99 changes: 99 additions & 0 deletions theme/static/css/nav.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.navbar {
border-bottom: 1px solid var(--theme-box-shadow);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
width: 100%;
background: #fff;
z-index: 100;
}

.nav-fixed {
position: fixed;
top: 0;
}

.navbar__container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: center;
padding: 1em;
}

.navbar__home {
height: 40px;
}

.navbar__logo {
height: 100%;
}

.nav__links {
display: inline-block;
margin: 0;
padding: 0;
list-style-type: none;
}

.nav__item {
padding: 0;
display: inline-block;
}

.nav__item a,
.nav__item .dropdown {
text-decoration: none;
color: var(--black);
padding: 0.4em 0.8em;
border-radius: 3px;
}

.nav__links a::after {
content: none;
}

.nav__item a:hover,
.nav__item .dropdown:hover {
background: var(--lighter-grey);
}

.nav__item a.active {
background: var(--theme-primary);
color: var(--white);
}

a.navbar__home {
font-family: 'Evolventa';
display: flex;
align-items: center;
color: var(--almost-black);
letter-spacing: 0.05em;
text-decoration: none;
}

.navbar__home img {
vertical-align: middle;
}

.navbar__logo {
margin-right: 0.8em;
}

.navbar__gouvfr {
height: 18.4px;
}

span.navbar__domain {
font-weight: 400;
color: var(--theme-dark-text);
}

@media (--smaller-than-tablet) {
.navbar__container {
flex-direction: column;
align-items: flex-start;
}

.nav__links {
padding-top: 1em;
}
}
Loading

0 comments on commit 9e19026

Please sign in to comment.