From 650bed41baa14c6c332a14ab8e4608ead833778e Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Wed, 6 Apr 2022 12:27:06 +0530 Subject: [PATCH 1/7] Add editor config --- .editorconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..a541e47e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org + +# WordPress Coding Standards +# https://make.wordpress.org/core/handbook/coding-standards/ + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = tab + +[*.yml] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false From 1f710a7fcb4bed2a6eaab959d08b3d24435a0428 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Wed, 6 Apr 2022 16:29:41 +0530 Subject: [PATCH 2/7] Add stylesheet for elementary theme --- style.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 style.css diff --git a/style.css b/style.css new file mode 100644 index 00000000..747d7bc4 --- /dev/null +++ b/style.css @@ -0,0 +1,15 @@ +/* +Theme Name: Elementary +Theme URI: https://rtcamp.com/ +Author: rtCamp +Author URI: https://rtcamp.com/ +Description: Elementary is a FSE based theme, +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: elementary +Tags: fse +This theme, like WordPress, is licensed under the GPL. +Use it to make something cool, have fun, and share what +you've learned with others. +*/ From f4ff55e79796ca15897248ea77e08b76b4caf434 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Wed, 6 Apr 2022 16:30:26 +0530 Subject: [PATCH 3/7] Add theme.json file for elementary fse theme --- theme.json | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 theme.json diff --git a/theme.json b/theme.json new file mode 100644 index 00000000..cc207ca9 --- /dev/null +++ b/theme.json @@ -0,0 +1,199 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "customTemplates": [], + "settings": { + "appearanceTools": true, + "color": { + "palette": [ + { + "slug": "foreground", + "color": "#242321", + "name": "Foreground" + }, + { + "slug": "background", + "color": "#FCFBF8", + "name": "Background" + }, + { + "slug": "primary", + "color": "#71706E", + "name": "Primary" + }, + { + "slug": "tertiary", + "color": "#CFCFCF", + "name": "Tertiary" + } + ] + }, + "custom": { + "spacing": { + "small": "clamp(20px, 4vw, 40px)", + "medium": "clamp(48px, 8vw, 100px)", + "large": "clamp(100px, 12vw, 460px)", + "outer": "min(4vw, 90px)" + } + }, + "layout": { + "contentSize": "620px", + "wideSize": "1260px" + }, + "spacing": { + "units": [ + "%", + "px", + "em", + "rem", + "vh", + "vw" + ] + } + }, + "styles": { + "blocks": { + "core/button": { + "border": { + "radius": "0" + }, + "color": { + "background": "var(--wp--preset--color--foreground)", + "text": "var(--wp--preset--color--background)" + }, + "typography": { + "fontSize": "var(--wp--preset--typography--font-size--normal)", + "textTransform": "uppercase" + } + }, + "core/heading": { + "typography": { + "fontWeight": "100", + "lineHeight": "1.1" + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-comments": { + "elements": { + "h3": { + "typography": { + "textTransform": "uppercase" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + }, + "spacing": { + "padding": { + "top": "var(--wp--custom--spacing--small)" + } + } + }, + "core/post-navigation-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontWeight": "100", + "textTransform": "uppercase" + } + }, + "core/query-pagination": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/pullquote": { + "border": { + "width": "0" + }, + "spacing": { + "padding": { + "top": "var(--wp--custom--spacing--medium)", + "bottom": "var(--wp--custom--spacing--medium)" + } + }, + "typography": { + "fontWeight": "100", + "lineHeight": "1.2" + } + }, + "core/quote": { + "border": { + "width": "1px" + } + }, + "core/separator": { + "color": { + "background": "var(--wp--preset--color--foreground)" + } + }, + "core/site-title": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)", + "fontWeight": "400", + "textTransform": "uppercase" + } + } + }, + "color": { + "background": "var(--wp--preset--color--background)", + "text": "var(--wp--preset--color--foreground)" + }, + "elements": { + "h1": { + "typography": { + "fontSize": "clamp(3rem, 8vw, 4.5rem)" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--huge)" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "h4": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "h5": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)" + } + }, + "h6": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + } + }, + "spacing": { + "blockGap": "1.25rem" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)", + "fontWeight": "400", + "lineHeight": "1.6" + } + }, + "templateParts": [ + { + "name": "header", + "title": "Header", + "area": "header" + }, + { + "name": "footer", + "title": "Footer", + "area": "footer" + } + ] +} From 40f0034edaf6a7addcd720ce371c7a5a187d7c32 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Wed, 6 Apr 2022 16:30:56 +0530 Subject: [PATCH 4/7] Add index.php file --- index.php | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 00000000..877d8c3f --- /dev/null +++ b/index.php @@ -0,0 +1,4 @@ + Date: Wed, 6 Apr 2022 19:34:05 +0530 Subject: [PATCH 5/7] Add templates --- templates/404.html | 13 ++++++ templates/archive.html | 47 ++++++++++++++++++++ templates/home.html | 45 +++++++++++++++++++ templates/index.html | 45 +++++++++++++++++++ templates/page.html | 21 +++++++++ templates/search.html | 51 ++++++++++++++++++++++ templates/single.html | 98 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 320 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/archive.html create mode 100644 templates/home.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/search.html create mode 100644 templates/single.html diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 00000000..2db44c7b --- /dev/null +++ b/templates/404.html @@ -0,0 +1,13 @@ + + + +
+ +
+ +
+ +
+ + + diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 00000000..b8fadaa8 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,47 @@ + + + +
+ + + +
+ + + + + + +
+ +
+ + + +
+ + + +
+ +
+ + + + + + + + + + + + + + +
+ +
+ + + diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 00000000..1d3cd9f3 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,45 @@ + + + +
+ + +
+ + + + + +
+ +
+ + + +
+ + + +
+ +
+ + + + + +
+ + + + + + + + + + +
+ + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 00000000..1d3cd9f3 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,45 @@ + + + +
+ + +
+ + + + + +
+ +
+ + + +
+ + + +
+ +
+ + + + + +
+ + + + + + + + + + +
+ + + diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 00000000..dc72a3e6 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,21 @@ + + + +
+ +
+ + + + + + + +
+ + + +
+ + + diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 00000000..08cf9789 --- /dev/null +++ b/templates/search.html @@ -0,0 +1,51 @@ + + + +
+ +
+ + + +
+ + +
+ + + + + +
+ +
+ + + +
+ + + +
+ +
+ + + + + +
+ + + + + + + + + + +
+ + + diff --git a/templates/single.html b/templates/single.html new file mode 100644 index 00000000..11e08b73 --- /dev/null +++ b/templates/single.html @@ -0,0 +1,98 @@ + + + +
+ +
+ +
+ +
+
+ + +
+
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + +
+ + + From 804bcd59e166e590159dc70a3d83be5a8f680acb Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Wed, 6 Apr 2022 19:34:29 +0530 Subject: [PATCH 6/7] Add template parts --- parts/footer.html | 1 + parts/header.html | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 parts/footer.html create mode 100644 parts/header.html diff --git a/parts/footer.html b/parts/footer.html new file mode 100644 index 00000000..cd1d4ddb --- /dev/null +++ b/parts/footer.html @@ -0,0 +1 @@ + diff --git a/parts/header.html b/parts/header.html new file mode 100644 index 00000000..a4f97837 --- /dev/null +++ b/parts/header.html @@ -0,0 +1,19 @@ + +
+ +
+ +
+ + + +
+ + + + + +
+ +
+ From b4426ef210e7704c6f38e09c963c8566a70c1b7f Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Thu, 7 Apr 2022 13:59:32 +0530 Subject: [PATCH 7/7] Remove editor config from feature branch --- .editorconfig | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index a541e47e..00000000 --- a/.editorconfig +++ /dev/null @@ -1,21 +0,0 @@ -# This file is for unifying the coding style for different editors and IDEs -# editorconfig.org - -# WordPress Coding Standards -# https://make.wordpress.org/core/handbook/coding-standards/ - -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true -indent_style = tab - -[*.yml] -indent_style = space -indent_size = 2 - -[*.md] -trim_trailing_whitespace = false