Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brute: add theme #7876

Merged
merged 6 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added brute/assets/fonts/barlow/barlow_italic_400.ttf
Binary file not shown.
Binary file added brute/assets/fonts/barlow/barlow_italic_700.ttf
Binary file not shown.
Binary file added brute/assets/fonts/barlow/barlow_normal_400.ttf
Binary file not shown.
Binary file added brute/assets/fonts/barlow/barlow_normal_700.ttf
Binary file not shown.
Binary file added brute/assets/fonts/d-din/d-din-exp_italic_400.ttf
Binary file not shown.
Binary file added brute/assets/fonts/d-din/d-din-exp_normal_400.ttf
Binary file not shown.
Binary file added brute/assets/fonts/rubik/rubik_italic_300.ttf
Binary file not shown.
Binary file added brute/assets/fonts/rubik/rubik_normal_300.ttf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions brute/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* Brute functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Brute
* @since Brute 1.0
*/


if ( ! function_exists( 'brute_support' ) ) :

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

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

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

endif;

add_action( 'after_setup_theme', 'brute_support' );

if ( ! function_exists( 'brute_styles' ) ) :

/**
* Enqueue styles.
*
* @since Brute 1.0
*
* @return void
*/
function brute_styles() {

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

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

}

endif;

add_action( 'wp_enqueue_scripts', 'brute_styles' );
1 change: 1 addition & 0 deletions brute/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"brute/footer"} /-->
23 changes: 23 additions & 0 deletions brute/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- wp:group {"style":{"spacing":{"blockGap":"0rem","margin":{"top":"0rem","bottom":"0rem"},"padding":{"top":"2rem","bottom":"3rem"}},"border":{"bottom":{"width":"1px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="border-bottom-width:1px;margin-top:0rem;margin-bottom:0rem;padding-top:2rem;padding-bottom:3rem"><!-- wp:group {"align":"full","style":{"border":{"top":{"width":"1px"}},"spacing":{"padding":{"top":"0rem","right":"1.5rem","bottom":"0rem","left":"1.5rem"},"margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="border-top-width:1px;margin-top:0rem;margin-bottom:0rem;padding-top:0rem;padding-right:1.5rem;padding-bottom:0rem;padding-left:1.5rem"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"0rem","left":"0rem"}}}} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"verticalAlignment":"stretch","width":"15%","style":{"border":{"top":{"width":"0.3rem","style":"solid"},"right":[],"bottom":[],"left":[]},"spacing":{"padding":{"top":"1rem"}}}} -->
<div class="wp-block-column is-vertically-aligned-stretch" style="border-top-style:solid;border-top-width:0.3rem;padding-top:1rem;flex-basis:15%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:site-title /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"stretch","width":"25%","style":{"spacing":{"padding":{"top":"1.3rem"}}}} -->
<div class="wp-block-column is-vertically-aligned-stretch" style="padding-top:1.3rem;flex-basis:25%"><!-- wp:site-tagline {"style":{"layout":{"selfStretch":"fixed","flexSize":"50%"},"typography":{"textTransform":"none"}},"fontSize":"small"} /--></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"stretch","width":"35%"} -->
<div class="wp-block-column is-vertically-aligned-stretch" style="flex-basis:35%"></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"stretch","width":"25%","style":{"spacing":{"padding":{"top":"1.3rem"}}}} -->
<div class="wp-block-column is-vertically-aligned-stretch" style="padding-top:1.3rem;flex-basis:25%"><!-- wp:navigation {"overlayMenu":"never"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
12 changes: 12 additions & 0 deletions brute/parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group">
<!-- wp:post-author {"showAvatar":false,"fontSize":"small"} /-->
<!-- wp:post-date {"isLink":true,"fontSize":"small"} /-->
<!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
<!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
61 changes: 61 additions & 0 deletions brute/parts/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0rem","bottom":"0rem"},"padding":{"right":"0rem","left":"0rem","top":"0px","bottom":"0px"},"blockGap":"4rem"},"typography":{"fontStyle":"normal","fontWeight":"400"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"},"fontSize":"small"} -->
<div class="wp-block-group has-small-font-size" style="margin-top:0rem;margin-bottom:0rem;padding-top:0px;padding-right:0rem;padding-bottom:0px;padding-left:0rem;font-style:normal;font-weight:400"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:heading {"fontSize":"small"} -->
<h2 class="wp-block-heading has-small-font-size">Share</h2>
<!-- /wp:heading -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.5rem"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"fontSize":"small"} -->
<div class="wp-block-group has-small-font-size"><!-- wp:group {"style":{"border":{"top":{"style":"solid","width":"1px"},"right":{"style":"solid","width":"1px"},"bottom":{"style":"solid","width":"1px"},"left":{"style":"solid","width":"1px"},"radius":"2240px"},"spacing":{"padding":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
<div class="wp-block-group" style="border-radius:2240px;border-top-style:solid;border-top-width:1px;border-right-style:solid;border-right-width:1px;border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;padding-top:1rem;padding-right:1rem;padding-bottom:1rem;padding-left:1rem"><!-- wp:social-links {"iconColor":"secondary","iconColorValue":"#f7f8f2","size":"has-small-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"linkedin"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"border":{"top":{"style":"solid","width":"1px"},"right":{"style":"solid","width":"1px"},"bottom":{"style":"solid","width":"1px"},"left":{"style":"solid","width":"1px"},"radius":"2240px"},"spacing":{"padding":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
<div class="wp-block-group" style="border-radius:2240px;border-top-style:solid;border-top-width:1px;border-right-style:solid;border-right-width:1px;border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;padding-top:1rem;padding-right:1rem;padding-bottom:1rem;padding-left:1rem"><!-- wp:social-links {"iconColor":"secondary","iconColorValue":"#f7f8f2","size":"has-small-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"x"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"border":{"top":{"style":"solid","width":"1px"},"right":{"style":"solid","width":"1px"},"bottom":{"style":"solid","width":"1px"},"left":{"style":"solid","width":"1px"},"radius":"2240px"},"spacing":{"padding":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
<div class="wp-block-group" style="border-radius:2240px;border-top-style:solid;border-top-width:1px;border-right-style:solid;border-right-width:1px;border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;padding-top:1rem;padding-right:1rem;padding-bottom:1rem;padding-left:1rem"><!-- wp:social-links {"iconColor":"secondary","iconColorValue":"#f7f8f2","size":"has-small-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"mastodon"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"border":{"top":{"style":"solid","width":"1px"},"right":{"style":"solid","width":"1px"},"bottom":{"style":"solid","width":"1px"},"left":{"style":"solid","width":"1px"},"radius":"2240px"},"spacing":{"padding":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
<div class="wp-block-group" style="border-radius:2240px;border-top-style:solid;border-top-width:1px;border-right-style:solid;border-right-width:1px;border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;padding-top:1rem;padding-right:1rem;padding-bottom:1rem;padding-left:1rem"><!-- wp:social-links {"iconColor":"secondary","iconColorValue":"#f7f8f2","size":"has-small-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:heading {"fontSize":"small"} -->
<h2 class="wp-block-heading has-small-font-size">About the blog</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>RAW is a WordPress blog theme design inspired by the Brutalist concepts from the homonymous Architectural movement.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:heading {"fontSize":"small"} -->
<h2 class="wp-block-heading has-small-font-size">Get updated</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Subscribe to our newsletter and receive our very latest news.</p>
<!-- /wp:paragraph -->

<!-- wp:jetpack/contact-form {"subject":"[brute] Pages","to":"[email protected]","className":"is-style-outlined","style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-jetpack-contact-form is-style-outlined" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:jetpack/field-name {"required":true,"requiredText":"(required)","inputColor":"#f7f8f2","labelColor":"#f7f8f2","fieldBackgroundColor":"#111111","borderColor":"#f7f8f2"} /-->

<!-- wp:jetpack/field-email {"required":true,"requiredText":"(required)","inputColor":"#f7f8f2","labelColor":"#f7f8f2","fieldBackgroundColor":"#111111","borderColor":"#f7f8f2"} /-->

<!-- wp:jetpack/button {"element":"button","text":"Subscribe","width":"100%","lock":{"remove":true},"fontSize":"small","style":{"typography":{"textTransform":"uppercase"}}} /--></div>
<!-- /wp:jetpack/contact-form --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
43 changes: 43 additions & 0 deletions brute/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* Title: 404
* Slug: brute/404
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"blockGap":"0","padding":{"top":"var:preset|spacing|80","bottom":"0rem"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--80);padding-bottom:0rem"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|80"}},"dimensions":{"minHeight":"55vh"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group alignwide" style="min-height:55vh;padding-bottom:var(--wp--preset--spacing--80)"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"0rem","left":"0rem"},"margin":{"top":"0rem","bottom":"0rem"},"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}}}} -->
<div class="wp-block-columns alignwide" style="margin-top:0rem;margin-bottom:0rem;padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:column {"width":"70%","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"}}}} -->
<div class="wp-block-column" style="padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80);flex-basis:70%"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group alignwide"><!-- wp:heading {"textAlign":"left","level":1,"align":"wide","className":"has-text-align-center","style":{"typography":{"fontSize":"6.5rem","lineHeight":"1.1"}}} -->
<h1 class="wp-block-heading alignwide has-text-align-left has-text-align-center" style="font-size:6.5rem;line-height:1.1"><?php esc_html_e('This page was not found.', 'brute');?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"fontSize":"medium"} -->
<p class="has-medium-font-size"><?php esc_html_e('Please try a new search.', 'brute');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:search {"showLabel":false,"placeholder":"Search...","widthUnit":"%","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"width":"0px","style":"none"}}} /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"1%"} -->
<div class="wp-block-column" style="flex-basis:1%"></div>
<!-- /wp:column -->

<!-- wp:column {"width":"3%"} -->
<div class="wp-block-column" style="flex-basis:3%"></div>
<!-- /wp:column -->

<!-- wp:column {"width":"25%"} -->
<div class="wp-block-column" style="flex-basis:25%"></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","align":"full"} /--></main>
<!-- /wp:group -->
52 changes: 52 additions & 0 deletions brute/patterns/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
/**
* Title: Comments
* slug: brute/comments
* inserter: no
*/

?>

<!-- wp:comments {"className":"wp-block-comments-query-loop"} -->
<div class="wp-block-comments wp-block-comments-query-loop">
<!-- wp:comments-title {"level":3} /-->

<!-- wp:comment-template -->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"},"style":{"spacing":{"blockGap":"0.5em"}}} -->
<div class="wp-block-group">
<!-- wp:avatar {"size":40,"style":{"spacing":{"margin":{"top":"0.5em"}}}} /-->

<!-- wp:group -->
<div class="wp-block-group">
<!-- wp:comment-author-name /-->

<!-- wp:group {"layout":{"type":"flex"},"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0.5em"}}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px">
<!-- wp:comment-date {"format":"F j, Y \\a\\t g:i a"} /-->

<!-- wp:comment-edit-link /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:comment-content /-->

<!-- wp:comment-reply-link /-->
</div>
<!-- /wp:group -->
<!-- /wp:comment-template -->

<!-- wp:comments-pagination -->
<!-- wp:comments-pagination-previous /-->
<!-- wp:comments-pagination-numbers /-->
<!-- wp:comments-pagination-next /-->
<!-- /wp:comments-pagination -->

<!-- wp:post-comments-form /-->
</div>
<!-- /wp:comments -->
35 changes: 35 additions & 0 deletions brute/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* Title: footer
* Slug: brute/footer
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"0rem","left":"0rem"}},"border":{"left":{"width":"1px"},"top":{"width":"1px"},"right":{"width":"1px"},"bottom":[]}}} -->
<div class="wp-block-columns alignwide" style="border-top-width:1px;border-right-width:1px;border-left-width:1px"><!-- wp:column {"verticalAlignment":"center","width":"50%","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--40);flex-basis:50%"><!-- wp:paragraph -->
<p><?php esc_html_e('Upper Ground, South Bank — London SE1 9PX', 'brute');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","width":"50%","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--40);flex-basis:50%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- wp:paragraph {"align":"left"} -->
<p class="has-text-align-left"><?php esc_html_e('Designed with WordPress', 'brute');?></p>
<!-- /wp:paragraph -->

<!-- wp:social-links {"iconColor":"secondary","iconColorValue":"#f7f8f2","size":"has-small-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"linkedin"} /-->

<!-- wp:social-link {"url":"#","service":"x"} /-->

<!-- wp:social-link {"url":"#","service":"mastodon"} /-->

<!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
Loading
Loading