Skip to content

Commit

Permalink
Major overhaul.
Browse files Browse the repository at this point in the history
  • Loading branch information
alaczek committed Oct 16, 2024
1 parent 0c3cf10 commit a253716
Show file tree
Hide file tree
Showing 62 changed files with 2,200 additions and 621 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_italic_400.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_italic_500.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_italic_600.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_italic_700.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_normal_400.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_normal_500.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_normal_600.ttf
Binary file not shown.
Binary file removed miko/assets/fonts/instrument-sans_normal_700.ttf
Binary file not shown.
Binary file not shown.
Binary file added miko/assets/images/header-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
61 changes: 61 additions & 0 deletions miko/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/**
* Miko functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Miko
* @since Miko 1.0
*/

declare( strict_types = 1 );

if ( ! function_exists( 'miko_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Miko 1.0
*
* @return void
*/
function miko_support() {

// Enqueue editor styles.
add_editor_style( 'style.css' );

// Make theme available for translation.
load_theme_textdomain( 'miko' );
}

endif;

add_action( 'after_setup_theme', 'miko_support' );

if ( ! function_exists( 'miko_styles' ) ) :

/**
* Enqueue styles.
*
* @since Miko 1.0
*
* @return void
*/
function miko_styles() {

// Register theme stylesheet.
wp_register_style(
'miko-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'miko-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'miko_styles' );
1 change: 1 addition & 0 deletions miko/parts/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"miko/hidden-comments"} /-->
10 changes: 1 addition & 9 deletions miko/parts/footer.html
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40)"><!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.88rem"}}} -->
<p style="font-size:0.88rem">Designed with <a href="https://wordpress.com">WordPress.com</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:pattern {"slug":"miko/footer"} /-->
39 changes: 0 additions & 39 deletions miko/patterns/404.php

This file was deleted.

63 changes: 0 additions & 63 deletions miko/patterns/archive.php

This file was deleted.

27 changes: 27 additions & 0 deletions miko/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* Title: Footer
* Slug: miko/footer
* Categories: footer
* Block Types: core/template-part/footer
* Viewport width: 1600
*/

declare( strict_types = 1 );
?>

<!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"spacing":{"padding":{"bottom":"var:preset|spacing|70","top":"var:preset|spacing|70"}}},"textColor":"contrast","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-contrast-color has-text-color has-link-color" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)">
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group">
<!-- wp:paragraph {"className":"no-underline","fontSize":"x-small"} -->
<p class="no-underline has-x-small-font-size"><?php echo __('<a href="#">Instagram</a> / <a href="#">TikTok</a> / <a href="#">X</a>', 'miko');?></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"lock":{"move":false,"remove":true},"className":"no-underline","fontSize":"x-small"} -->
<p class="no-underline has-x-small-font-size"><?php echo __('Designed with <a href="https://wordpress.org" rel="nofollow">WordPress</a>', 'miko');?></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
24 changes: 16 additions & 8 deletions miko/patterns/header.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
<?php
/**
* Title: header
* Title: Header
* Slug: miko/header
* Categories: hidden
* Inserter: no
* Categories: header
* Block Types: core/template-part/header
* Viewport width: 1600
*/

declare( strict_types = 1 );
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/pexels-gu-kssn-16241275-scaled.jpg","id":2453,"dimRatio":20,"minHeight":100,"minHeightUnit":"vh","contentPosition":"bottom left","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"2.25rem","right":"2.25rem"}}},"textColor":"foreground","layout":{"type":"constrained"}} -->
<div class="wp-block-cover alignfull is-light has-custom-content-position is-position-bottom-left has-foreground-color has-text-color" style="padding-top:var(--wp--preset--spacing--80);padding-right:2.25rem;padding-bottom:var(--wp--preset--spacing--80);padding-left:2.25rem;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim"></span><img class="wp-block-cover__image-background wp-image-2453" alt="" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/pexels-gu-kssn-16241275-scaled.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"900","fontSize":"6rem"}}} -->
<h2 class="wp-block-heading" style="font-size:6rem;font-style:normal;font-weight:900">Miko Harada</h2>
<!-- /wp:heading --></div></div>
<!-- /wp:cover -->

<!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}},"background":{"backgroundImage":{"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/header-background.jpg","source":"file","title":"header-background"},"backgroundPosition":"50% 100%"}},"backgroundColor":"contrast","textColor":"base","layout":{"type":"default"}} -->
<div class="wp-block-group has-base-color has-contrast-background-color has-text-color has-background has-link-color"><!-- wp:group {"className":"has-base-color","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}},"dimensions":{"minHeight":"100vh"},"elements":{"link":{"color":{"text":"var:preset|color|contrast"},":hover":{"color":{"text":"var:preset|color|base"}}}}},"textColor":"contrast","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"bottom","justifyContent":"stretch"}} -->
<div class="wp-block-group has-base-color has-contrast-color has-text-color has-link-color" style="min-height:100vh;padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:site-title /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
38 changes: 38 additions & 0 deletions miko/patterns/hidden-404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* Title: 404
* Slug: miko/hidden-404
* Categories: hidden
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:group {"style":{"dimensions":{"minHeight":"100vh"},"spacing":{"blockGap":"0","padding":{"top":"var:preset|spacing|70"}},"background":{"backgroundImage":{"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/groovepaper.png","source":"file","title":"groovepaper"},"backgroundSize":"300px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between"}} -->
<div class="wp-block-group" style="min-height:100vh;padding-top:var(--wp--preset--spacing--70)">
<!-- wp:spacer {"height":"0px","style":{"layout":{"selfStretch":"fixed","flexSize":"24px"},"spacing":{"margin":{"bottom":"var:preset|spacing|70"}}}} -->
<div style="margin-bottom:var(--wp--preset--spacing--70);height:0px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
<main class="wp-block-group">
<!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading"><?php echo __('Oops... That page can’t be found.', 'miko');?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo __('It looks like nothing was found at this location. Maybe try a search?', 'miko');?></p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html_x( 'Search...', 'This is a placeholder text in a search field', 'miko' ); ?>","buttonText":"","buttonUseIcon":true} /-->
</main>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"miko/footer"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
68 changes: 68 additions & 0 deletions miko/patterns/hidden-archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
/**
* Title: Archive
* Slug: miko/hidden-archive
* Categories: hidden
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:group {"style":{"spacing":{"blockGap":"0"},"dimensions":{"minHeight":"100vh"},"background":{"backgroundImage":{"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/groovepaper.png","source":"file","title":"groovepaper"},"backgroundSize":"300px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between"}} -->
<div class="wp-block-group" style="min-height:100vh">
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)">
<!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"layout":{"type":"default"}} -->
<div class="wp-block-query">
<!-- wp:group {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--70)">
<!-- wp:query-title {"type":"archive","showPrefix":false} /-->

<!-- wp:group {"layout":{"type":"constrained","contentSize":"67%","justifyContent":"left"}} -->
<div class="wp-block-group">
<!-- wp:term-description {"style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}}} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|80"}}} -->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:post-featured-image {"isLink":true} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group">
<!-- wp:post-date /-->

<!-- wp:post-title {"isLink":true} /-->
</div>
<!-- /wp:group -->

<!-- wp:post-excerpt {"moreText":"Read more \u0026rarr;"} /-->
</div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|70"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70)">
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"left","orientation":"vertical"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:query -->
</main>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"miko/footer"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
Loading

0 comments on commit a253716

Please sign in to comment.