Browse Source

added markup and css vars

master
rdrew 7 months ago
parent
commit
5d7b1e2ac3
  1. 21
      src/Plugin/Block/LibraryFundraiserBlock.php

21
src/Plugin/Block/LibraryFundraiserBlock.php

@ -29,21 +29,14 @@ class LibraryFundraiserBlock extends BlockBase {
--block-border: 1px solid #ccc;
--block-padding: 1rem;
--block-margin: 1rem;
--box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
--heading-color: init;
--heading-size: 2rem;
--button-color: green;
--text-color: init;
/*=================================*/
display: flex;
flex-direction: column;
align-items: center;
background: var(--block-background);
border: var(--block-border);
margin: var(--block-margin);
padding: var(--block-padding);
h1 {
color: var(--heading-color);
font-size: var(--heading-size);
@ -54,12 +47,20 @@ class LibraryFundraiserBlock extends BlockBase {
button {
background: var(--button-color);
}
display: flex;
flex-direction: column;
align-items: center;
background: var(--block-background);
border: var(--block-border);
box-shadow: var(--box-shadow);
margin: var(--block-margin);
padding: var(--block-padding);
}
</style>
<div class="libfund_block">
<h1 class="test">It works</h1>
<h1>Donate to the Robertson Library</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a href="https://library.upei.ca/"><button class="button button1">click me</button></a>
<a href="https://library.upei.ca/"><button class="button">Donate Now!</button></a>
</div>';
$build = [
'#theme' => 'library_fundraiser_block',

Loading…
Cancel
Save