Skip to content

Commit

Permalink
trying new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Jolo committed Feb 26, 2025
1 parent baa47ec commit 847fffe
Showing 1 changed file with 59 additions and 13 deletions.
72 changes: 59 additions & 13 deletions themes/osi/template-parts/content-board-member.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,68 @@
<?php
/**
* Template part for displaying board memeber post type content
* Template part for displaying board member post type content
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package osi
*/

?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php get_template_part( 'template-parts/header-board-member' ); ?>

<div class="entry-content post--content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<section class="alignwide email-block">
<?php // get_template_part( 'template-parts/nav-postname-pager' ); ?>
<?php // get_template_part( 'template-parts/email-block' ); ?>
</section>

</article><!-- #post-<?php the_ID(); ?> -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="board-member-layout">
<!-- Include the header for the board member -->
<div class="left-column">
<?php get_template_part('template-parts/header-board-member'); ?>
</div>

<!-- Right Column for the post content -->
<div class="right-column">
<div class="entry-content post--content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</div>
</div>
</article><!-- #post-<?php the_ID(); ?> -->

<style>
.board-member-layout {
display: flex;
}

.left-column {
flex: 0 0 30%; /* Fixed width of 30% */
padding: 20px; /* Optional padding */
text-align: center; /* Center content */
}

.right-column {
flex: 1; /* Takes the remaining space */
overflow-y: auto; /* Makes it scrollable if content overflows */
padding: 20px; /* Optional padding */
}

.member-image {
margin-bottom: 1.5rem;
}

.member-image img.circular-image {
border-radius: 50%;
border: 4px solid #FFF;
width: 300px; /* adjust as needed */
height: 300px;
object-fit: cover;
}

.member-position,
.member-dates,
.member-seat,
.member-term-item {
display: block;
margin-bottom: 1rem;
}

.member-pronouns {
font-family: 'Space Mono', monospace;
display: inline-block;
}
</style>

0 comments on commit 847fffe

Please sign in to comment.