Skip to content

Commit 6ba7561

Browse files
authored
Update about.liquid
1 parent 0647a35 commit 6ba7561

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

_layouts/about.liquid

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,43 @@ layout: default
3636
width: 100%;
3737
height: 100%;
3838
}
39-
40-
.full-width-logo {
41-
display: block; /* Ensure the image is treated as a block-level element */
42-
margin: 0 auto; /* Center the image horizontally */
43-
width: 100%; /* Set the image width to 100% of the screen width */
44-
height: auto; /* Maintain the aspect ratio */
39+
/* Full-screen logo */
40+
.full-screen-logo {
41+
display: block;
42+
margin: 0;
43+
width: 100%;
44+
height: 100vh; /* Full viewport height */
45+
object-fit: cover; /* Maintain aspect ratio while covering screen */
46+
}
47+
/* Center-align header and content */
48+
.centered-content {
49+
position: absolute;
50+
top: 50%;
51+
left: 50%;
52+
transform: translate(-50%, -50%);
53+
text-align: center;
54+
}
55+
.post-header {
56+
text-align: center;
57+
margin: 0 auto;
58+
}
59+
/* Additional styles for other sections if needed */
60+
.post {
61+
max-width: 900px;
62+
margin: 0 auto;
63+
padding: 20px;
64+
box-sizing: border-box;
4565
}
4666
</style>
4767

4868

69+
<div>
70+
<img src="/assets/img/lab_logo.png" alt="Lab Logo" class="full-screen-logo">
71+
</div>
72+
4973
<!-- <div class="transparent-bg"> -->
5074
<div class="post">
5175
<header class="post-header">
52-
<!-- Centered Lab Logo -->
53-
<p align="center" style="margin: 0; padding: 0;">
54-
<img src="/assets/img/lab_logo.png" alt="Lab Logo" class="full-width-logo">
55-
</p>
56-
5776
<h1 class="post-title">
5877
{% if site.title == 'blank' %}
5978
<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }}

0 commit comments

Comments
 (0)