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

Azur: Add Theme #7579

Merged
merged 1 commit into from
Jan 9, 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 azur/assets/fonts/jost_italic_100.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_200.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_300.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_400.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_500.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_600.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_700.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_800.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_italic_900.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_100.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_200.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_300.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_400.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_500.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_600.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_700.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_800.ttf
Binary file not shown.
Binary file added azur/assets/fonts/jost_normal_900.ttf
Binary file not shown.
61 changes: 61 additions & 0 deletions azur/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/**
* Azur functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Azur
* @since Azur 1.0
*/

declare( strict_types = 1 );

if ( ! function_exists( 'azur_support' ) ) :

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

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

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

endif;

add_action( 'after_setup_theme', 'azur_support' );

if ( ! function_exists( 'azur_styles' ) ) :

/**
* Enqueue styles.
*
* @since Azur 1.0
*
* @return void
*/
function azur_styles() {

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

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

}

endif;

add_action( 'wp_enqueue_scripts', 'azur_styles' );
1 change: 1 addition & 0 deletions azur/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"azur/footer"} /-->
1 change: 1 addition & 0 deletions azur/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"azur/header"} /-->
13 changes: 13 additions & 0 deletions azur/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* Title: A 404 page
* Slug: azur/404
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'Oops! That page can’t be found.', 'azur' ); ?></p>
<!-- /wp:paragraph -->
29 changes: 29 additions & 0 deletions azur/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* Title: Default footer
* Slug: azur/footer
* Categories: footer
* Block Types: core/template-part/footer
*/

declare( strict_types = 1 );
?>

<!-- wp:spacer {"height":"90px"} -->
<div style="height:90px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","right":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left","contentSize":"400px"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:paragraph {"align":"left","style":{"typography":{"fontSize":"0.8rem","fontWeight":"500"}}} -->
<p class="has-text-align-left" style="font-size:0.8rem;font-weight:500"><?php
/* Translators: WordPress link. */
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'ici' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
esc_html__( 'Azur Theme ● Designed with %1$s', 'ici' ),
$wordpress_link
);
?></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
16 changes: 16 additions & 0 deletions azur/patterns/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Title: Default header
* Slug: azur/header
* Categories: header
* Block Types: core/template-part/header
*/

declare( strict_types = 1 );
?>

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|70","right":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70"},"blockGap":"0","margin":{"bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained","contentSize":"800px","justifyContent":"left"}} -->
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:site-title /-->
</div>
<!-- /wp:group -->
11 changes: 11 additions & 0 deletions azur/patterns/search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Title: Search
* Slug: azur/search
* Insert: no
*/

declare( strict_types = 1 );
?>

<!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'azur' ); ?>","showLabel":false,"buttonText":"<?php esc_attr_e( 'Search', 'azur' ); ?>","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"style":"solid","width":"2px"}},"borderColor":"primary"} /-->
37 changes: 37 additions & 0 deletions azur/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
=== Azur ===
Contributors:
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

== Description ==
Azur draws its inspiration from the mesmerizing hues of the Azure coast, where the Èze village is located.


== Changelog ==

= 1.0.0 =
* Initial release

== Copyright ==

Azur WordPress Theme, (C) 2023
Azur is distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Jost Font
Copyright 2020 The Jost Project Authors (https://github.com/indestructible-type/Jost)
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL
License URL: http://scripts.sil.org/OFL
-- End of Jost Font credits --
Binary file added azur/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions azur/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Theme Name: Azur
Theme URI: https://wordpress.com/theme/azur
Author: Automattic
Author URI: https://automattic.com/
Description: Azur draws its inspiration from the mesmerizing hues of the Azure coast, where the Èze village is located.
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azur
Tags: blog, one-column, wide-blocks, block-styles, featured-images, full-site-editing, rtl-language-support, threaded-comments, translation-ready
*/

/*
* Control the hover stylings of outline block style.
*/
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
background-color: var(--wp--preset--color--accent-2);
border-color: var(--wp--preset--color--accent-2);
color: var(--wp--preset--color--background);
}
36 changes: 36 additions & 0 deletions azur/styles/verte.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"settings": {
"color": {
"palette": [
{
"color": "#009f23",
"name": "Primary",
"slug": "primary"
},
{
"color": "#000000",
"name": "Secondary",
"slug": "secondary"
},
{
"color": "#ffffff",
"name": "Background",
"slug": "background"
},
{
"color": "#009f2311",
"name": "Accent",
"slug": "accent"
},
{
"color": "#2f2f2f",
"name": "Accent / Two",
"slug": "accent-2"
}
]
}
},
"title": "Verte",
"version": 2
}
11 changes: 11 additions & 0 deletions azur/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"left":"var:preset|spacing|70","right":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<main class="wp-block-group" style="padding-left:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70)">
<!-- wp:pattern {"slug":"azur/404"} /-->

<!-- wp:pattern {"slug":"azur/search"} /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
33 changes: 33 additions & 0 deletions azur/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main"} -->
<main class="wp-block-query">
<!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"var:preset|spacing|70","right":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-group alignwide">
<!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default"}} -->
<!-- wp:post-title {"isLink":true} /-->
<!-- /wp:post-template -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70","right":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide">
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

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

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
13 changes: 13 additions & 0 deletions azur/templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"left":"var:preset|spacing|70","right":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-left:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70)">
<!-- wp:post-title {"style":{"typography":{"fontSize":"0.8rem","fontStyle":"normal","fontWeight":"500"}}} /-->

<!-- wp:post-featured-image /-->

<!-- wp:post-content /-->
</div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
39 changes: 39 additions & 0 deletions azur/templates/search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"var:preset|spacing|70","right":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:query-title {"type":"search"} /-->
</div>
<!-- /wp:group -->

<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main"} -->
<main class="wp-block-query">
<!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"var:preset|spacing|70","right":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-group alignwide">
<!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default"}} -->
<!-- wp:post-title {"isLink":true} /-->
<!-- /wp:post-template -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70","right":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)">
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide">
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

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

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
31 changes: 31 additions & 0 deletions azur/templates/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"left":"var:preset|spacing|70","right":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group" style="padding-left:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70)">
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group">
<!-- wp:post-title {"style":{"typography":{"fontSize":"0.8rem","fontStyle":"normal","fontWeight":"500"}}} /-->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.8rem","fontStyle":"normal","fontWeight":"500"}}} -->
<p style="font-size:0.8rem;font-style:normal;font-weight:500">●</p>
<!-- /wp:paragraph -->

<!-- wp:post-date /-->
</div>
<!-- /wp:group -->

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

<!-- wp:post-terms {"term":"post_tag","style":{"typography":{"fontStyle":"normal","fontWeight":"700","textTransform":"uppercase","fontSize":"3rem"},"spacing":{"margin":{"top":"var:preset|spacing|30"}}}} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group">
<!-- wp:post-navigation-link {"type":"previous","arrow":"arrow"} /-->

<!-- wp:post-navigation-link {"arrow":"arrow"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
Loading
Loading