SU-SWS / decanter

A collection of front end web resources.
GNU General Public License v3.0
41 stars 9 forks source link

V6 haiwr 266 pull quote #807

Closed cjwest closed 3 years ago

cjwest commented 3 years ago

READY FOR Review

What do you think of this approach? Any suggestions or changes?

Summary

This adds pull-quote functionality

Needed By (Date)

Urgency

not urgent

Steps to Test

  1. Add html to text area
  2. Verify the pull quotes display as expected
  <h2>Pull-quote</h2> 

  <p>Fusce a quam. Nunc nec neque. In consectetuer turpis ut velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc interdum lacus sit amet orci.</p>

<aside class="su-pull-quote--left">
<p>This is the first paragraph of pull-quote text. Pellentesque dapibus hendrerit tortor. Nullam quis ante. Proin viverra, ligula sit amet ultrices semper, ligula arcu tristique sapien, a accumsan nisi mauris ac eros.</p>
<p>This is the second paragraph pull-content text. Pellentesque dapibus hendrerit tortor. Nullam quis ante. Proin viverra, ligula sit amet ultrices semper, ligula arcu tristique sapien, a accumsan nisi mauris ac eros.</p>
</aside>

<p>Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Etiam sollicitudin, ipsum eu pulvinar rutrum, tellus ipsum laoreet sapien, quis venenatis ante odio sit amet eros.</p>

<p>Praesent ac massa at ligula laoreet iaculis. Phasellus dolor. Proin faucibus arcu quis ante. Donec sodales sagittis magna. Nullam accumsan lorem in dui.</p>

<p>In dui magna, posuere eget, vestibulum et, tempor auctor, justo. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur blandit mollis lacus. Morbi mattis ullamcorper velit.</p>

<p>Donec id justo. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Aenean imperdiet.</p>
 <p>Fusce a quam. Nunc nec neque. In consectetuer turpis ut velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc interdum lacus sit amet orci.</p>

<aside class="su-pull-quote--right">
<p>This is the first paragraph of pull-quote text. Pellentesque dapibus hendrerit tortor. Nullam quis ante. Proin viverra, ligula sit amet ultrices semper, ligula arcu tristique sapien, a accumsan nisi mauris ac eros.</p>
<p>This is the second paragraph pull-content text. Pellentesque dapibus hendrerit tortor. Nullam quis ante. Proin viverra, ligula sit amet ultrices semper, ligula arcu tristique sapien, a accumsan nisi mauris ac eros.</p>
</aside>

<p>Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Etiam sollicitudin, ipsum eu pulvinar rutrum, tellus ipsum laoreet sapien, quis venenatis ante odio sit amet eros.</p>

<p>Praesent ac massa at ligula laoreet iaculis. Phasellus dolor. Proin faucibus arcu quis ante. Donec sodales sagittis magna. Nullam accumsan lorem in dui.</p>

<p>In dui magna, posuere eget, vestibulum et, tempor auctor, justo. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur blandit mollis lacus. Morbi mattis ullamcorper velit.</p>

<p>Donec id justo. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Aenean imperdiet.</p>

</div>

Affected Projects or Products

Associated Issues and/or People

See Also

cjwest commented 3 years ago

Let's rename this to pull-content

cjwest commented 3 years ago

@yvonnetangsu , Thank you for your feedback!

Please take another look.

yvonnetangsu commented 3 years ago

@cjwest Thank you for the revision - I think the class approach is great. If we want to add this as a component, then we'll need the twig template and sample json data as well, but before you do more work on this - let's get a designer to look at this :) I think Kerri is totally booked at the moment though 🤔

cjwest commented 3 years ago

@cjwest Thank you for the revision - I think the class approach is great. If we want to add this as a component, then we'll need the twig template and sample json data as well, but before you do more work on this - let's get a designer to look at this :) I think Kerri is totally booked at the moment though 🤔

Thanks for bringing that up, @yvonnetangsu! I've only seen it used as classes within the WYSIWYG (think "splash text"), and no twig templated was needed. I could use your help in envisioning how a twig template and sample json would be used.

yvonnetangsu commented 3 years ago

@kerri-augenstein When you have time, let's take a look at this component that Caryl is working on and see if it needs any design tweaks to go into Decanter 😄

kerri-augenstein commented 3 years ago

Sounds good @yvonnetangsu! Maybe at one of our Friday sessions!

cjwest commented 3 years ago

@yvonnetangsu, thanks for your encouragement. @kerri-augenstein,

Here's how the pull-quote looks:

Screen Shot 2021-07-27 at 6 12 24 PM Screen Shot 2021-07-27 at 6 12 10 PM Screen Shot 2021-07-27 at 6 12 00 PM

kerri-augenstein commented 3 years ago

@cjwest very cool!! Are you looking for a bit of additional styling? Won't need much, these look great!

cjwest commented 3 years ago

Thank you, @kerri-augenstein, for your help. Here are the changes you mentioned:

please use 70% black here's the 70% black : #6D6C69 Font-size 2.1

And here's the result:

Screen Shot 2021-07-28 at 9 11 13 AM Screen Shot 2021-07-28 at 9 11 01 AM Screen Shot 2021-07-28 at 9 10 43 AM

cjwest commented 3 years ago

@yvonnetangsu , Please take a look and let me know if you want any other changes.

cjwest commented 3 years ago

Ping @yvonnetangsu

It would be lovely to merge this. Then we could pull it in with the mailto link styles

sherakama commented 3 years ago

@cjwest,

Please recompile to clear out the merge conflicts.

cjwest commented 3 years ago

Thank you @sherakama ! Anything else?

yvonnetangsu commented 3 years ago

@cjwest Sorry I totally missed this one. I'll take a look tomorrow. Thanks for the revisions!

cjwest commented 3 years ago

Thank you for the review, @yvonnetangsu !

I removed the bottom margin on the last paragraph. I also updated the example HTML. Thanks for pointing out the mistake in the class name!