diff --git a/fewer/assets/alignments-front.css b/fewer/assets/alignments-front.css new file mode 100644 index 0000000000..2990e36f3a --- /dev/null +++ b/fewer/assets/alignments-front.css @@ -0,0 +1,87 @@ +/* + * Alignments, loaded in the front-end only. + */ + +body { + margin: 0; +} + +* { + box-sizing: border-box; +} + +.alignfull { + margin: 0 calc(50% - 50vw); + max-width: 100vw; + width: 100vw; +} + +/* +.wp-site-blocks, +.wp-block-template-part.alignfull { + padding: 0 var(--wp--custom--margin--horizontal); +} + +.wp-site-blocks > *:not(.wp-block-post-content), +.wp-site-blocks .wp-block-post-content > * { + max-width: var(--wp--custom--width--default); + margin-left: auto; + margin-right: auto; +} + +.wp-site-blocks .alignwide { + width: var(--wp--custom--width--wide); + max-width: 100%; + margin-left: auto; + margin-right: auto; +} + +.wp-site-blocks .alignfull { + transform: translateX(calc(0px - var(--wp--custom--margin--horizontal))); + width: calc(100% + (2 * var(--wp--custom--margin--horizontal))); + max-width: calc(100% + (2 * var(--wp--custom--margin--horizontal))); + margin-left: 0; + margin-right: 0; + box-sizing: content-box; +} + +.wp-site-blocks .wp-block-template-part.alignfull { + width: 100%; + max-width: 100%; +} + +.wp-site-blocks .wp-block-columns.alignfull { + width: 100%; + max-width: 100%; +} + +.aligncenter { + text-align: center; +} + +.wp-site-blocks .alignleft { + float: left; + margin-right: 2em; + max-width: 360px; +} + +.wp-site-blocks .alignright { + float: right; + margin-left: 2em; + max-width: 360px; +} + +@media screen and (min-width: 1290px) { + + .wp-site-blocks, + .wp-block-template-part.alignfull { + padding: 0; + } + + .wp-site-blocks .alignfull { + transform: translateX(0px); + width: 100% + var(--wp--custom--margin--horizontal)); + max-width: calc(100% + var(--wp--custom--margin--horizontal)); + } +} +*/ diff --git a/fewer/assets/images/about.png b/fewer/assets/images/about.png new file mode 100644 index 0000000000..74f6231455 Binary files /dev/null and b/fewer/assets/images/about.png differ diff --git a/fewer/assets/images/services-cover-image.png b/fewer/assets/images/services-cover-image.png new file mode 100644 index 0000000000..e6d1a5fb12 Binary files /dev/null and b/fewer/assets/images/services-cover-image.png differ diff --git a/fewer/assets/images/team1.png b/fewer/assets/images/team1.png new file mode 100644 index 0000000000..b6f2445d49 Binary files /dev/null and b/fewer/assets/images/team1.png differ diff --git a/fewer/assets/images/team2.png b/fewer/assets/images/team2.png new file mode 100644 index 0000000000..59f11389b4 Binary files /dev/null and b/fewer/assets/images/team2.png differ diff --git a/fewer/assets/images/team3.png b/fewer/assets/images/team3.png new file mode 100644 index 0000000000..d1f347200a Binary files /dev/null and b/fewer/assets/images/team3.png differ diff --git a/fewer/assets/images/team4.png b/fewer/assets/images/team4.png new file mode 100644 index 0000000000..8737629590 Binary files /dev/null and b/fewer/assets/images/team4.png differ diff --git a/fewer/assets/style-editor.css b/fewer/assets/style-editor.css new file mode 100644 index 0000000000..cc6a817f62 --- /dev/null +++ b/fewer/assets/style-editor.css @@ -0,0 +1,7 @@ +/*-------------------------------------------------------------- +# Editor Alignment Widths +--------------------------------------------------------------*/ + +.wp-block { + max-width: inherit; +} diff --git a/fewer/block-template-parts/footer.html b/fewer/block-template-parts/footer.html new file mode 100644 index 0000000000..c635454dff --- /dev/null +++ b/fewer/block-template-parts/footer.html @@ -0,0 +1,27 @@ + +
+ + + +
+
+
+ + + +
+

Oliefabriksvej 29, 43, 2770
Kastrup, Denmark

+ + + +

info@agardbolding.com
+4536562983

+
+ + + +
+

Follow Us
@agardbolding

+
+
+
+ diff --git a/fewer/block-template-parts/new-header.html b/fewer/block-template-parts/new-header.html new file mode 100644 index 0000000000..06d06e8d77 --- /dev/null +++ b/fewer/block-template-parts/new-header.html @@ -0,0 +1,27 @@ + +
+
+ + + +
+ + + + + + + + + + + + + +
+
+ + + +
+ \ No newline at end of file diff --git a/fewer/block-template-parts/post-content.html b/fewer/block-template-parts/post-content.html new file mode 100644 index 0000000000..7f36794ed8 --- /dev/null +++ b/fewer/block-template-parts/post-content.html @@ -0,0 +1,29 @@ + +
+
+ + + +
+ + +

+
+
+ + + +
+ + + +
+
+ +
+ + + +
+
+ \ No newline at end of file diff --git a/fewer/block-templates/index.html b/fewer/block-templates/index.html new file mode 100644 index 0000000000..148843dc7a --- /dev/null +++ b/fewer/block-templates/index.html @@ -0,0 +1,7 @@ + +
+ + + +
+ \ No newline at end of file diff --git a/fewer/block-templates/single.html b/fewer/block-templates/single.html new file mode 100644 index 0000000000..af5fb6dfac --- /dev/null +++ b/fewer/block-templates/single.html @@ -0,0 +1,7 @@ + +
+ + + +
+ diff --git a/fewer/experimental-theme.json b/fewer/experimental-theme.json new file mode 100644 index 0000000000..6b0b1b8903 --- /dev/null +++ b/fewer/experimental-theme.json @@ -0,0 +1,149 @@ +{ + "global": { + "settings": { + "color": { + "palette": [ + { + "slug": "black", + "color": "#000000", + "name": "Black" + }, + { + "slug": "accent", + "color": "#D13400", + "name": "Accent" + }, + { + "slug": "background", + "color": "#f5f5f5", + "name": "Background" + }, + { + "slug": "grey", + "color": "#767676", + "name": "Grey" + } + ], + "gradients": [ ] + + }, + "typography": { + "customLineHeight": true, + "fontFamilies": [ + { + "fontFamily": "\"Epilogue\", sans-serif", + "slug": "epilogue", + "name": "Epilogue" + } + ], + "fontSizes": [ + { + "slug": "small", + "size": "15px", + "name": "Small" + }, + { + "slug": "normal", + "size": "23px", + "name": "Normal" + }, + { + "slug": "large", + "size": "35px", + "name": "Large" + }, + { + "slug": "extra-large", + "size": "60px", + "name": "Extra large" + } + ], + "spacing": { + "customSpacing": true + } + }, + "custom": { + "line-height": { + "body": 1.4 + }, + "margin": { + "horizontal": "0" + }, + "width": { + "default": "960px", + "wide": "1100px" + } + } + }, + "styles": { + "color": { + "background": "var(--wp--preset--color--background)", + "text": "var(--wp--preset--color--black)", + "link": "var(--wp--preset--color--black)" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--epilogue)", + "fontSize": "var(--wp--preset--font-size--normal)", + "fontStyle": "var(--wp--preset--font-style--normal)", + "fontWeight": "var(--wp--preset--font-weight--300)", + "lineHeight": "var(--wp--custom--line-height--body)" + } + } + }, + "core/site-title": { + "styles": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)", + "textDecoration": "none" + } + } + }, + "core/heading/h1": { + "styles": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-large)" + } + } + }, + "core/heading/h2": { + "styles": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + } + }, + "core/heading/h3": { + "styles": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)" + } + } + }, + "core/heading/h4": { + "styles": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + } + }, + "core/heading/h5": { + "styles": { + "color": { + "text": "var(--wp--preset--color--grey)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + } + }, + "core/heading/h6": { + "styles": { + "color": { + "text": "var(--wp--preset--color--grey)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + } + } +} diff --git a/fewer/functions.php b/fewer/functions.php new file mode 100644 index 0000000000..6fdfd5a412 --- /dev/null +++ b/fewer/functions.php @@ -0,0 +1,84 @@ +get( 'Version' ) ); + + // Enqueue alignments stylesheet. + wp_enqueue_style( 'fewer-alignments-style', get_template_directory_uri() . '/assets/alignments-front.css', array(), wp_get_theme()->get( 'Version' ) ); + + // Enqueue Google fonts, if necessary. + wp_enqueue_style( 'fewer-fonts', fewer_fonts_url(), array(), null ); +} +add_action( 'wp_enqueue_scripts', 'fewer_scripts' ); + +/** + * Add Google webfonts, if necessary. + * + * - See: http://themeshaper.com/2014/08/13/how-to-add-google-fonts-to-wordpress-themes/ + */ +function fewer_fonts_url() { + $fonts_url = ''; + + /* Translators: If there are characters in your language that are not + * supported by Epilogue, translate this to 'off'. Do not translate + * into your own language. + */ + $epilogue = esc_html_x( 'on', 'Epilogue font: on or off', 'fewer' ); + + if ( 'off' !== $epilogue ) { + $font_families = array(); + + $font_families[] = 'Epilogue:300,300i'; + + $query_args = array( + 'family' => urlencode( implode( '|', $font_families ) ), + 'subset' => urlencode( 'latin,latin-ext' ), + ); + + $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); + } + + return esc_url_raw( $fonts_url ); +} + +// Block Patterns. +require get_template_directory() . '/inc/block-patterns.php'; diff --git a/fewer/inc/block-patterns.php b/fewer/inc/block-patterns.php new file mode 100644 index 0000000000..d6542e8c68 --- /dev/null +++ b/fewer/inc/block-patterns.php @@ -0,0 +1,213 @@ + esc_html__( 'Fewer', 'fewer' ) ) + ); +} + +/** + * Register Block Patterns. + */ +if ( function_exists( 'register_block_pattern' ) ) { + + // Services Page. + register_block_pattern( + 'fewer/services', array( + 'title' => esc_html__( 'Services Page', 'fewer' ), + 'categories' => array( 'fewer' ), + 'content' => '

' . esc_attr__( 'Use this space to say what makes your service special.', 'fewer' ) . '


' . esc_attr__( 'Service A', 'fewer' ) . '

' . esc_attr__( 'Add more information about yourself and your services.', 'fewer' ) . '

' . esc_attr__( 'Service B', 'fewer' ) . '

' . esc_attr__( 'Add more information about yourself and your services.', 'fewer' ) . '

Service C

' . esc_attr__( 'Add more information about yourself and your services.', 'fewer' ) . '


' . esc_attr__( 'Service A', 'fewer' ) . '

' . esc_attr__( 'Add more information about yourself and your services.', 'fewer' ) . '

' . esc_attr__( 'Service B', 'fewer' ) . '

' . esc_attr__( 'Add more information about yourself and your services.', 'fewer' ) . '

' . esc_attr__( 'Want to work with us?', 'fewer' ) . '

', + ) + ); + + // Team Page. + register_block_pattern( + 'fewer/team', array( + 'title' => esc_html__( 'Team Page', 'fewer' ), + 'categories' => array( 'fewer' ), + 'content' => ' +
+
+ + + +
+

' . esc_attr__( 'We are a small team of talented professionals with a wide range of skills and experience. We love what we do, and we do it with passion. We look forward to working with you.', 'fewer' ) . '

+
+
+ + + +
+ + + +
+
+ + + +
+
' . esc_attr__( 'Photo of architect', 'fewer' )  . '
+ + + +

Bente Jung

+ + + +
' . esc_attr__( 'Architect', 'fewer' ) . '
+ + + +

' . esc_attr__( 'A short bio with personal history, key achievements, or an interesting fact.', 'fewer' ) . '

+ + + +

mail@example.com

+
+ + + +
+
' . esc_attr__( 'Photo of architect', 'fewer' )  . '
+ + + +

Aleksander Ateak

+ + + +
' . esc_attr__( 'Architect', 'fewer' ) . '
+ + + +

' . esc_attr__( 'A short bio with personal history, key achievements, or an interesting fact.', 'fewer' ) . '

+ + + +

mail@example.com

+
+
+ + + +
+
+ + + +
+
' . esc_attr__( 'Photo of architect', 'fewer' )  . '
+ + + +

Celia Gunnar

+ + + +
' . esc_attr__( 'Architect', 'fewer' ) . '
+ + + +

' . esc_attr__( 'A short bio with personal history, key achievements, or an interesting fact.', 'fewer' ) . '

+ + + +

mail@example.com

+
+ + + +
+
' . esc_attr__( 'Photo of architect', 'fewer' )  . '
+ + + +

Martin Dengwenyi

+ + + +
' . esc_attr__( 'Architect', 'fewer' ) . '
+ + + +

' . esc_attr__( 'A short bio with personal history, key achievements, or an interesting fact.', 'fewer' ) . '

+ + + +

mail@example.com

+
+
+ + + +
+ + + +
+

' . esc_attr__( 'Want to work with us?', 'fewer' ) . '

+ + + + + + + +

+
+ ', + ) + ); + + // About Page. + register_block_pattern( + 'fewer/about', array( + 'title' => esc_html__( 'About Page', 'fewer' ), + 'categories' => array( 'fewer' ), + 'content' => ' +
+
+
' . esc_attr__( 'Photo of CEO', 'fewer' ) . '
+
+ + + +
+ + +

' . esc_attr__( 'We’re a collaborative architecture office committed to sustainable, ethical architectural design.', 'fewer' ) . '

+ + + +

' . esc_attr__( 'We have been designing and creating buildings with our diverse team for over ten years. We welcome projects of all sizes.', 'fewer' ) . '

+ + + + +
+
+ ', + ) + ); +} diff --git a/fewer/index.php b/fewer/index.php new file mode 100644 index 0000000000..2ec1cbdc30 --- /dev/null +++ b/fewer/index.php @@ -0,0 +1 @@ +