Skip to content

Commit baa47ec

Browse files
author
Ariel Jolo
committed
trying new layout
1 parent 1f22e51 commit baa47ec

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

themes/osi/template-parts/header-board-member.php

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<header class="entry-header cover--header no-thumbnail">
22
<div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim">
33
<div class="wp-block-cover__inner-container">
4-
<div class="wp-block-columns">
4+
<div class="board-member-layout">
55
<!-- Left Column -->
6-
<div class="wp-block-column" style="text-align: center;">
6+
<div class="left-column">
77
<?php if (has_post_thumbnail()) : ?>
88
<div class="member-image">
99
<?php the_post_thumbnail('full', array('class' => 'circular-image')); ?>
@@ -18,7 +18,7 @@
1818
</div>
1919

2020
<!-- Right Column -->
21-
<div class="wp-block-column">
21+
<div class="right-column">
2222
<span class="pill-taxonomy">
2323
<?php echo wp_kses_post( osi_get_single_taxonomy_terms_links( $post, 'taxonomy-status' ) ); ?>
2424
</span>
@@ -61,23 +61,42 @@
6161
</header>
6262

6363
<style>
64+
.board-member-layout {
65+
display: flex;
66+
}
67+
68+
.left-column {
69+
flex: 0 0 30%; /* Fixed width of 30% */
70+
padding: 20px; /* Optional padding */
71+
text-align: center; /* Center content */
72+
}
73+
74+
.right-column {
75+
flex: 1; /* Takes the remaining space */
76+
overflow-y: auto; /* Makes it scrollable if content overflows */
77+
padding: 20px; /* Optional padding */
78+
}
79+
6480
.member-image {
6581
margin-bottom: 1.5rem;
6682
}
83+
6784
.member-image img.circular-image {
6885
border-radius: 50%;
6986
border: 4px solid #FFF;
7087
width: 300px; /* adjust as needed */
7188
height: 300px;
7289
object-fit: cover;
7390
}
91+
7492
.member-position,
7593
.member-dates,
7694
.member-seat,
7795
.member-term-item {
7896
display: block;
7997
margin-bottom: 1rem;
8098
}
99+
81100
.member-pronouns {
82101
font-family: 'Space Mono', monospace;
83102
display: inline-block;

0 commit comments

Comments
 (0)