2016-05-21 20:35:59 +01:00
|
|
|
from collections import namedtuple
|
2016-05-29 23:23:55 +01:00
|
|
|
from random import shuffle
|
2016-05-21 20:35:59 +01:00
|
|
|
|
|
|
|
|
2016-05-29 23:23:55 +01:00
|
|
|
SocialLink = namedtuple("SocialLink", ["name", "url", "icon"])
|
|
|
|
ProjectLink = namedtuple("ProjectLink", ["name", "url", "image"])
|
2016-05-21 20:35:59 +01:00
|
|
|
|
|
|
|
|
2016-05-29 23:23:55 +01:00
|
|
|
def social():
|
2016-05-21 20:35:59 +01:00
|
|
|
return {
|
|
|
|
"github": SocialLink("GitHub", "https://github.com/RealOrangeOne", "fa-github"),
|
|
|
|
"twitter": SocialLink("Twitter", "https://twitter.com/RealOrangeOne", "fa-twitter"),
|
|
|
|
"reddit": SocialLink("Reddit", "https://reddit.com/user/RealOrangeOne", "fa-reddit"),
|
|
|
|
"instagram": SocialLink("Instagram", "https://instagram.com/RealOrangeOne", "fa-instagram"),
|
2016-05-30 17:39:43 +01:00
|
|
|
"youtube": SocialLink("YouTube", "https://youtube.com/user/TheOrangeOneOfficial", "fa-youtube"),
|
|
|
|
"flickr": SocialLink("Flickr", "https://www.flickr.com/photos/theorangeone/", "fa-flickr")
|
2016-05-21 20:35:59 +01:00
|
|
|
}
|
2016-05-29 23:23:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
def index_projects():
|
|
|
|
projects = [
|
|
|
|
ProjectLink("Student Robotics", "/robotics/", "https://c2.staticflickr.com/8/7711/17122633430_e1b599fe47.jpg"),
|
2016-05-30 17:39:43 +01:00
|
|
|
ProjectLink("Dotfiles", "/projects/dotfiles/", "http://jleajones.com/assets/images/dotfiles.png"),
|
|
|
|
ProjectLink("Custom PC", "/setup/custom-pc/", "https://c2.staticflickr.com/8/7083/27071954860_f6096ccce6.jpg")
|
2016-05-29 23:23:55 +01:00
|
|
|
]
|
|
|
|
shuffle(projects)
|
|
|
|
return projects
|