Skip to content

Commit 847fffe

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

File tree

1 file changed

+59
-13
lines changed

1 file changed

+59
-13
lines changed
Lines changed: 59 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,68 @@
11
<?php
22
/**
3-
* Template part for displaying board memeber post type content
3+
* Template part for displaying board member post type content
44
*
55
* @link https://codex.wordpress.org/Template_Hierarchy
66
*
77
* @package osi
88
*/
99

1010
?>
11-
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12-
<?php get_template_part( 'template-parts/header-board-member' ); ?>
13-
14-
<div class="entry-content post--content">
15-
<?php the_content(); ?>
16-
</div><!-- .entry-content -->
17-
<section class="alignwide email-block">
18-
<?php // get_template_part( 'template-parts/nav-postname-pager' ); ?>
19-
<?php // get_template_part( 'template-parts/email-block' ); ?>
20-
</section>
21-
22-
</article><!-- #post-<?php the_ID(); ?> -->
11+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12+
<div class="board-member-layout">
13+
<!-- Include the header for the board member -->
14+
<div class="left-column">
15+
<?php get_template_part('template-parts/header-board-member'); ?>
16+
</div>
17+
18+
<!-- Right Column for the post content -->
19+
<div class="right-column">
20+
<div class="entry-content post--content">
21+
<?php the_content(); ?>
22+
</div><!-- .entry-content -->
23+
</div>
24+
</div>
25+
</article><!-- #post-<?php the_ID(); ?> -->
26+
27+
<style>
28+
.board-member-layout {
29+
display: flex;
30+
}
31+
32+
.left-column {
33+
flex: 0 0 30%; /* Fixed width of 30% */
34+
padding: 20px; /* Optional padding */
35+
text-align: center; /* Center content */
36+
}
37+
38+
.right-column {
39+
flex: 1; /* Takes the remaining space */
40+
overflow-y: auto; /* Makes it scrollable if content overflows */
41+
padding: 20px; /* Optional padding */
42+
}
43+
44+
.member-image {
45+
margin-bottom: 1.5rem;
46+
}
47+
48+
.member-image img.circular-image {
49+
border-radius: 50%;
50+
border: 4px solid #FFF;
51+
width: 300px; /* adjust as needed */
52+
height: 300px;
53+
object-fit: cover;
54+
}
55+
56+
.member-position,
57+
.member-dates,
58+
.member-seat,
59+
.member-term-item {
60+
display: block;
61+
margin-bottom: 1rem;
62+
}
63+
64+
.member-pronouns {
65+
font-family: 'Space Mono', monospace;
66+
display: inline-block;
67+
}
68+
</style>

0 commit comments

Comments
 (0)