jekyll-rubin-collab-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1839404cc8ffc2ea6c8c218a79031ff4691f50adbdf2cb32f08180042de9666b
4
+ data.tar.gz: 5e94b8854ad20b9037d8f43752d5e8974718f33e5beba1cc6cc718eebaefa7ed
5
+ SHA512:
6
+ metadata.gz: a006bafb00d06aad3789a66592fde6a59794f5bc890989719059cb0adb380e9c1236b594bec5496103220d61756c3aedcc8edeab0087a2c6729995d0179f5805
7
+ data.tar.gz: 10c75823015570fd545363d90908e72fea1a2e12889719600ba57807c26a80e7f9fcaab88a86b00f41c7d31fbc1cb40ca2f0abcfb911d0663cf19ad5bc22e10d
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 LSST Informatics & Statistics Science Collaboration (ISSC)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # jekyll-rubin-collab-theme
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your Jekyll site's `Gemfile`:
12
+
13
+ ```ruby
14
+ gem "jekyll-rubin-collab-theme"
15
+ ```
16
+
17
+ And add this line to your Jekyll site's `_config.yml`:
18
+
19
+ ```yaml
20
+ theme: jekyll-rubin-collab-theme
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install jekyll-rubin-collab-theme
30
+
31
+ ## Usage
32
+
33
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rubin-collab. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
38
+
39
+ ## Development
40
+
41
+ To set up your environment to develop this theme, run `bundle install`.
42
+
43
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
44
+
45
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
+ To add a custom directory to your theme-gem, please edit the regexp in `rubin-collab.gemspec` accordingly.
47
+
48
+ ## License
49
+
50
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_config.yml ADDED
@@ -0,0 +1,15 @@
1
+ # Site Settings
2
+ brand: LSST Informatics & Statistics Science Collaboration
3
+ copyright: LSST ISSC
4
+ title: LSST Informatics & Statistics Science Collaboration
5
+
6
+ # Links
7
+ links:
8
+ github: https://github.com/lsstissc
9
+
10
+ # Link to edit the website
11
+ git_edit_address: https://github.com/lsstissc/lsstissc.github.io/blob/master
12
+
13
+ sass:
14
+ sass_dir: _sass
15
+ style: compressed
@@ -0,0 +1,7 @@
1
+ {% if include.css.sri %}
2
+ <link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
3
+ {% elsif include.css.href %}
4
+ <link rel="stylesheet" href="{{ include.css.href }}">
5
+ {% else %}
6
+ <link rel="stylesheet" href="{{ include.css }}">
7
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ {% if include.js.sri %}
2
+ <script src="{{ include.js.href }}" integrity="{{ include.js.sri }}" crossorigin="anonymous"></script>
3
+ {% elsif include.js.href %}
4
+ <script src="{{ include.js.href }}"></script>
5
+ {% else %}
6
+ <script src="{{ include.js }}"></script>
7
+ {% endif %}
@@ -0,0 +1,23 @@
1
+ {% if layout.common-ext-js %}
2
+ {% for js in layout.common-ext-js %}
3
+ {% include ext-js.html js=js %}
4
+ {% endfor %}
5
+ {% endif %}
6
+
7
+ {% if layout.common-js %}
8
+ {% for js in layout.common-js %}
9
+ <script src="{{ js | relative_url }}"></script>
10
+ {% endfor %}
11
+ {% endif %}
12
+
13
+ {% if page.ext-js %}
14
+ {% for js in page.ext-js %}
15
+ {% include ext-js.html js=js %}
16
+ {% endfor %}
17
+ {% endif %}
18
+
19
+ {% if page.js %}
20
+ {% for js in page.js %}
21
+ <script src="{{ js | relative_url }}"></script>
22
+ {% endfor %}
23
+ {% endif %}
@@ -0,0 +1,24 @@
1
+ <!-- Footer -->
2
+ <footer class="text-center bg-light">
3
+
4
+ <section class="d-flex justify-content-center justify-content-lg-around align-items-center border-top p-4">
5
+ <!-- Left -->
6
+ <div class="me-4">
7
+ <!-- Copyright -->
8
+ <span>© {{ site.time | date: '%Y' }} Copyright:
9
+ <a class="text-reset fw-bold" href="{{ site.url }}">{{ site.copyright }}</a>
10
+ </span>
11
+ <!-- Copyright -->
12
+ </div>
13
+ <!-- Left -->
14
+
15
+ <!-- Right -->
16
+ <div class="me-4">
17
+ <a href="{{site.git_edit_address}}/{{ page.path }}" target="_blank" type="button" class="btn btn-outline">
18
+ Improve this page <i class="fab fa-github mr-3"></i>
19
+ </a>
20
+ </div>
21
+ <!-- Right -->
22
+ </section>
23
+ </footer>
24
+ <!-- Footer -->
@@ -0,0 +1,30 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
5
+ <title>{{ site.title }}</title>
6
+
7
+ {% if layout.common-ext-css %}
8
+ {% for css in layout.common-ext-css %}
9
+ {% include ext-css.html css=css %}
10
+ {% endfor %}
11
+ {% endif %}
12
+
13
+ {% if layout.common-css %}
14
+ {% for css in layout.common-css %}
15
+ <link rel="stylesheet" href="{{ css | relative_url }}">
16
+ {% endfor %}
17
+ {% endif %}
18
+
19
+ {% if page.ext-css %}
20
+ {% for css in page.ext-css %}
21
+ {% include ext-css.html css=css %}
22
+ {% endfor %}
23
+ {% endif %}
24
+
25
+ {% if page.css %}
26
+ {% for css in page.css %}
27
+ <link rel="stylesheet" href="{{ css | relative_url }}">
28
+ {% endfor %}
29
+ {% endif %}
30
+ </head>
@@ -0,0 +1,25 @@
1
+ <!-- Background image -->
2
+ <section
3
+ id="intro"
4
+ class="text-center bg-image home-parallax home-fade home-section"
5
+ style="background-image: url('assets/img/background.png');
6
+ background-color: #363333;
7
+ background-position: center; background-repeat: no-repeat; background-size: cover;
8
+ z-index: 0;"
9
+
10
+ >
11
+ <div class="mask bg-image" style="background-image: url('assets/img/foreground.png');
12
+ background-attachment: inherit;
13
+ pointer-events: none;
14
+ ">
15
+ <div class="d-flex justify-content-center align-items-center h-100 caption-content vertical-align: middle;" >
16
+ <div class="text-white">
17
+ <h3 class="white-text"><span style="color: #F5F5F5;"><strong>Vera C. Rubin</strong></span> <span style="color: #009FA1; font-weight: 400;">Observatory</span>
18
+ <span style="display: inline-block; font-weight: 300; font-style: italic;">Legacy Survey of Space and Time</span></h3>
19
+ <h1 class="display-4 font-weight-bold white-text mb-2" style="font-weight: 400;">Informatics & Statistics Science Collaboration</h2>
20
+ <!-- <a class="btn btn-outline-light section-scroll" href="#about">Learn More</a> -->
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </section>
25
+ <!-- Background image -->
@@ -0,0 +1,81 @@
1
+ <!-- Navbar -->
2
+ <nav class="navbar navbar-expand-lg navbar-dark scrolling-navbar fixed-top {% if page.title == "Home" %}navbar-transparent{% endif %}"
3
+ style="z-index: 2000; transition: all 0.25s;">
4
+ <div class="container">
5
+ <!-- Navbar brand -->
6
+ <a class="navbar-brand nav-link" href="{{ '/index.html' | relative_url }}">
7
+ {{site.brand}}
8
+ </a>
9
+
10
+ <button class="navbar-toggler" type="button" data-mdb-toggle="collapse" data-mdb-target="#navbarExample01"
11
+ aria-controls="navbarExample01" aria-expanded="false" aria-label="Toggle navigation">
12
+ <i class="fas fa-bars"></i>
13
+ </button>
14
+
15
+ <div class="collapse navbar-collapse" id="navbarExample01">
16
+ <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
17
+ {% assign pages = site.pages | sort: 'order' | group_by: 'category' %}
18
+ {% for cat in pages %}
19
+ {% assign items = cat.items %}
20
+ {% assign items_size = cat.items | size %}
21
+
22
+ <!-- Links without a category are hidden -->
23
+ <!-- Links with a unique category are placed at the root-->
24
+ {% if items_size == 1 %}
25
+
26
+ {% for item in items %}
27
+ {% if item.title != undefined %}
28
+ <li class="nav-item {% if item.url == page.url %}active{% endif %}">
29
+ <a class="nav-link" href="{{ item.url | relative_url }}">{{ item.title }}</a>
30
+ </li>
31
+ {% endif %}
32
+ {% endfor %}
33
+
34
+ {% elsif cat.name != "" %}
35
+ <li class="nav-item dropdown">
36
+ <a class="nav-link dropdown-toggle"
37
+ id="navbarDropdownMenuLink"
38
+ role="button"
39
+ data-mdb-toggle="dropdown"
40
+ aria-expanded="false">{{ cat.name | capitalize }}</a>
41
+ <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
42
+ {% for item in items %}
43
+ <li>
44
+ <a class="dropdown-item" href="{{ item.url | relative_url }}">{{ item.title }}</a>
45
+ </li>
46
+ {% endfor %}
47
+ </ul>
48
+ </li>
49
+ {% endif %}
50
+ {% endfor %}
51
+ </ul>
52
+
53
+ <ul class="navbar-nav d-flex flex-row">
54
+ <!-- Icons -->
55
+ {%- if site.links.youtube -%}
56
+ <li class="nav-item me-3 me-lg-0">
57
+ <a class="nav-link" href="{{ site.links.youtube }}" rel="nofollow"
58
+ target="_blank">
59
+ <i class="fab fa-youtube"></i>
60
+ </a>
61
+ </li>
62
+ {%- endif -%}
63
+ {%- if site.links.twitter -%}
64
+ <li class="nav-item me-3 me-lg-0">
65
+ <a class="nav-link" href="{{ site.links.twitter }}" rel="nofollow" target="_blank">
66
+ <i class="fab fa-twitter"></i>
67
+ </a>
68
+ </li>
69
+ {%- endif -%}
70
+ {%- if site.links.github -%}
71
+ <li class="nav-item me-3 me-lg-0">
72
+ <a class="nav-link" href="{{ site.links.github }}" rel="nofollow" target="_blank">
73
+ <i class="fab fa-github"></i>
74
+ </a>
75
+ </li>
76
+ {%- endif -%}
77
+ </ul>
78
+ </div>
79
+ </div>
80
+ </nav>
81
+ <!-- Navbar -->
@@ -0,0 +1,33 @@
1
+ ---
2
+ common-css:
3
+ - "/assets/css/mdb.rubin.css"
4
+ - "/assets/css/custom.css"
5
+ common-ext-css:
6
+ - "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
7
+ common-ext-js:
8
+ - href: "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"
9
+ - href: "https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"
10
+ common-js:
11
+ - "/assets/js/mdb.min.js"
12
+ - "/assets/js/main.js"
13
+ ---
14
+
15
+ <!DOCTYPE html>
16
+ <html lang="en">
17
+
18
+ {% include head.html %}
19
+
20
+ <body>
21
+ <!--Main Navigation-->
22
+ <header>
23
+ {% include navbar.html %}
24
+ </header>
25
+ <!--Main Navigation-->
26
+
27
+ {{ content }}
28
+
29
+ {% include footer.html %}
30
+ {% include footer-scripts.html %}
31
+
32
+ </body>
33
+ </html>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ {% include home-title.html %}
6
+
7
+ <!--Main layout-->
8
+ <main style="z-index: 1; position: relative;" class="bg-white">
9
+ <div class="container" >
10
+ {{ content }}
11
+ </div>
12
+ </main>
13
+ <!--Main layout-->
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <!--Main layout-->
5
+ <main class="mt-5">
6
+ <div class="container" >
7
+ {{ content }}
8
+ </div>
9
+ </main>
10
+ <!--Main layout-->
data/_sass/bootstrap ADDED
@@ -0,0 +1 @@
1
+ ../_third_party/mdb-ui-kit/src/scss/bootstrap
@@ -0,0 +1 @@
1
+ ../_third_party/mdb-ui-kit/src/scss/bootstrap-rtl-fix
@@ -0,0 +1,29 @@
1
+ // -------------------------
2
+ // Rubin Colors and Typography
3
+ // See https://gallery.lsst.org/bp/#/brandguidelines/2206/section/17290
4
+ // -------------------------
5
+ // Download rubin fonts, Source Sans Pro (old one) and Source Sans 3 (newer but doesnt work on chrome)
6
+ @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');
7
+
8
+ // Primary Colors
9
+ $rubin-teal-light: #00babc;
10
+ $rubin-teal-dark: #058B8C;
11
+ $rubin-dark: #313333;
12
+ $rubin-light: #F5F5F5;
13
+ // Secondary colors
14
+ $rubin-teal-1: #D9F7F6;
15
+ $rubin-teal-2: #B1F2EF;
16
+ $rubin-teal-3: #009FA1;
17
+ $rubin-teal-4: #0C4A47;
18
+ $rubin-gray-1: #DCE0E3;
19
+ $rubin-gray-2: #6A6E6E;
20
+ $rubin-gray-3: #1F2121;
21
+ // Accent colors
22
+ $rubin-accent-red: #ed4c4c;
23
+ $rubin-accent-orange: #fab364;
24
+ $rubin-accent-yellow: #ffe266;
25
+ $rubin-accent-green: #3cae3f;
26
+ $rubin-accent-blue: #1c81a4;
27
+ $rubin-accent-purple: #583671;
28
+ // Rubin Typography
29
+ $rubin-font-family: 'Source Sans Pro', sans-serif;
@@ -0,0 +1,20 @@
1
+ @import './rubin';
2
+
3
+ // -------------------------
4
+ // Typography
5
+ // -------------------------
6
+ $font-family-base: $rubin-font-family;
7
+
8
+ // -------------------------
9
+ // Colors
10
+ // -------------------------
11
+
12
+ // theme-color-variables
13
+ $primary: $rubin-teal-dark !default;
14
+ $secondary: $rubin-dark !default;
15
+ $success: $rubin-accent-green !default;
16
+ $danger: $rubin-accent-red !default;
17
+ $warning: $rubin-accent-orange !default;
18
+ $info: $rubin-teal-2 !default;
19
+ $light: $rubin-light !default;
20
+ $dark: $rubin-dark !default;
data/_sass/free ADDED
@@ -0,0 +1 @@
1
+ ../_third_party/mdb-ui-kit/src/scss/free
@@ -0,0 +1 @@
1
+ ../_third_party/mdb-ui-kit/src/scss/mdb.free.scss
@@ -0,0 +1,13 @@
1
+ .navbar {
2
+ padding: 12px;
3
+ box-shadow: none;
4
+ }
5
+
6
+ .navbar:not(.navbar-transparent) {
7
+ background-color: #1F2121;
8
+ padding: 5px;
9
+ }
10
+
11
+ #intro {
12
+ height: 855px;
13
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+
4
+ // Imports all MDB styles, including our customizations
5
+ @import "mdb.free";
Binary file
Binary file
data/assets/js/main.js ADDED
@@ -0,0 +1,55 @@
1
+ particlesJS("intro", {"particles":{"number":{"value":100,"density":{"enable":true,"value_area":800}},
2
+ "color":{"value":"#ffffff"},"shape":{"type":"circle","stroke":{"width":0,"color":"#000000"},
3
+ "polygon":{"nb_sides":5},"image":{"src":"img/github.svg","width":100,"height":100}},
4
+ "opacity":{"value":1.,"random":true,
5
+ "anim":{"enable":true,"speed":5,"opacity_min":0.1,"sync":false}},
6
+ "size":{"value":1.5,"random":true,"anim":{"enable":true,"speed":10,"size_min":0.2,"sync":false}},
7
+ "line_linked":{"enable":true,"distance":150,"color":"#ffffff","opacity":0.4,"width":1},
8
+ "move":{"enable":true,"speed":0.1,"direction":"none","random":false,"straight":false,"out_mode":"out",
9
+ "bounce":false,"attract":{"enable":false,"rotateX":600,"rotateY":1200}}},
10
+ "interactivity":{"detect_on":"canvas","events":{"onhover":{"enable":true,"mode":"bubble"},
11
+ "onclick":{"enable":true,"mode":"push"},"resize":true},
12
+ "modes":{"grab":{"distance":97.44926547616143,"line_linked":{"opacity":1}},
13
+ "bubble":{"distance":243.62316369040352,"size":2.,"duration":2,"opacity":1,"speed":3},
14
+ "repulse":{"distance":60.,"duration":5.},"push":{"particles_nb":1},"remove":{"particles_nb":2}}},
15
+ "retina_detect":true});
16
+
17
+ function effectsHomeSection(homeSection, scrollTopp) {
18
+ if (homeSection.length > 0) {
19
+ var homeSHeight = homeSection.height();
20
+ var topScroll = $(document).scrollTop();
21
+ if ((homeSection.hasClass('home-parallax')) && ($(scrollTopp).scrollTop() <= homeSHeight)) {
22
+ homeSection.css('height', (855 - topScroll * 0.55));
23
+ homeSection.css('top', (topScroll * 0.55));
24
+ }
25
+ if (homeSection.hasClass('home-fade') && ($(scrollTopp).scrollTop() <= homeSHeight)) {
26
+ var caption = $('.caption-content');
27
+ caption.css('opacity', (1 - topScroll/homeSection.height() * 1));
28
+ }
29
+ }
30
+ }
31
+
32
+ function navbarAnimation(navbar, homeSection, navHeight) {
33
+ var topScroll = $(window).scrollTop();
34
+ if (navbar.length > 0 && homeSection.length > 0) {
35
+ if(topScroll >= navHeight) {
36
+ navbar.removeClass('navbar-transparent');
37
+ } else {
38
+ navbar.addClass('navbar-transparent');
39
+ }
40
+ }
41
+ }
42
+
43
+ (function(){
44
+ $(document).ready(function() {
45
+
46
+ var homeSection = $('.home-section');
47
+ var navbar = $('.navbar');
48
+ var navHeight = navbar.height();
49
+
50
+ $(window).scroll(function() {
51
+ effectsHomeSection(homeSection, this);
52
+ navbarAnimation(navbar, homeSection, navHeight);
53
+ });
54
+ });
55
+ })(jQuery);