I have a few pages one with a full screen image and the other with a full screen video. I have the main menu and site name overlaid on the image. My questions is how can I make the font color change base on the background color. I.E so that when the image is dark the text will be light and vica versa.
I have few content types such as news, lead story, events. I want to show those content types in a single page (Front Page and some other pages and that pages may content some static HTML content) with some logic using twig template. As an example I want to show one randomly selected lead story and three news items in a single page. How can I achieve this.
I know the title may be a bit difficult to understand. Basically, I have created a paragraph type in Drupal that holds a label and a link. Then I have page content that adds it and allows me to make more of them on the back end when building a page. Unfortunately, I want to style them in a way similar to some CTA buttons we already have, but the Twig debugging is saying that my paragraph type is a field, and thus isn't recognized as a paragraph. Could this be a result of a hook somewhere, or have I misunderstood what counts as a paragraph?