From ea5d1ebce7cce8b4773abca0489b75ce817f6c7d Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Mon, 3 Oct 2016 21:56:08 +0200 Subject: [PATCH] Replace mehmet by a template --- Rules | 9 ++ .../assets/stylesheets/includes/projects.scss | 33 +++-- .../stylesheets/includes/variables.scss | 2 + content/assets/stylesheets/main.scss | 6 +- content/projects.erb | 136 +----------------- content/projects/12urenloop.md | 7 + content/projects/badass_bottle_bats.md | 7 + content/projects/fk_enrolment.md | 7 + content/projects/gandalf.md | 7 + content/projects/haldis.md | 7 + content/projects/lana.md | 7 + content/projects/saruman.md | 7 + content/projects/slotmachien.md | 7 + content/projects/tab.md | 7 + content/projects/tap.md | 7 + layouts/partials/_project.erb | 14 ++ lib/helpers/projects.rb | 6 + lib/helpers_.rb | 1 + 18 files changed, 131 insertions(+), 146 deletions(-) create mode 100644 content/projects/12urenloop.md create mode 100644 content/projects/badass_bottle_bats.md create mode 100644 content/projects/fk_enrolment.md create mode 100644 content/projects/gandalf.md create mode 100644 content/projects/haldis.md create mode 100644 content/projects/lana.md create mode 100644 content/projects/saruman.md create mode 100644 content/projects/slotmachien.md create mode 100644 content/projects/tab.md create mode 100644 content/projects/tap.md create mode 100644 layouts/partials/_project.erb create mode 100644 lib/helpers/projects.rb diff --git a/Rules b/Rules index bb85efe..9353a7b 100644 --- a/Rules +++ b/Rules @@ -100,6 +100,15 @@ compile '/posts/**/*', rep: :text do filter :strip_html end + +# +# PROJECTS +# +compile '/projects/*' do + filter :kramdown + filter :relativize_paths, type: :html +end + # # GENERIC ERB PAGES # diff --git a/content/assets/stylesheets/includes/projects.scss b/content/assets/stylesheets/includes/projects.scss index c2bd649..580c9ca 100644 --- a/content/assets/stylesheets/includes/projects.scss +++ b/content/assets/stylesheets/includes/projects.scss @@ -1,6 +1,3 @@ - -/*# sourceMappingURL=projects.css.map */ - .imgspace { display: flex; justify-content: space-around; @@ -12,17 +9,35 @@ display: flex; justify-content: center; /* align horizontal */ align-items: center; /* align vertical */ - } .padbot { - padding-bottom: 15px; - } .padtop { - padding-top: 25px; - -} \ No newline at end of file +} + +.project { + background-color: $body-background; + margin-top: 30px; +} + +.logo { + height: 10vw; + width: 10vw; + min-width: 100px; + min-height: 100px; + margin-left: auto; + margin-right: auto; + display: flex; + align-items: center; +} + +.logo-initial { + margin: auto; + color: white; + font-size: 6vw; + font-family: $family-sans-serif; +} diff --git a/content/assets/stylesheets/includes/variables.scss b/content/assets/stylesheets/includes/variables.scss index f8b9d48..320db01 100644 --- a/content/assets/stylesheets/includes/variables.scss +++ b/content/assets/stylesheets/includes/variables.scss @@ -5,6 +5,8 @@ $event-border-color: #DDD; $orange: $zeus-orange; $primary: $orange; +$family-sans-serif: 'Lato', sans-serif; + $link-visited: inherit; $box-colour: #EEE; diff --git a/content/assets/stylesheets/main.scss b/content/assets/stylesheets/main.scss index d3f019c..289dca2 100644 --- a/content/assets/stylesheets/main.scss +++ b/content/assets/stylesheets/main.scss @@ -1,9 +1,7 @@ +@import 'https://fonts.googleapis.com/css?family=Lato:300,400'; @import "includes/variables"; -@import 'https://fonts.googleapis.com/css?family=Lato:300,400'; -$family-sans-serif: 'Lato', sans-serif; - @import "../../../node_modules/bulma/bulma"; .nav-right { @@ -29,4 +27,4 @@ body.site { @import "includes/general"; @import "includes/eventpage"; @import "includes/404"; -@import "includes/projects"; \ No newline at end of file +@import "includes/projects"; diff --git a/content/projects.erb b/content/projects.erb index f5ef627..2a5a232 100644 --- a/content/projects.erb +++ b/content/projects.erb @@ -38,138 +38,8 @@ title: Projecten -
-
-
-
-
-

FK-enrolment

-

Enrolment system for new members of FK-clubs at Ghent University.

- -
-
-
-
-
- -
-
-
-
- - -
-
-
-
- -
-
-
-
-
-

Haldis

-

Haldis is your friendly neighbourhood servant. He exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where. Start an order and let people add items with a simple mouse-click! No more calculating prices and making lists! Be lazier today!

- - -
- -
-
-
-
- -
-
-
-
- - -
-
-
-
- -
-
-
-
- - -
-
-
-
- -
-
-
-
-
-

Lana

-

🐕 LAN-Party Assistant. An application to make the life of a LAN-partygoer easier!

- -
- -
-
-
-
- -
-
-
-
-
-

Saruman

-

Saruman is a material management tool where partners can reserve stuff.

- -
- -
-
-
-
- -
-
-
-
- - -
-
-
-
- -
-
-
-
-
-

SlotMachien

-

This repository contains all applications related to SlotMachien; a Lego MindStorms robot designed to turn a specific lock.

- -
- -
-
-
+<% all_projects.each do |project| %> + <%= render '/partials/_project.erb', project: project%> +<% end %>
diff --git a/content/projects/12urenloop.md b/content/projects/12urenloop.md new file mode 100644 index 0000000..29004bc --- /dev/null +++ b/content/projects/12urenloop.md @@ -0,0 +1,7 @@ +--- +title: 12urenloop +description: Application to count laps based on bluetooth dongle detection. http://12urenloop.be +github: https://github.com/ZeusWPI/12urenloop +logo_letter: L +logo_color: "#6094DB" +--- diff --git a/content/projects/badass_bottle_bats.md b/content/projects/badass_bottle_bats.md new file mode 100644 index 0000000..fe4d168 --- /dev/null +++ b/content/projects/badass_bottle_bats.md @@ -0,0 +1,7 @@ +--- +title: Badass Battle Bots +description: A bot writing contest. https://zeus.ugent.be/bottlebats +github: https://github.com/ZeusWPI/aichallenge +logo_letter: B +logo_color: "#FFD062" +--- diff --git a/content/projects/fk_enrolment.md b/content/projects/fk_enrolment.md new file mode 100644 index 0000000..589f5df --- /dev/null +++ b/content/projects/fk_enrolment.md @@ -0,0 +1,7 @@ +--- +title: FK Enrolment. +description: Enrolment system for new members of FK-clubs at Ghent University. +github: https://github.com/ZeusWPI/FK-enrolment +logo_letter: E +logo_color: "#FFBBDD" +--- diff --git a/content/projects/gandalf.md b/content/projects/gandalf.md new file mode 100644 index 0000000..63e9c4c --- /dev/null +++ b/content/projects/gandalf.md @@ -0,0 +1,7 @@ +--- +title: Gandalf +description: You Shall Not Pass - An advanced e-ticket system for student clubs - http://event.fkgent.be +github: https://github.com/ZeusWPI/Gandalf +logo_letter: G +logo_color: "#F3F8F4" +--- diff --git a/content/projects/haldis.md b/content/projects/haldis.md new file mode 100644 index 0000000..fd874d6 --- /dev/null +++ b/content/projects/haldis.md @@ -0,0 +1,7 @@ +--- +title: Haldis +description: Haldis is your friendly neighbourhood servant. He exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where. Start an order and let people add items with a simple mouse-click! No more calculating prices and making lists! Be lazier today! http://zeus.ugent.be/haldis +github: http://zeus.ugent.be/haldis +logo_letter: H +logo_color: black +--- diff --git a/content/projects/lana.md b/content/projects/lana.md new file mode 100644 index 0000000..a2fce76 --- /dev/null +++ b/content/projects/lana.md @@ -0,0 +1,7 @@ +--- +title: Lana +description: 🐕 LAN-Party Assistant. An application to make the life of a LAN-partygoer easier! +github: https://github.com/ZeusWPI/Lana +logo_letter: L +logo_color: "#E4C6A7" +--- diff --git a/content/projects/saruman.md b/content/projects/saruman.md new file mode 100644 index 0000000..8a8be05 --- /dev/null +++ b/content/projects/saruman.md @@ -0,0 +1,7 @@ +--- +title: Saruman +description: Saruman is a material management tool where partners can reserve stuff. +github: https://github.com/ZeusWPI/Saruman +logo_letter: S +logo_color: grey +--- diff --git a/content/projects/slotmachien.md b/content/projects/slotmachien.md new file mode 100644 index 0000000..4168f73 --- /dev/null +++ b/content/projects/slotmachien.md @@ -0,0 +1,7 @@ +--- +title: SlotMachien +description: This repository contains all applications related to SlotMachien; a Lego MindStorms robot designed to turn a specific lock. +github: https://github.com/ZeusWPI/slotmachien +logo_letter: S +logo_color: "#FFF06A" +--- diff --git a/content/projects/tab.md b/content/projects/tab.md new file mode 100644 index 0000000..5af4e0c --- /dev/null +++ b/content/projects/tab.md @@ -0,0 +1,7 @@ +--- +title: Tab +description: 💰 Yes. We have to drink. But we also have to pay. This does the paying part. https://zeus.ugent.be/tab +github: https://github.com/ZeusWPI/Tab +logo_letter: T +logo_color: "#BAFEA3" +--- diff --git a/content/projects/tap.md b/content/projects/tap.md new file mode 100644 index 0000000..a7ee600 --- /dev/null +++ b/content/projects/tap.md @@ -0,0 +1,7 @@ +--- +title: Tap +description: 💰 Yes. We have to drink. But we also have to pay. This does the drinking part. https://zeus.ugent.be/tap +github: https://github.com/ZeusWPI/Tap +logo_letter: T +logo_color: "#BAFEA3" +--- diff --git a/layouts/partials/_project.erb b/layouts/partials/_project.erb new file mode 100644 index 0000000..7fe00de --- /dev/null +++ b/layouts/partials/_project.erb @@ -0,0 +1,14 @@ +
+
+
+ +
+
+

<%=project[:title]%>

+

<%=project[:description]%>

+
GitHub
+
+
+
diff --git a/lib/helpers/projects.rb b/lib/helpers/projects.rb new file mode 100644 index 0000000..cbebd53 --- /dev/null +++ b/lib/helpers/projects.rb @@ -0,0 +1,6 @@ +require 'uri' +module ProjectsHelper + def all_projects + @items.find_all('/projects/*') + end +end diff --git a/lib/helpers_.rb b/lib/helpers_.rb index 3880fe5..1016d01 100644 --- a/lib/helpers_.rb +++ b/lib/helpers_.rb @@ -11,3 +11,4 @@ include IcalHelper include NavigationHelper include DataHelper include FontAwesomeHelper +include ProjectsHelper