Forráskód Böngészése

Bennett: Initial commit. (#5283)

* Bennett: Initial commit.

* Bennett: Update text domain in style.css.

* Bennett: Add Header Footer Only template with custom header template part specified.

* Bennett: Renaming folders: block-template-parts to parts and block-templates to templates.

* Bennett: Remove custom implementation of minimal header.

* Bennett: Update all templates to use the minimal heaer.

* Simplify the header

Co-authored-by: Ben Dwyer <ben@scruffian.com>
alaczek 3 éve
szülő
commit
4911304eff
5 módosított fájl, 129 hozzáadás és 0 törlés
  1. 1 0
      bennett/parts/header.html
  2. 41 0
      bennett/readme.txt
  3. BIN
      bennett/screenshot.png
  4. 39 0
      bennett/style.css
  5. 48 0
      bennett/theme.json

+ 1 - 0
bennett/parts/header.html

@@ -0,0 +1 @@
+<!-- wp:pattern {"slug":"blockbase/header-minimal"} /-->

+ 41 - 0
bennett/readme.txt

@@ -0,0 +1,41 @@
+=== Bennett ===
+Contributors: Automattic
+Requires at least: 5.8
+Tested up to: 5.8
+Requires PHP: 5.7
+License: GPLv2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+
+== Description ==
+
+Bennett is a minimalist theme, designed for single-page websites.
+
+== Changelog ==
+
+= 1.0.0 =
+* Initial release
+
+== Copyright ==
+
+Bennett WordPress Theme, (C) 2021 Automattic
+Bennett 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.
+
+Bennett uses the following third-party resources:
+
+Still life photo of a pear by PxHere
+Source: https://pxhere.com/en/photo/1495925
+Used in theme screenshot and demo site.
+
+Still life photo of a kiwi fruit by Michal Jarmoluk
+Source: https://pixabay.com/photos/kiwi-fruit-vitamins-healthy-eating-428080/
+Used in theme demo site.

BIN
bennett/screenshot.png


+ 39 - 0
bennett/style.css

@@ -0,0 +1,39 @@
+/*
+Theme Name: Bennet
+Theme URI: https://wordpress.com/theme/bennett
+Author: Automattic
+Author URI: https://automattic.com/
+Description: Bennet is a minimalist theme, designed for single-page websites.
+Requires at least: 5.8
+Tested up to: 5.8
+Requires PHP: 5.7
+Version: 1.0.0
+License: GNU General Public License v2 or later
+License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
+Template: blockbase
+Text Domain: bennett
+Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, auto-loading-homepage
+
+Bennet WordPress Theme, (C) 2021 Automattic
+Bennet 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.
+
+Bennet uses the following third-party resources:
+
+Still life photo of a pear by PxHere
+Source: https://pxhere.com/en/photo/1495925
+Used in theme screenshot and demo site.
+
+Still life photo of a kiwi fruit by Michal Jarmoluk
+Source: https://pixabay.com/photos/kiwi-fruit-vitamins-healthy-eating-428080/
+Used in theme demo site.
+*/

+ 48 - 0
bennett/theme.json

@@ -0,0 +1,48 @@
+{
+    "version": 2,
+    "settings": {
+        "color": {
+            "palette": [
+                {
+                    "slug": "foreground",
+                    "color": "#000000",
+                    "name": "Foreground",
+                    "default": "#000000"
+                },
+                {
+                    "slug": "background",
+                    "color": "#fff973",
+                    "name": "Background",
+                    "default": "#ffffff"
+                }
+            ]
+        },
+        "typography": {
+            "fontFamilies": [
+                {
+                    "fontFamily": "\"Rubik\", sans-serif",
+                    "slug": "body-font",
+                    "name": "Body (Rubik)",
+                    "google": "family=Rubik:ital,wght@0,300..900;1,300..900",
+                    "fontSlug": "rubik"
+                },
+                {
+                    "fontFamily": "\"Rubik\", sans-serif",
+                    "slug": "heading-font",
+                    "name": "Heading (Rubik)",
+                    "google": "family=Rubik:ital,wght@0,300..900;1,300..900",
+                    "fontSlug": "rubik"
+                }
+            ]
+        },
+        "custom": {
+            "color": {
+                "foreground": "var(--wp--preset--color--foreground)",
+                "background": "var(--wp--preset--color--background)",
+                "primary": "var(--wp--preset--color--foreground)",
+                "secondary": "var(--wp--preset--color--foreground)",
+                "tertiary": "var(--wp--preset--color--background)"
+            }
+        }
+    }
+}