personal-website 0.1.1 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/external-item.html +29 -0
- data/_includes/footer.html +2 -2
- data/_includes/header.html +1 -1
- data/_includes/post.html +11 -0
- data/_includes/project.html +1 -1
- data/_includes/share-buttons.html +18 -0
- data/_layouts/external.html +44 -0
- data/_layouts/home.html +38 -9
- data/_layouts/post.html +40 -0
- data/_sass/experience.scss +12 -14
- data/_sass/external-home.scss +73 -0
- data/_sass/external.scss +51 -0
- data/_sass/footer.scss +3 -0
- data/_sass/header-mini.scss +12 -0
- data/_sass/header.scss +11 -1
- data/_sass/home.scss +45 -0
- data/_sass/post.scss +60 -0
- data/_sass/project.scss +3 -5
- data/assets/css/external.scss +6 -0
- data/assets/css/home.scss +5 -2
- data/assets/css/post.scss +6 -0
- data/assets/js/external.js +4 -0
- data/assets/js/header.js +18 -11
- metadata +59 -4
- data/_sass/content.scss +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 651f8c482aba7fdaa250c370a0ff2dee05c897b6c059609e1dc2da7091dd9e90
|
4
|
+
data.tar.gz: 84fd39559e1f33673d7a680f9bb4c24fbb83a0c986efc1acd00877674a935ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a09c251042bc157681bc906a4507c37fcb5f19d90af1bff381020620cf045f9853ab7bffd60ade9cd4e5d82143ac543078c589627dd2ada2a4a080f4a6c7b280
|
7
|
+
data.tar.gz: 5443efc14a7990c33ad2fb137f5cc59e8ea874ea39d32bf77bf591c3946cda58d576879c01a2862d7dc32f823e667aa601f45163b84773aa99eeaff03b4befcd
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div class="item" year="{{ ext.year }}">
|
2
|
+
{% if ext.image %}
|
3
|
+
{% if ext.url == nil %}
|
4
|
+
<span class="image"><img src="{{ ext.image }}"></span>
|
5
|
+
{% else %}
|
6
|
+
<a href="{{ ext.url }}" target="_blank" class="image" referrerpolicy="no-referrer"><img src="{{ ext.image }}"></a>
|
7
|
+
{% endif %}
|
8
|
+
{% endif %}
|
9
|
+
<div {% if ext.image == nil %}class="no-img"{% endif %}>
|
10
|
+
<p>
|
11
|
+
{% if ext.url == nil %}
|
12
|
+
{{ ext.title }}
|
13
|
+
{% else %}
|
14
|
+
<a href="{{ ext.url }}" target="_blank" referrerpolicy="no-referrer">{{ ext.title }}</a>
|
15
|
+
{% endif %}
|
16
|
+
<br>
|
17
|
+
{% if ext.subtitle %}
|
18
|
+
<span class="sub font-italic">{{ ext.subtitle }}</span><br>
|
19
|
+
{% endif %}
|
20
|
+
<span class="sub">
|
21
|
+
{% if ext.location %}
|
22
|
+
{{ ext.location }} -
|
23
|
+
{% endif %}
|
24
|
+
{{ ext.year }}
|
25
|
+
</span>
|
26
|
+
</p>
|
27
|
+
<p class="sub">{{ ext.authors }}</p>
|
28
|
+
</div>
|
29
|
+
</div>
|
data/_includes/footer.html
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
<footer class="text-center bg-dark text-light
|
2
|
-
©
|
1
|
+
<footer class="text-center bg-dark text-light">
|
2
|
+
© {{ 'now' | date: "%Y" }} {{ site.name }}
|
3
3
|
</footer>
|
data/_includes/header.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<header class="container-fluid fixed-top bg-dark py-5 py-md-0">
|
2
2
|
<div class="row align-items-center">
|
3
3
|
<div class="col-md-auto text-center">
|
4
|
-
<img src="{{ site.
|
4
|
+
<a href="/"><img src="{{ site.image }}" alt="" id="photo" class="rounded-circle"></a>
|
5
5
|
</div>
|
6
6
|
<div class="col-md container text-center">
|
7
7
|
<div class="row align-items-center text-md-left">
|
data/_includes/post.html
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="post">
|
2
|
+
<a href="{{ post.url }}" target="_blank"><img src="{{ post.image }}"></a>
|
3
|
+
<div class="desc">
|
4
|
+
<p>
|
5
|
+
<span class="text-secondary">{{ post.date | date: "%a, %b %d, %y" }}</span><br>
|
6
|
+
By @{{ post.authors | join: ", @" }}
|
7
|
+
</p>
|
8
|
+
<h3><a href="{{ post.url }}" target="_blank">{{ post.title }}</a></h3>
|
9
|
+
<p>{{ post.description }}</p>
|
10
|
+
</div>
|
11
|
+
</div>
|
data/_includes/project.html
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
<style>
|
2
|
+
.IN-widget button{
|
3
|
+
border-radius: 3px !important;
|
4
|
+
}
|
5
|
+
|
6
|
+
.IN-widget svg{
|
7
|
+
padding: 2px;
|
8
|
+
vertical-align: top;
|
9
|
+
}
|
10
|
+
|
11
|
+
.twitter-share-button{
|
12
|
+
vertical-align: bottom;
|
13
|
+
}
|
14
|
+
</style>
|
15
|
+
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
16
|
+
<div class="fb-share-button" data-href="{{ page.url | absolute_url }}" data-layout="button" data-size="small"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&src=sdkpreparse" class="fb-xfbml-parse-ignore">Share</a></div>
|
17
|
+
<script src="https://platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
|
18
|
+
<script type="IN/Share" data-url="{{ page.url | absolute_url }}"></script>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html>
|
7
|
+
|
8
|
+
<head>
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
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
|
+
<link rel="stylesheet" href="/assets/css/external.css?version=0.2.1">
|
12
|
+
{% seo %}
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
{% include header.html %}
|
17
|
+
<div class="external mx-auto">
|
18
|
+
<div class="sidebar">
|
19
|
+
{% assign grouped = site.data.external[page.external].list | group_by: "year" %}
|
20
|
+
{% for year in grouped %}
|
21
|
+
<a href="/{{ page.external }}?year={{ year.name }}" class="active"><p>{{ year.name }}</p></a>
|
22
|
+
{% endfor %}
|
23
|
+
</div>
|
24
|
+
<div class="content">
|
25
|
+
<div>
|
26
|
+
{% assign content_stripped = content | strip %}
|
27
|
+
{% if content_stripped != "" %}
|
28
|
+
<div>{{ content }}</div>
|
29
|
+
{% endif %}
|
30
|
+
</div>
|
31
|
+
<div class="list">
|
32
|
+
{% for ext in site.data.external[page.external].list %}
|
33
|
+
{% include external-item.html %}
|
34
|
+
{% endfor %}
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
{% include footer.html %}
|
39
|
+
</body>
|
40
|
+
|
41
|
+
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
42
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
43
|
+
<script src="/assets/js/external.js?version=0.2.1"></script>
|
44
|
+
</html>
|
data/_layouts/home.html
CHANGED
@@ -6,18 +6,30 @@ layout: default
|
|
6
6
|
<html>
|
7
7
|
|
8
8
|
<head>
|
9
|
-
<
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
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
|
-
<
|
11
|
+
<link rel="stylesheet" href="/assets/css/home.css?version=0.2.1">
|
12
|
+
{% seo %}
|
12
13
|
</head>
|
13
14
|
|
14
15
|
<body>
|
15
16
|
{% include header.html %}
|
16
|
-
<div
|
17
|
+
<div id="home-content">
|
17
18
|
{% assign content_stripped = content | strip %}
|
18
19
|
{% if content_stripped != "" %}
|
19
20
|
<div>{{ content }}</div>
|
20
21
|
{% endif %}
|
22
|
+
{% assign n_posts = site.posts | size %}
|
23
|
+
{% if n_posts > 0 %}
|
24
|
+
<div>
|
25
|
+
<h1 class="text-center mb-5">Blog</h1>
|
26
|
+
<div class="posts">
|
27
|
+
{% for post in site.posts %}
|
28
|
+
{% include post.html %}
|
29
|
+
{% endfor %}
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
{% endif %}
|
21
33
|
{% if site.data.work or site.data.education %}
|
22
34
|
<div class="row d-flex">
|
23
35
|
{% if site.data.work %}
|
@@ -43,18 +55,35 @@ layout: default
|
|
43
55
|
</div>
|
44
56
|
{% endif %}
|
45
57
|
{% if site.data.projects %}
|
46
|
-
<div
|
47
|
-
<h1>Projects</h1>
|
48
|
-
|
49
|
-
{%
|
50
|
-
|
58
|
+
<div>
|
59
|
+
<h1 class="text-center">Projects</h1>
|
60
|
+
<div class="projects">
|
61
|
+
{% for project in site.data.projects %}
|
62
|
+
{% include project.html %}
|
63
|
+
{% endfor %}
|
64
|
+
</div>
|
51
65
|
</div>
|
52
66
|
{% endif %}
|
67
|
+
{% if site.data.external %}
|
68
|
+
{% for external in site.data.external %}
|
69
|
+
<div class="external" id="{{ external[0] }}">
|
70
|
+
<h1>{{ external[1].name }}</h1>
|
71
|
+
<div class="list">
|
72
|
+
{% for ext in external[1].list limit:external[1].limit %}
|
73
|
+
{% include external-item.html %}
|
74
|
+
{% endfor %}
|
75
|
+
</div>
|
76
|
+
{% if external[1].list.size > external[1].limit %}
|
77
|
+
<a href="/{{ external[0] }}" target="_blank" class="more">More</a>
|
78
|
+
{% endif %}
|
79
|
+
</div>
|
80
|
+
{% endfor %}
|
81
|
+
{% endif %}
|
53
82
|
</div>
|
54
83
|
{% include footer.html %}
|
55
84
|
</body>
|
56
85
|
|
57
86
|
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
58
87
|
<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>
|
88
|
+
<script src="/assets/js/header.js?version=0.2.1"></script>
|
60
89
|
</html>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html>
|
7
|
+
|
8
|
+
<head>
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
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
|
+
<link rel="stylesheet" href="/assets/css/post.css?version=0.2.1">
|
12
|
+
{% seo %}
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
{% include header.html %}
|
17
|
+
<div id="post" class="mx-auto">
|
18
|
+
<h1 class="font-italic">{{ page.title }}</h1>
|
19
|
+
<p>{{ page.description }}</p>
|
20
|
+
<hr>
|
21
|
+
<p>By @{{ page.authors | join: ", @" }}</p>
|
22
|
+
<div class="d-flex justify-content-between">
|
23
|
+
<p class="text-secondary">
|
24
|
+
{{ page.date | date: "%a, %b %d, %y" }}
|
25
|
+
</p>
|
26
|
+
<div>{% include share-buttons.html %}</div>
|
27
|
+
</div>
|
28
|
+
<div id="post-content">
|
29
|
+
{{ content }}
|
30
|
+
</div>
|
31
|
+
<br>
|
32
|
+
<hr style="height:2px;border-width:0;background-color:silver">
|
33
|
+
<div>{% include share-buttons.html %}</div>
|
34
|
+
</div>
|
35
|
+
{% include footer.html %}
|
36
|
+
<div id="fb-root"></div>
|
37
|
+
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v8.0" nonce="il42YRik"></script>
|
38
|
+
</body>
|
39
|
+
|
40
|
+
</html>
|
data/_sass/experience.scss
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
.exp img{
|
6
6
|
height: 75px;
|
7
7
|
width: 100px;
|
8
|
-
margin: 5px
|
8
|
+
margin: 5px;
|
9
9
|
object-fit: contain;
|
10
10
|
}
|
11
11
|
|
@@ -19,27 +19,25 @@
|
|
19
19
|
}
|
20
20
|
|
21
21
|
.exp figcaption{
|
22
|
-
min-width: 300px
|
22
|
+
min-width: min(300px, 50vw);
|
23
23
|
}
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
position: initial !important;
|
28
|
-
}
|
29
|
-
|
30
|
-
.content{
|
31
|
-
margin-top: 25px;
|
32
|
-
}
|
25
|
+
.exp{
|
26
|
+
padding: 0;
|
33
27
|
}
|
34
28
|
|
35
|
-
@media (max-width:
|
29
|
+
@media screen and (max-width: 1050px){
|
36
30
|
.exp:not(:last-of-type){
|
37
|
-
border-right:
|
38
|
-
border-bottom: 1px
|
31
|
+
border-right-color: transparent;
|
32
|
+
border-bottom: 1px gray solid;
|
39
33
|
padding-bottom: 25px;
|
40
34
|
}
|
41
35
|
|
42
36
|
.exp:not(:first-of-type){
|
43
37
|
padding-top: 25px;
|
44
38
|
}
|
45
|
-
|
39
|
+
|
40
|
+
.exp{
|
41
|
+
margin: 0 10px;
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
|
2
|
+
.external{
|
3
|
+
display: inline-flex;
|
4
|
+
width: 100%;
|
5
|
+
flex-wrap: wrap;
|
6
|
+
}
|
7
|
+
|
8
|
+
.external h1{
|
9
|
+
width: 100%;
|
10
|
+
text-align: center;
|
11
|
+
}
|
12
|
+
|
13
|
+
.external .list{
|
14
|
+
width: 100%;
|
15
|
+
display: inline-flex;
|
16
|
+
flex-wrap: wrap;
|
17
|
+
justify-content: center;
|
18
|
+
}
|
19
|
+
|
20
|
+
.external .item{
|
21
|
+
display: inline-flex;
|
22
|
+
flex-wrap: wrap;
|
23
|
+
margin: 25px;
|
24
|
+
flex-direction: column;
|
25
|
+
}
|
26
|
+
|
27
|
+
.external .item .image{
|
28
|
+
margin: 0 auto;
|
29
|
+
}
|
30
|
+
|
31
|
+
.external .item img{
|
32
|
+
height: 250px;
|
33
|
+
max-width: min(calc(100vw - 40px), 400px);
|
34
|
+
object-fit: contain;
|
35
|
+
transition: transform .5s ease;
|
36
|
+
}
|
37
|
+
|
38
|
+
.external .item img:hover{
|
39
|
+
text-decoration: none;
|
40
|
+
-webkit-transform: scale(1.1);
|
41
|
+
transform: scale(1.1);
|
42
|
+
}
|
43
|
+
|
44
|
+
.external .item div{
|
45
|
+
margin-top: 10px;
|
46
|
+
max-width: min(calc(100vw - 40px), 400px);
|
47
|
+
}
|
48
|
+
|
49
|
+
.external .item .sub{
|
50
|
+
color: grey;
|
51
|
+
}
|
52
|
+
|
53
|
+
.external .item a:hover{
|
54
|
+
text-decoration: none;
|
55
|
+
}
|
56
|
+
|
57
|
+
.external .item p:last-child{
|
58
|
+
margin-bottom: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
.external .more{
|
62
|
+
margin-left: auto;
|
63
|
+
margin-right: 2vw;
|
64
|
+
padding: 10px;
|
65
|
+
display: inline-flex;
|
66
|
+
border: 1px black solid;
|
67
|
+
border-radius: 5px;
|
68
|
+
color: initial;
|
69
|
+
}
|
70
|
+
|
71
|
+
.external .more:visited{
|
72
|
+
color: initial;
|
73
|
+
}
|
data/_sass/external.scss
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
.external{
|
2
|
+
margin: 50px;
|
3
|
+
width: min(900px, calc(100% - 100px));
|
4
|
+
display: flex;
|
5
|
+
flex-wrap: wrap;
|
6
|
+
}
|
7
|
+
|
8
|
+
.external .sidebar{
|
9
|
+
padding: 15px 50px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.external .content{
|
13
|
+
width: calc(100% - 140px);
|
14
|
+
}
|
15
|
+
|
16
|
+
.external .list{
|
17
|
+
display: inline-flex;
|
18
|
+
flex-wrap: wrap;
|
19
|
+
}
|
20
|
+
|
21
|
+
.external .item:nth-child(odd){
|
22
|
+
background-color: #f5f5f5;
|
23
|
+
}
|
24
|
+
|
25
|
+
.external .item{
|
26
|
+
width: 100%;
|
27
|
+
display: inline-flex;
|
28
|
+
flex-wrap: wrap;
|
29
|
+
padding: 25px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.external .item .image{
|
33
|
+
align-self: center;
|
34
|
+
}
|
35
|
+
|
36
|
+
.external .item img{
|
37
|
+
width: 200px;
|
38
|
+
margin-right: 25px;
|
39
|
+
}
|
40
|
+
|
41
|
+
.external .item div{
|
42
|
+
width: calc(100% - 225px);
|
43
|
+
}
|
44
|
+
|
45
|
+
.external .item p:last-child{
|
46
|
+
margin-bottom: 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
.external .item div.no-img{
|
50
|
+
width: 100%;
|
51
|
+
}
|
data/_sass/footer.scss
ADDED
data/_sass/header.scss
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
body > header{
|
2
|
+
box-shadow: 0 0 1px black;
|
3
|
+
}
|
4
|
+
|
1
5
|
#photo{
|
2
6
|
margin: 2vw;
|
3
7
|
min-height: 100px;
|
4
|
-
max-width: calc(24vh + 12vw);
|
8
|
+
max-width: min(calc(24vh + 12vw), 100%);
|
5
9
|
max-height: calc(24vh + 12vw);
|
6
10
|
border: 2px solid white;
|
7
11
|
object-fit: cover;
|
@@ -24,4 +28,10 @@
|
|
24
28
|
.social:hover{
|
25
29
|
-webkit-transform: scale(1.2);
|
26
30
|
transform: scale(1.2);
|
31
|
+
}
|
32
|
+
|
33
|
+
@media screen and (max-width: 768px){
|
34
|
+
body > header{
|
35
|
+
position: initial !important;
|
36
|
+
}
|
27
37
|
}
|
data/_sass/home.scss
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
#home-content{
|
2
|
+
border-spacing: 15px;
|
3
|
+
margin-top: calc(24vh + 16vw);
|
4
|
+
}
|
5
|
+
|
6
|
+
#home-content > div{
|
7
|
+
padding: 50px;
|
8
|
+
}
|
9
|
+
|
10
|
+
#home-content > div:nth-child(even){
|
11
|
+
background-color: #fafafa;
|
12
|
+
}
|
13
|
+
|
14
|
+
.posts, .projects{
|
15
|
+
display: grid;
|
16
|
+
justify-content: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
.posts{
|
20
|
+
gap: 50px 75px;
|
21
|
+
width: 100%;
|
22
|
+
display: inline-flex;
|
23
|
+
flex-wrap: wrap;
|
24
|
+
justify-content: center;
|
25
|
+
}
|
26
|
+
|
27
|
+
.projects{
|
28
|
+
grid-template-columns: repeat(auto-fit, min(100vw, 600px));
|
29
|
+
}
|
30
|
+
|
31
|
+
.row{
|
32
|
+
margin-left: 0;
|
33
|
+
margin-right: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
@media screen and (max-width: 768px){
|
37
|
+
#home-content{
|
38
|
+
margin-top: 0px;
|
39
|
+
}
|
40
|
+
|
41
|
+
#home-content > div{
|
42
|
+
padding-right: 0px;
|
43
|
+
padding-left: 0px;
|
44
|
+
}
|
45
|
+
}
|
data/_sass/post.scss
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
.post{
|
2
|
+
display: inline-flex;
|
3
|
+
margin: 0 15px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.post img{
|
7
|
+
margin: 5px 10px;
|
8
|
+
width: 400px;
|
9
|
+
height: 15em;
|
10
|
+
object-fit: cover;
|
11
|
+
}
|
12
|
+
|
13
|
+
.post .desc{
|
14
|
+
display: inline-block;
|
15
|
+
margin: 5px 10px;
|
16
|
+
width: 260px;
|
17
|
+
vertical-align: top;
|
18
|
+
}
|
19
|
+
|
20
|
+
.post a:hover{
|
21
|
+
text-decoration: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
#post{
|
25
|
+
margin: 50px;
|
26
|
+
width: min(700px, calc(100% - 100px));
|
27
|
+
font-family: "Times New Roman", Times, serif;
|
28
|
+
font-size: 1.2em;
|
29
|
+
}
|
30
|
+
|
31
|
+
#post-content img{
|
32
|
+
max-width: 100%;
|
33
|
+
}
|
34
|
+
|
35
|
+
table, th, td {
|
36
|
+
border: 1px solid silver;
|
37
|
+
}
|
38
|
+
|
39
|
+
table{
|
40
|
+
width: 100%;
|
41
|
+
}
|
42
|
+
|
43
|
+
th, td{
|
44
|
+
padding: 5px 15px;
|
45
|
+
}
|
46
|
+
|
47
|
+
th{
|
48
|
+
text-align: center;
|
49
|
+
}
|
50
|
+
|
51
|
+
@media screen and (max-width: 768px){
|
52
|
+
.post{
|
53
|
+
margin: 0 25px;
|
54
|
+
display: initial;
|
55
|
+
}
|
56
|
+
|
57
|
+
.post img, .post .desc{
|
58
|
+
width: calc(100% - 20px);
|
59
|
+
}
|
60
|
+
}
|
data/_sass/project.scss
CHANGED
@@ -3,19 +3,17 @@
|
|
3
3
|
padding: 40px;
|
4
4
|
margin: 25px;
|
5
5
|
display: inline-block;
|
6
|
-
border-radius: 15px;
|
7
6
|
transition: transform .5s ease;
|
8
7
|
}
|
9
8
|
|
10
9
|
.project img{
|
11
10
|
object-fit: contain;
|
12
|
-
max-height:
|
13
|
-
|
14
|
-
border-radius: 15px;
|
11
|
+
max-height: 300px;
|
12
|
+
width: 100%;
|
15
13
|
}
|
16
14
|
|
17
15
|
.project figcaption{
|
18
|
-
max-width:
|
16
|
+
max-width: 100%;
|
19
17
|
}
|
20
18
|
|
21
19
|
.project, .project:visited{
|
data/assets/css/home.scss
CHANGED
data/assets/js/header.js
CHANGED
@@ -1,18 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
// Get viewport dimensions
|
2
|
+
vw = $(window).width();
|
3
|
+
vh = $(window).height()
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
me_height = .24 * vh + .12 * vw // 24vh + 12vw
|
6
|
+
social_height = .05 * vw;
|
7
|
+
me_margin = .02 * vw;
|
8
|
+
|
9
|
+
$(window).resize(function(e){
|
7
10
|
$("#photo").outerHeight('');
|
8
11
|
$(".social").outerHeight('');
|
9
12
|
$("#photo").css("margin", '');
|
10
|
-
me_height =
|
11
|
-
social_height =
|
12
|
-
me_margin =
|
13
|
+
me_height = .24 * vh + .12 * vw // 24vh + 12vw
|
14
|
+
social_height = .05 * vw;
|
15
|
+
me_margin = .02 * vw;
|
16
|
+
scroll_header(e);
|
13
17
|
});
|
14
18
|
|
15
|
-
$(window).scroll(
|
19
|
+
$(window).scroll(scroll_header);
|
20
|
+
|
21
|
+
function scroll_header(e){
|
16
22
|
scroll_top = $(window).scrollTop();
|
17
23
|
// Disable resizing for small screens and negative scroll
|
18
24
|
if(scroll_top < 0 || $(window).width() <= 768) return;
|
@@ -28,5 +34,6 @@ $(window).scroll(function(e) {
|
|
28
34
|
if($(window).width() <= 945) return;
|
29
35
|
// Resize social media icons
|
30
36
|
$(".social").outerHeight(social_height - scroll_top / 5);
|
31
|
-
|
32
|
-
|
37
|
+
}
|
38
|
+
|
39
|
+
$(window).resize();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: personal-website
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,6 +24,48 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-mentions
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.5.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll-sitemap
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.4.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.4.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-seo-tag
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.6.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.6.1
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: bundler
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,17 +119,30 @@ files:
|
|
77
119
|
- LICENSE.txt
|
78
120
|
- README.md
|
79
121
|
- _includes/education.html
|
122
|
+
- _includes/external-item.html
|
80
123
|
- _includes/footer.html
|
81
124
|
- _includes/header.html
|
125
|
+
- _includes/post.html
|
82
126
|
- _includes/project.html
|
127
|
+
- _includes/share-buttons.html
|
83
128
|
- _includes/work.html
|
84
129
|
- _layouts/default.html
|
130
|
+
- _layouts/external.html
|
85
131
|
- _layouts/home.html
|
86
|
-
-
|
132
|
+
- _layouts/post.html
|
87
133
|
- _sass/experience.scss
|
134
|
+
- _sass/external-home.scss
|
135
|
+
- _sass/external.scss
|
136
|
+
- _sass/footer.scss
|
137
|
+
- _sass/header-mini.scss
|
88
138
|
- _sass/header.scss
|
139
|
+
- _sass/home.scss
|
140
|
+
- _sass/post.scss
|
89
141
|
- _sass/project.scss
|
142
|
+
- assets/css/external.scss
|
90
143
|
- assets/css/home.scss
|
144
|
+
- assets/css/post.scss
|
145
|
+
- assets/js/external.js
|
91
146
|
- assets/js/header.js
|
92
147
|
homepage: https://github.com/lbulgarelli/personal-website
|
93
148
|
licenses:
|
@@ -108,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
163
|
- !ruby/object:Gem::Version
|
109
164
|
version: '0'
|
110
165
|
requirements: []
|
111
|
-
rubygems_version: 3.1.
|
166
|
+
rubygems_version: 3.1.4
|
112
167
|
signing_key:
|
113
168
|
specification_version: 4
|
114
169
|
summary: Jekyll theme for personal websites.
|