personal-website 0.1.1

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: 7e7adfbe1ed428de8830ddd144dd26e877b18548bff55b681a0ffe0c1c2c9d91
4
+ data.tar.gz: bd68efa0f2f69ef4729c097f58b6b69e8a102a1cb014ff94f09635ac4c03a026
5
+ SHA512:
6
+ metadata.gz: d509d8ca89efd82364d3e166f73d241c27a9c4a05ac669e2ace6eeef934fb4be3229d1ce0cbe9b5459a2665366c6c3a6af24cf321ee8941c613566df1318adb0
7
+ data.tar.gz: e32bf962a2718621e4bf82b847d15623f8373d2030f3c099bc65ade75a5471e49f337d1c25460d41a47d142edf54b1d7657c207ad93627ff79afaf0eae423375
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Lucas Bulgarelli
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/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Lucas Bulgarelli
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # personal-website
2
+
3
+ Theme for personal websites.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "personal-website"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: personal-website
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install personal-website
26
+
27
+ ## Usage
28
+
29
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lbulgarelli/personal-website. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+ ## Development
36
+
37
+ To set up your environment to develop this theme, run `bundle install`.
38
+
39
+ 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.
40
+
41
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
42
+ To add a custom directory to your theme-gem, please edit the regexp in `personal-website.gemspec` accordingly.
43
+
44
+ ## License
45
+
46
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
47
+
@@ -0,0 +1,8 @@
1
+ <figure class="d-table-row text-left">
2
+ <img src="{{ education.image_path }}" alt="" class="d-table-cell">
3
+ <figcaption class="d-table-cell align-middle">
4
+ <span class="title">{{ education.title }}</span><br>
5
+ <span class="subtitle">{{ education.institution }}</span><br>
6
+ <span class="subtitle">{{ education.year }}</span>
7
+ </figcaption>
8
+ </figure>
@@ -0,0 +1,3 @@
1
+ <footer class="text-center bg-dark text-light p-3">
2
+ &copy; 2020 {{ site.name }}
3
+ </footer>
@@ -0,0 +1,20 @@
1
+ <header class="container-fluid fixed-top bg-dark py-5 py-md-0">
2
+ <div class="row align-items-center">
3
+ <div class="col-md-auto text-center">
4
+ <img src="{{ site.photo }}" alt="" id="photo" class="rounded-circle">
5
+ </div>
6
+ <div class="col-md container text-center">
7
+ <div class="row align-items-center text-md-left">
8
+ <div class="col-md">
9
+ <h1 class="text-light">{{ site.name }}</h1>
10
+ <h3 id="role">{{ site.position }}</h3>
11
+ </div>
12
+ <div class="col-md">
13
+ {% for social in site.data.social %}
14
+ <a href="{{ social.external_url }}" target="_blank"><img src="{{ social.image_path }}" class="social" alt=""></a>
15
+ {% endfor %}
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </header>
@@ -0,0 +1,10 @@
1
+ <a href="{{ project.url }}" target="_blank" class="project">
2
+ <figure>
3
+ <h5>{{ project.title }}</h5>
4
+ <img src="{{ project.image_path }}" alt="">
5
+ <br><br>
6
+ <figcaption>
7
+ <p>{{ project.description }}</p>
8
+ </figcaption>
9
+ </figure>
10
+ </a>
@@ -0,0 +1,8 @@
1
+ <figure class="d-table-row text-left">
2
+ <img src="{{ work.image_path }}" alt="" class="d-table-cell">
3
+ <figcaption class="d-table-cell align-middle">
4
+ <span class="title">{{ work.position }}</span><br>
5
+ {% if work.department %} <span class="subtitle">{{ work.department }}</span><br>{% endif %}
6
+ <span class="subtitle">{{ work.institution }}</span><br>
7
+ </figcaption>
8
+ </figure>
@@ -0,0 +1 @@
1
+ {{ content }}
@@ -0,0 +1,60 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <!DOCTYPE html>
6
+ <html>
7
+
8
+ <head>
9
+ <link rel="stylesheet" href="/assets/css/home.css">
10
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
11
+ <title>{{ site.name }}</title>
12
+ </head>
13
+
14
+ <body>
15
+ {% include header.html %}
16
+ <div class="content">
17
+ {% assign content_stripped = content | strip %}
18
+ {% if content_stripped != "" %}
19
+ <div>{{ content }}</div>
20
+ {% endif %}
21
+ {% if site.data.work or site.data.education %}
22
+ <div class="row d-flex">
23
+ {% if site.data.work %}
24
+ <div class="col-md exp">
25
+ <h1 class="text-center mb-4">Work</h1>
26
+ <div class="d-table mx-auto">
27
+ {% for work in site.data.work %}
28
+ {% include work.html %}
29
+ {% endfor %}
30
+ </div>
31
+ </div>
32
+ {% endif %}
33
+ {% if site.data.education %}
34
+ <div class="col-md exp">
35
+ <h1 class="text-center mb-4">Education</h1>
36
+ <div class="d-table mx-auto">
37
+ {% for education in site.data.education %}
38
+ {% include education.html %}
39
+ {% endfor %}
40
+ </div>
41
+ </div>
42
+ {% endif %}
43
+ </div>
44
+ {% endif %}
45
+ {% if site.data.projects %}
46
+ <div class="text-center">
47
+ <h1>Projects</h1>
48
+ {% for project in site.data.projects %}
49
+ {% include project.html %}
50
+ {% endfor %}
51
+ </div>
52
+ {% endif %}
53
+ </div>
54
+ {% include footer.html %}
55
+ </body>
56
+
57
+ <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
58
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
59
+ <script src="/assets/js/header.js"></script>
60
+ </html>
@@ -0,0 +1,12 @@
1
+ .content{
2
+ border-spacing: 15px;
3
+ margin-top: calc(24vh + 16vw);
4
+ }
5
+
6
+ .content > div{
7
+ padding: 50px;
8
+ }
9
+
10
+ .content > div:nth-child(even){
11
+ background-color: #fafafa;
12
+ }
@@ -0,0 +1,45 @@
1
+ .exp:not(:last-of-type){
2
+ border-right: 1px grey solid;
3
+ }
4
+
5
+ .exp img{
6
+ height: 75px;
7
+ width: 100px;
8
+ margin: 5px 15px;
9
+ object-fit: contain;
10
+ }
11
+
12
+ .exp .title{
13
+ font-size: 1.5em;
14
+ }
15
+
16
+ .exp .subtitle{
17
+ color: grey;
18
+ font-weight: 300;
19
+ }
20
+
21
+ .exp figcaption{
22
+ min-width: 300px !important;
23
+ }
24
+
25
+ @media (max-width: 768px){
26
+ body > header{
27
+ position: initial !important;
28
+ }
29
+
30
+ .content{
31
+ margin-top: 25px;
32
+ }
33
+ }
34
+
35
+ @media (max-width: 1080px){
36
+ .exp:not(:last-of-type){
37
+ border-right: 1px transparent solid;
38
+ border-bottom: 1px grey solid;
39
+ padding-bottom: 25px;
40
+ }
41
+
42
+ .exp:not(:first-of-type){
43
+ padding-top: 25px;
44
+ }
45
+ }
data/_sass/header.scss ADDED
@@ -0,0 +1,27 @@
1
+ #photo{
2
+ margin: 2vw;
3
+ min-height: 100px;
4
+ max-width: calc(24vh + 12vw);
5
+ max-height: calc(24vh + 12vw);
6
+ border: 2px solid white;
7
+ object-fit: cover;
8
+ }
9
+
10
+ #role{
11
+ color: lightgray;
12
+ font-weight: lighter;
13
+ }
14
+
15
+ .social{
16
+ margin: 15px;
17
+ height: 5vw;
18
+ min-height: 50px;
19
+ max-height: 100px;
20
+ transition: transform .5s ease;
21
+ object-fit: contain;
22
+ }
23
+
24
+ .social:hover{
25
+ -webkit-transform: scale(1.2);
26
+ transform: scale(1.2);
27
+ }
@@ -0,0 +1,29 @@
1
+ .project{
2
+ background: rgba(0,0,0,.025);
3
+ padding: 40px;
4
+ margin: 25px;
5
+ display: inline-block;
6
+ border-radius: 15px;
7
+ transition: transform .5s ease;
8
+ }
9
+
10
+ .project img{
11
+ object-fit: contain;
12
+ max-height: 250px;
13
+ max-width: 400px;
14
+ border-radius: 15px;
15
+ }
16
+
17
+ .project figcaption{
18
+ max-width: 400px;
19
+ }
20
+
21
+ .project, .project:visited{
22
+ color: unset;
23
+ }
24
+
25
+ .project:hover{
26
+ text-decoration: none;
27
+ -webkit-transform: scale(1.1);
28
+ transform: scale(1.1);
29
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ ---
3
+ @import "header";
4
+ @import "content";
5
+ @import "experience";
6
+ @import "project";
@@ -0,0 +1,32 @@
1
+ me_height = $("#photo").outerHeight();
2
+ social_height = $(".social").outerHeight();
3
+ me_margin = ($("#photo").outerHeight(true) - me_height) / 2;
4
+
5
+ $(window).on('resize', function(){
6
+ $(window).scrollTop(0);
7
+ $("#photo").outerHeight('');
8
+ $(".social").outerHeight('');
9
+ $("#photo").css("margin", '');
10
+ me_height = $("#photo").outerHeight();
11
+ social_height = $(".social").outerHeight();
12
+ me_margin = ($("#photo").outerHeight(true) - me_height) / 2;
13
+ });
14
+
15
+ $(window).scroll(function(e) {
16
+ scroll_top = $(window).scrollTop();
17
+ // Disable resizing for small screens and negative scroll
18
+ if(scroll_top < 0 || $(window).width() <= 768) return;
19
+ // Resize photo
20
+ new_height = me_height - scroll_top;
21
+ $("#photo").outerHeight(new_height);
22
+ // Resize photo margins for better proportions
23
+ if(scroll_top <= 250)
24
+ $("#photo").css("margin", me_margin * (1 - scroll_top / 350));
25
+ else
26
+ $("#photo").css("margin", me_margin * (1 - 250 / 350));
27
+ // Disable resizing social media for small screens
28
+ if($(window).width() <= 945) return;
29
+ // Resize social media icons
30
+ $(".social").outerHeight(social_height - scroll_top / 5);
31
+ console.log(scroll_top);
32
+ });
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: personal-website
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Lucas Bulgarelli
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-09-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.1.4
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.1.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: kramdown-parser-gfm
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.0
69
+ description:
70
+ email:
71
+ - lucas.bulgarelli@hotmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - LICENSE
77
+ - LICENSE.txt
78
+ - README.md
79
+ - _includes/education.html
80
+ - _includes/footer.html
81
+ - _includes/header.html
82
+ - _includes/project.html
83
+ - _includes/work.html
84
+ - _layouts/default.html
85
+ - _layouts/home.html
86
+ - _sass/content.scss
87
+ - _sass/experience.scss
88
+ - _sass/header.scss
89
+ - _sass/project.scss
90
+ - assets/css/home.scss
91
+ - assets/js/header.js
92
+ homepage: https://github.com/lbulgarelli/personal-website
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubygems_version: 3.1.2
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: Jekyll theme for personal websites.
115
+ test_files: []