Skip to content

Commit 3b062ae

Browse files
committed
Modificando aspecto de landing
1 parent 8bb1bb8 commit 3b062ae

File tree

4 files changed

+41
-30
lines changed

4 files changed

+41
-30
lines changed

_includes/landing.html

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class="row justify-content-center align-items-center p-4">
2-
<div class="col-md-6 text-center mt-4">
1+
<div class="row justify-content-center align-items-center p-0 m-0">
2+
<div class="col-md-6 text-center mt-0">
33

44
<!-- Fine Circle Responsive Image -->
55
<div id="container" class="my-2">
@@ -11,14 +11,14 @@
1111

1212
<div class="text-muted wow animated slideInUp" data-wow-delay=".2s">
1313
<div class="container mt-4">
14-
<h3 class="font-weight-bold">Hi! Welcome to my website</h3>
14+
<h3 class="font-weight-bold" style="margin-top: 0px">Hi! Welcome to my website</h3>
1515
</div>
1616
</div>
1717

1818
</div>
1919

2020
<section class="p-4 align-items-start" class="text-muted wow animated slideInUp" data-wow-delay=".1s">
21-
<div class="col-lg-8 mx-auto markdown-body" style="text-align: justify; margin-top: 12px">
21+
<div class="col-lg-8 mx-auto markdown-body" style="text-align: justify; margin-top: 0px">
2222
<p>
2323
I am Alejandro, <span id="age"></span> years old. Here, you can take a look at my (personal) <a href="/projects">projects</a> (I have selected several that are available on my GitHub profile), <a href="/blog">blog</a> (where I document and share insights about computer vision, image processing, math, geometry and engineering, among other topics), <a href="/publications">publications</a> (a mix of informal, formal, and quasi-formal documents I find valuable for anyone interested in my fields), and, if you'd like to know more about me, <a href="/about">additional information</a>.
2424
</p>
@@ -36,28 +36,12 @@ <h3 class="font-weight-bold">Hi! Welcome to my website</h3>
3636
</div>
3737
</section>
3838

39-
4039
</div>
4140

42-
<div style="white-space: nowrap; overflow: hidden; position: relative; width: 100%; height: 50px; background-color: transparent;">
43-
<div style="display: inline-block; position: absolute; animation: scroll-left 10s linear infinite; font-family: monospace; color: grey;">
41+
<div id="scroll-container">
42+
<div id="scroll-text">
4443
&lt;div&gt; 🚀 {{ site.description }} 🚀 &lt;/div&gt;
4544
</div>
4645
</div>
4746

48-
<style>
49-
@keyframes scroll-left {
50-
0% {
51-
transform: translateX(200%);
52-
}
53-
100% {
54-
transform: translateX(-100%);
55-
}
56-
}
57-
58-
div[style*="animation: scroll-left"] {
59-
white-space: nowrap;
60-
}
61-
</style>
62-
6347
<script src="{{ '/assets/js/age-calculator.js' | relative_url }}"></script>

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<body class="h-100 d-flex flex-column">
1414

15-
<main class="flex-shrink-0 container mt-5">
15+
<main class="flex-shrink-0 container mt-1">
1616
{% include navbar.html %}
1717
{{ content }}
1818
</main>

_sass/_footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
text-decoration: underline;
2727
text-decoration-color: yellow;
2828
text-align: right;
29-
margin-top: 4em;
29+
margin-top: 0.5em;
3030
margin-right: 2em;
3131
}

_sass/_landing.scss

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
justify-content: center;
77
align-items: center;
88
position: relative;
9-
width: 100%;
10-
height: 0;
11-
padding-bottom: 100%; /* Maintains a 1:1 aspect ratio */
9+
width: auto; /* To adjust to the image */
10+
height: auto; /* To adjust to the image */
1211
font-size: 0; /* Removes extra whitespace caused by inline-block elements */
1312
}
1413

1514
#element {
16-
position: absolute;
15+
position: relative;
1716
top: 0;
1817
bottom: 0;
1918
left: 0;
@@ -23,14 +22,42 @@
2322
display: flex;
2423
justify-content: center;
2524
align-items: center;
25+
width: 100%;
26+
height: 100%;
2627
}
2728

2829
.circle-image {
29-
width: 80%;
30-
height: 80%;
30+
width: 50%;
31+
height: 50%;
3132
border-radius: 50%;
3233
object-fit: cover;
3334
object-position: center;
3435
display: block; /* Removes any space below the image */
3536
}
3637

38+
#scroll-container {
39+
white-space: nowrap;
40+
overflow: hidden;
41+
position: relative;
42+
width: 100%;
43+
height: 50px;
44+
background-color: transparent;
45+
margin-top: 25px;
46+
}
47+
48+
#scroll-text {
49+
display: inline-block;
50+
position: absolute;
51+
animation: scroll-left 10s linear infinite;
52+
font-family: monospace;
53+
color: grey;
54+
}
55+
56+
@keyframes scroll-left {
57+
0% {
58+
transform: translateX(200%);
59+
}
60+
100% {
61+
transform: translateX(-100%);
62+
}
63+
}

0 commit comments

Comments
 (0)