overleaf-cep/services/web/app/views/_mixins/quote.pug
Rebeka Dekany c40ab3234d Prettier for PUG templates (#26170)
* Setup prettier

* Ignore these pug templates by prettier

* Fix typo

* Fix prettier error

* Add prettier-ignore for quoting of event-segmentation attribute

* Manual tab indentation

* Interpolate

* Remove unbuffered if conditional

* Inline event-segmentation objects and remove prettier-ignore rule

* Fix spacing before interpolation

* Source format

* Source format

GitOrigin-RevId: c30e037f5caf8f91efc1bd9e75f81ae533b5a506
2025-06-24 08:05:06 +00:00

55 lines
2.3 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mixin quoteLargeTextCentered(quote, person, position, affiliation, link, pictureUrl)
blockquote.quote-large-text-centered
.quote !{quote}
if pictureUrl
.quote-img
- var pictureAlt = `Photo of ${person}`
img(src=pictureUrl alt=pictureAlt)
footer
.quote-person
strong #{person}
if person && position
div #{position}
if affiliation
div #{affiliation}
if link
.quote-link !{link}
mixin quoteLeftGreenBorder({quote, person, position, affiliation, link})
blockquote.quote-left-green-border
.quote !{quote}
footer
| #{person}
| #{position || affiliation ? ',' : ''}
| #{position}
| #{position && affiliation ? ' at ' : ''}
| #{affiliation}
if link
.quote-link !{link}
mixin collinsQuote1
.card.card-dark-green-bg
- var quote = 'Overleaf is indispensable for us. We use it in our research, thesis writing, project proposals, and manuscripts for publication. When it comes to writing, its our main tool.'
- var quotePerson = 'Christopher Collins'
- var quotePersonPosition = 'Associate Professor and Lab Director, Ontario Tech University'
- var quotePersonImg = buildImgPath('advocates/collins.jpg')
.card-body
+quoteLargeTextCentered(quote, quotePerson, quotePersonPosition, null, null, quotePersonImg)
mixin collinsQuote2
.card.card-dark-green-bg
- var quote = 'We are writing collaboratively right up until the last minute. We are faced with deadlines all the time, and Overleaf gives us the ability to polish right up until the last possible second.'
- var quotePerson = 'Christopher Collins'
- var quotePersonPosition = 'Associate Professor and Lab Director, Ontario Tech University'
- var quotePersonImg = buildImgPath('advocates/collins.jpg')
.card-body
+quoteLargeTextCentered(quote, quotePerson, quotePersonPosition, null, null, quotePersonImg)
mixin bennettQuote1
.card.card-dark-green-bg
- var quote = 'With Overleaf, we now have a process for developing technical documentation which has virtually eliminated the time required to properly format and layout documents.'
- var quotePerson = 'Andrew Bennett'
- var quotePersonPosition = 'Software Architect, Symplectic'
- var quotePersonImg = buildImgPath('advocates/bennett.jpg')
.card-body
+quoteLargeTextCentered(quote, quotePerson, quotePersonPosition, null, null, quotePersonImg)