🐞 fix: Update styles for proper background
Sync TODOs with Issues / sync_todos (push) Successful in 6s
Sync TODOs with Issues / sync_todos (push) Successful in 6s
This commit is contained in:
+7
-23
@@ -11,6 +11,7 @@ namespace KsPortfolio;
|
||||
global $views;
|
||||
|
||||
$headerLogo = getFieldValue( 'header.header_logo.url' ) ? getFieldValue( 'header.header_logo.url' ) : get_theme_file_uri( '/static/img/logo.svg' );
|
||||
$linkResume = getFieldValue( 'header.resume_link' ) ? getFieldValue( 'header.resume_link' ) : '';
|
||||
|
||||
// Check conditions for displaying the hero section
|
||||
$showHero = in_array(
|
||||
@@ -25,23 +26,6 @@ $showHero = in_array(
|
||||
),
|
||||
true
|
||||
);
|
||||
|
||||
// Carbon Blue project templates render their own <h1> inside the .aura-bg
|
||||
// hero, so suppress the page-hero partial on those templates to avoid
|
||||
// duplicate <h1> elements on the page.
|
||||
$projectTemplates = array( 'front-page', 'archive-projects', 'single-projects' );
|
||||
$isProjectTemplate = in_array( get_page_template_slug( get_the_ID() ), $projectTemplates, true );
|
||||
if ( ! $isProjectTemplate ) {
|
||||
$isProjectTemplate = in_array( get_post_type(), array( 'projects' ), true ) && (
|
||||
is_front_page()
|
||||
|| is_archive( 'projects' )
|
||||
|| is_singular( 'projects' )
|
||||
);
|
||||
}
|
||||
if ( $isProjectTemplate ) {
|
||||
$showHero = false;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -60,19 +44,19 @@ if ( $isProjectTemplate ) {
|
||||
<?php echo esc_html__( 'Skip to main content' ); ?>
|
||||
</a>
|
||||
|
||||
<header role="banner" class="site-header bg-secondary flex flex-col items-center justify-start">
|
||||
<?php get_template_part( 'views/components/nav-aux' ); ?>
|
||||
<?php get_template_part( 'views/partials/aura-bg' ); ?>
|
||||
|
||||
<header role="banner" class="site-header bg-secondary flex flex-col items-center justify-start">
|
||||
<div class="header__nav-main container py-4 items-center grid gap-x-8 gap-y-0 grid-cols-[auto_1fr_auto] grid-rows-[1fr] justify-between">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="site-header__logo block">
|
||||
<img class="site-header__logo-img" src="<?php echo esc_url( $headerLogo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?> logo" />
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="site-header__logo m-0 p-0 flex gap-x-4 items-center justify-start text-white! text-45px font-bold leading-none hover:underline">
|
||||
<img class="site-header__logo-img aspect-square h-full w-full max-h-12 max-w-12" src="<?php echo esc_url( $headerLogo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?> logo" /> Keith Solomon
|
||||
</a>
|
||||
|
||||
<?php get_template_part( 'views/components/nav-main' ); ?>
|
||||
|
||||
<div class="site-header__aux">
|
||||
<a class="button button--outline" href="<?php echo esc_url( home_url( '/cv/' ) ); ?>">
|
||||
<?php echo esc_html__( 'Download CV', 'ks-portfolio' ); ?>
|
||||
<a class="button button--outline" href="<?php echo esc_url( $linkResume ); ?>">
|
||||
<?php echo esc_html__( 'Resume', 'ks-portfolio' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user