Skip to content

Commit

Permalink
[#91] cleaning up style and fixing a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget committed Dec 21, 2023
1 parent 8777378 commit e506ae4
Show file tree
Hide file tree
Showing 7 changed files with 1,002 additions and 994 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
return;
endif;
?>
<section <?php block_attr( $block, 'flex gap-5 my-4' ); ?>>
<section <?php block_attr( $block, 'flex gap-5 my-4 flex-wrap' ); ?>>
<?php
// Goal.
if ( $goal ) :
Expand Down
4 changes: 2 additions & 2 deletions client-mu-plugins/goodbids/blocks/bid-now/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public function display(): bool {
* @return string
*/
public function get_button_text(): string {
$button_text = __( 'Bid Now', 'goodbids' );
$button_text = __( 'GOODBID Now', 'goodbids' );

if ( $this->bid_product_id && ! is_admin() ) {
$bid_product = wc_get_product( $this->bid_product_id );
$button_text = sprintf(
/* translators: %s: Bid Price */
__( 'Bid %s Now', 'goodbids' ),
__( 'GOODBID %s Now', 'goodbids' ),
wc_price( $bid_product->get_regular_price() )
);
}
Expand Down
11 changes: 6 additions & 5 deletions client-mu-plugins/goodbids/blocks/bid-now/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
endif;
?>
<div <?php block_attr( $block, $bid_now->get_block_classes() ); ?>>
<div class="wp-block-button has-custom-width wp-block-button__width-100">
<a href="<?php echo esc_url( $bid_now->get_button_url() ); ?>" class="wp-block-button__link wp-element-button">
<?php echo wp_kses_post( $bid_now->get_button_text() ); ?>
</a>
</div>
<a
href="<?php echo esc_url( $bid_now->get_button_url() ); ?>"
class="wp-block-button__link wp-element-button w-full block text-center"
>
<?php echo wp_kses_post( $bid_now->get_button_text() ); ?>
</a>
</div>
6 changes: 6 additions & 0 deletions client-mu-plugins/goodbids/src/assets/css/editor.css
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/** Put Editor Specific Styles Here */
/* Import any CSS from blocks before tailwind */
@import '../../../blocks/reward-product-gallery/block.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
9 changes: 9 additions & 0 deletions client-mu-plugins/goodbids/src/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
/* Import any CSS from blocks before tailwind */
@import '../../../blocks/reward-product-gallery/block.css';

@tailwind base;
@tailwind components;
@tailwind utilities;


@layer components {
#vip-non-prod-bar,
#a8c-debug-flag {
@apply hidden;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
<div class="wp-block-columns alignwide">
<!-- wp:column {"width":""} -->
<div class="wp-block-column">
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}}} /-->

<!-- wp:acf/reward-product-gallery {"name":"acf/reward-product-gallery","data":{},"mode":"preview"} /-->
<!-- wp:acf/reward-product-gallery {"name":"acf/reward-product-gallery","data":{},"mode":"preview"} /-->
</div>
<!-- /wp:column -->

Expand Down
Loading

0 comments on commit e506ae4

Please sign in to comment.