Skip to content

Commit

Permalink
Merge pull request #10 from mjashanks/master
Browse files Browse the repository at this point in the history
REVAMP WEBSITE
  • Loading branch information
KadeMorton authored Oct 5, 2017
2 parents 1c50815 + 8f4930c commit a967734
Show file tree
Hide file tree
Showing 24 changed files with 248 additions and 35 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.sass-cache/
_site
.jekyll-metadata/
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DEPENDENCIES
tzinfo-data

RUBY VERSION
ruby 2.3.1p112
ruby 2.3.5p376

BUNDLED WITH
1.14.6
1.15.4
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ gems:
exclude:
- Gemfile
- Gemfile.lock

sass:
sass_dir: _sass
style: :compressed

defaults:
-
scope:
path: "" # an empty string here means all files in the project
values:
layout: "default"
9 changes: 9 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<footer>
<div id="footer-container">
<a href="https://www.facebook.com/aletheiaf/"><i class="fa fa-facebook-official" aria-hidden="true"></i></a>
<a href="https://twitter.com/aletheia_f"><i class="fa fa-twitter" aria-hidden="true"></i></a>
<a href="https://aletheiafoundation.slack.com"><i class="fa fa-slack" aria-hidden="true"></i></a>
<a href="https://github.com/aletheia-foundation"><i class="fa fa-github" aria-hidden="true"></i></a>
<a href="mailto:[email protected]"><i class="fa fa-envelope-o" aria-hidden="true"></i>
</div>
</footer>
13 changes: 13 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<head>
<meta charset="utf-8">
<title>Aletheia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.ico"/>
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Playfair+Display+SC" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
{% if page.stylesheet %}
<link rel="stylesheet" href="/css/{{ page.stylesheet }}.css" type="text/css">
{% elsif layout.stylesheet %}
<link rel="stylesheet" href="/css/{{ layout.stylesheet }}.css" type="text/css">
{% endif %}
</head>
7 changes: 7 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<header>
<a href="/">Home</a>
<a href="https://github.com/aletheia-foundation/aletheia-app">Download</a>
<a href="/about">About</a>
<a href="#">Blog</a>
<a href="https://github.com/aletheia-foundation/aletheia-admin">Get Involved</a>
</header>
26 changes: 26 additions & 0 deletions _layouts/blogpost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
stylesheet: blogpost
---

<!DOCTYPE html>
<html>

{% include head.html %}

<body>

{% include header.html %}

<main>
<div id="post-container">

{{ content }}

</div>
</main>

{% include footer.html %}

</body>
</html>

5 changes: 5 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
stylesheet: none
---

{{ content }}
25 changes: 0 additions & 25 deletions _posts/2017-03-06-welcome-to-jekyll.markdown

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: blogpost
title: "Aletheia at the Mozilla Global Sprint 2017"
date: 2017-06-04 19:23:11 +1000
categories: Aletheia
Expand Down
20 changes: 20 additions & 0 deletions _sass/common.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

html
width: 100%
min-height: 100%
margin: 0
padding: 0


body
width: 100%
height: 100%
/* https://pixabay.com/en/landscape-forest-trees-jungle-2584127/ */
background-image: url("/images/bg4.jpg")
background-size: 100% 100%
background-attachment: fixed
margin: 0
padding: 0

$aletheia_grey: rgba(130,130,131,1)
$aletheia_darkgreen: rgba(26,170,90,1)
27 changes: 27 additions & 0 deletions _sass/footer.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

footer
position: fixed
bottom: 0
left: 0
height: 30px
background: black
width: 100%


#footer-container
margin: auto
position: relative
top: 3px
width: 100%
text-align: center


#footer-container i
margin: 0 20px
color: $aletheia_grey
font-size: 24px
vertical-align: middle


#footer-container i:hover
color: whitesmoke
28 changes: 28 additions & 0 deletions _sass/header.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

header
position: fixed
top: 0
left: 0
height: 34px
background: black
width: 100%
text-align: right
font-family: 'Open Sans', sans-serif
z-index: 1


header a
color: $aletheia_grey
border-style: solid
border-width: 0 1px 0 0
text-decoration: none
font-size: 14pt
padding: 4px 30px
position: relative
top: 5px
font-weight: bold


header a:hover
color: whitesmoke
border-color: $aletheia_grey
2 changes: 1 addition & 1 deletion about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: page
layout: blogpost
title: About
permalink: /about/
---
Expand Down
29 changes: 29 additions & 0 deletions css/blogpost.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# Front matter comment to ensure Jekyll properly reads file.
---

@import "common"
@import "header"
@import "footer"

main
min-height: calc(100% - 64px)
position: relative
top: 34px
width: 100%
color: #555f61
font-size: 13pt

#post-container
/*height minus header and footer*/
min-height: calc(100% - 64px)
background: white
width: 900px
font-family: Calibri, sans-serif
padding: 20px
margin: auto

h1, h2, h3, h4, h5
color: $aletheia_darkgreen


35 changes: 35 additions & 0 deletions css/landing.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# Front matter comment to ensure Jekyll properly reads file.
---

@import "common"
@import "header"
@import "footer"

main
position: fixed
top: 20%
left: 0
width: 100%

#mid-section-container
padding: 20px
background: rgba(255, 255, 255, 0.8)
width: 700px
margin: auto

#logo-container
margin-left: auto
margin-right: auto

#logo-container img
width: 200px
display: block
margin: auto

#title
font-size: 40px
color: $aletheia_darkgreen
text-align: center
margin-top: 35px
font-family: 'Calibri', sans-serif
Binary file added favicon.ico
Binary file not shown.
Binary file added images/Aletheia_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Aletheia_Logo_200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/aletheia_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/aletheia_square_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Aletheia
stylesheet: landing
layout: null
---

<!DOCTYPE html>
<html>

{% include head.html %}

<body>

{% include header.html %}

<main>
<div id="mid-section-container">

<div id="logo-container">
<img src="images/Aletheia_Logo_200.png">
</div>

<div id="title">
A Decentralised, Open Access, <br/>Publishing Platform for Scientific Research
</div>

</div>
</main>

{% include footer.html %}

</body>
</html>
6 changes: 0 additions & 6 deletions index.md

This file was deleted.

0 comments on commit a967734

Please sign in to comment.