quick styles fix

This commit is contained in:
prospect
2024-01-17 07:19:00 -05:00
parent e28c22fe22
commit 258a51266a
3 changed files with 29 additions and 7 deletions

View File

@@ -20,10 +20,10 @@ if (count($subpages) > 0) { ?>
<li class="category-cards flex rounded-md shadow-md relative overflow-hidden w-full" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/bgs/internal/<?php echo $subpage->post_name ?>.png');">
<a class="relative w-full py-8 px-4 space-y-2 lg:flex lg:flex-col lg:items-center lg:justify-center" href="<?php echo get_site_url() . '/' . $pages[$subpage->post_parent]['page']->post_name . '/' . $subpage->post_name ?>">
<div class="bg-white inset-0 h-full flex items-center absolute bg-opacity-60 rounded-md py-2 px-4 lg:px-8">
<div class="bg-white bg-opacity-60 rounded-md py-2 px-4 lg:px-8">
<h2 class="font-bold uppercase"><?php echo $subpage->post_title ?></h2>
</div>
<?php if (get_field('description', $pageID) != '') { ?>
<p class="lg:text-center"><?php echo get_field('description', $pageID); ?></p>
<?php } ?>