From aa8e66879f105db11b510534f94e237591fb744e Mon Sep 17 00:00:00 2001 From: Alexander Schwartzberg Date: Thu, 22 Mar 2018 09:49:59 -0400 Subject: [PATCH] Sponsors page (#716) * Updated Small Group rooms link * Added sponsors data to main.controller.js * Added sponsors.html and styles, and /sponsors state --- client/app/main/main.controller.js | 9 ++++++++ client/app/main/main.html | 2 +- client/app/main/main.js | 7 ++++++- client/app/main/main.less | 22 ++++++++++++++++++++ client/app/main/sponsors.html | 33 ++++++++++++++++++++++++++++++ 5 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 client/app/main/sponsors.html diff --git a/client/app/main/main.controller.js b/client/app/main/main.controller.js index d3e1bac3..00abb0f3 100644 --- a/client/app/main/main.controller.js +++ b/client/app/main/main.controller.js @@ -12,4 +12,13 @@ angular.module('observatory3App') $http.get('/api/static').success(function(stats) { $scope.statics = stats; }); + + $scope.sponsors = [ + { name: 'RedHat', logo: 'http://logo-load.com/uploads/posts/2016-02/1456126060_logo-red-hat.png', alt: 'Red Hat Linux', url: 'https://www.redhat.com/', description: 'RedHat has funded student projects and learning workshops, including Introduction to Open Source Software.' }, + { name: 'Mozilla', logo: 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Mozilla_logo.svg/2000px-Mozilla_logo.svg.png', alt: 'Mozilla', url: 'https://www.mozilla.org/en-US/foundation/', description: 'Helped with leadership program for mentors.' }, + { name: 'Open Source Initiative', logo: 'https://opensource.org/files/osi_standard_logo.png', alt: 'Open Source Initiative', url: 'https://opensource.org/', description: 'Educational Institution Member that has provided opportunities for students.' }, + { name: 'NSF HFOSS', logo: 'http://www.hfoss.org/uploads/images/allgray_notrinity.gif', alt: 'HFOSS', url: 'http://www.hfoss.org/index.php/contact-us', description: 'Affliated member with Trinity, Connecticut College and Wesleyan University' }, + { name: 'Microsoft', logo: 'https://mtaiit.com/imgs/microsoft.png', alt: 'Microsoft', url: 'https://www.microsoft.com/en-us/', description: 'Partially Funded Student projects (through Microsoft employee program).' }, + { name: 'Google', logo: 'https://cdn.vox-cdn.com/uploads/chorus_asset/file/6466217/fixed-google-logo-font.png', alt: 'Google', url: 'https://www.google.com/', description: 'Donated MAGPis and Cardboard VR.' } + ] }); diff --git a/client/app/main/main.html b/client/app/main/main.html index a1c88eae..b7c27b31 100644 --- a/client/app/main/main.html +++ b/client/app/main/main.html @@ -100,7 +100,7 @@

Donations

Tuesday (4:00-5:15)
-
Small group meetings in these rooms
+
Small group meetings in these rooms
Friday (4:00-5:15)
Large group meetings in DCC 318
diff --git a/client/app/main/main.js b/client/app/main/main.js index d73e1195..bd56672b 100644 --- a/client/app/main/main.js +++ b/client/app/main/main.js @@ -8,5 +8,10 @@ angular.module('observatory3App') templateUrl: 'app/main/main.html', controller: 'MainController', controllerAs: 'main' - }); + }) + .state('sponsors', { + url: '/sponsors', + templateUrl: 'app/main/sponsors.html', + controller: 'MainController' + }) }); diff --git a/client/app/main/main.less b/client/app/main/main.less index 10318af9..3d187983 100644 --- a/client/app/main/main.less +++ b/client/app/main/main.less @@ -71,3 +71,25 @@ body { } } + +// Sponsors +.row.sponsors-wrapper { + margin-top: 4rem; + + .sponsor-col { + display: flex; + flex-direction: column; + align-items: center; + margin-bottom: 2rem; + justify-content: space-between; + + .img-thumbnail { + max-height: 10rem; + } + + .sponsor-name { + margin-top: 3rem; + } + + } +} diff --git a/client/app/main/sponsors.html b/client/app/main/sponsors.html new file mode 100644 index 00000000..79ec8f7e --- /dev/null +++ b/client/app/main/sponsors.html @@ -0,0 +1,33 @@ + +
+ + + + + +
+
+ +
+
+ +