Compare commits

..

13 Commits

Author SHA1 Message Date
07d576c105 home: update url of images to match server 2023-01-24 13:33:16 +05:00
0eff6e0a7f nav-menu: change color of current item 2023-01-24 13:33:16 +05:00
fa61b633ef fix rocketchat channel alert 2023-01-24 12:49:41 +05:00
84307dca74 Merge branch 'main' into dev 2023-01-24 08:44:15 +01:00
dfe56013f9 update drone.yml 2023-01-24 12:43:25 +05:00
a81e7e4777 home: tweak styling
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-23 22:11:50 +05:00
ad3363f4bf tweak typography 2023-01-23 18:57:00 +05:00
0cf22317e7 home: style list list 2023-01-23 11:06:37 +05:00
87ca5ee238 add custom stylesheet ¯\_(ツ)_/¯ 2023-01-23 11:06:37 +05:00
c67a53f535 move heading typography to styles > elements 2023-01-23 11:06:37 +05:00
3wc
a059df6945 Fix build notification, switch branch
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-19 11:11:24 -08:00
3wc
b90c47a608 Add Drone config 2023-01-19 11:10:55 -08:00
3wc
dae9f9b3ae Add Drone config
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-19 11:08:30 -08:00
7 changed files with 112 additions and 30 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
---
kind: pipeline
name: deploy to docker container
steps:
- name: remove .git
image: debian:buster
commands:
- rm -r .git/
- name: php syntax check
image: php:8.0.10-cli
commands:
- for f in $(find /drone -name '*.php'); do php -l "$f"; done
- name: docker cp deploy
image: 3wordchant/docker-cp-deploy:latest
settings:
host: smol-wp.autonomic.zone
service: beta_autonomic_zone_app
source: .
dest: /var/www/html/wp-content/themes/autonomic-block-theme
deploy_key:
from_secret: drone_ssh_smol-wp.autonomic.zone
depends_on:
- php syntax check
- name: notify on failure
image: plugins/slack
settings:
username: comradebritney
channel: internal.website
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}"
webhook:
from_secret: rc_builds_url
depends_on:
- docker cp deploy
when:
status:
- failure
trigger:
branch:
- main

BIN
assets/images/arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

8
functions.php Normal file
View File

@ -0,0 +1,8 @@
<?php
add_action('init', 'custom_stylesheet');
function custom_stylesheet() {
wp_register_style( 'custom-styles', get_template_directory_uri() . '/style.css' );
}
wp_enqueue_style( 'custom-styles' );

View File

@ -1,5 +1,5 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"secondary","textColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background-color has-secondary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:columns -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"secondary","textColor":"background","layout":{"type":"constrained"},"fontSize":"small"} -->
<div class="wp-block-group has-background-color has-secondary-background-color has-text-color has-background has-link-color has-small-font-size" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":44,"shouldSyncIcon":false} /-->

View File

@ -7,16 +7,16 @@
*/
?>
<!-- wp:heading {"level":1} -->
<h1>Autonomic is a co-operative that is owned and run by its workers</h1>
<!-- wp:heading {"level":1,"style":{"spacing":{"padding":{"bottom":"var:preset|spacing|40"}}}} -->
<h1 style="padding-bottom:var(--wp--preset--spacing--40)">Autonomic is a co-operative that is owned and run by its workers <img class="wp-image-99" style="width: 26px;" src="https://beta.autonomic.zone/wp-content/uploads/2023/01/leaf.png" alt=""></h1>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>What we offer</h2>
<!-- /wp:heading -->
<!-- wp:list -->
<ul><!-- wp:list-item -->
<!-- wp:list {"style":{"typography":{"fontSize":"28px","fontStyle":"normal","fontWeight":"700","lineHeight":"1.6"},"spacing":{"padding":{"left":"120px"}}}} -->
<ul style="padding-left:120px;font-size:28px;font-style:normal;font-weight:700;line-height:1.6"><!-- wp:list-item -->
<li>Support</li>
<!-- /wp:list-item -->
@ -46,8 +46,8 @@
<!-- /wp:paragraph -->
<!-- wp:group {"layout":{"type":"flex","orientation":"horizontal","justifyContent":"center"}} -->
<div class="wp-block-group"><!-- wp:buttons {"style":{"spacing":{"blockGap":"0"}}} -->
<div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-group"><!-- wp:buttons {"style":{"spacing":{"blockGap":"0"},"typography":{"fontStyle":"normal","fontWeight":"700"}}} -->
<div class="wp-block-buttons" style="font-style:normal;font-weight:700"><!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button">Sustainability</a></div>
<!-- /wp:button -->
@ -61,12 +61,12 @@
<!-- /wp:buttons --></div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p>You can consult our expanded list of values here.</p>
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">You can consult our expanded list of values here.</p>
<!-- /wp:paragraph -->
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"},"style":{"spacing":{"blockGap":"0"}}} -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"button"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-button-background-color has-background wp-element-button">Contact us at hello@autonomic.zone</a></div>
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"button","fontSize":"small"} -->
<div class="wp-block-button has-custom-font-size has-small-font-size"><a class="wp-block-button__link has-button-background-color has-background wp-element-button">Contact us at <strong>hello@autonomic.zone</strong></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

View File

@ -20,3 +20,39 @@ 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.
*/
.wp-site-blocks h2 {
display: flex;
height: 36px;
align-items: center;
border-bottom: 1px solid;
}
.wp-site-blocks h2::before {
content: "";
border-top: 1px solid;
border-right: 1px solid;
width: 80px;
margin-right: 8px;
height: 36px;
border-bottom: 1px solid var(--wp--preset--color--background);
}
.wp-site-blocks h2::after {
content: "";
border-top: 1px solid;
flex-grow: 1;
margin-left: 8px;
height: 36px;
border-left: 1px solid;
border-bottom: 1px solid var(--wp--preset--color--background);
}
.wp-site-blocks ul {
list-style-image: url('https://beta.autonomic.zone/wp-content/uploads/2023/01/arrow.png');
}
.wp-block-navigation-item.current-menu-item {
color: var(--wp--preset--color--secondary)
}

View File

@ -25,7 +25,7 @@
},
{
"slug": "secondary",
"color": "#27c773",
"color": "#0FB45D",
"name": "Secondary"
},
{
@ -114,8 +114,8 @@
"fontWeight": "600",
"textTransform": "uppercase"
}
}
},
"core/heading": {
"elements": {
"h1": {
"typography": {
@ -131,8 +131,6 @@
}
}
}
}
}
},
"templateParts": [
{