<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JovemBoemio</title>
    <description>The latest articles on DEV Community by JovemBoemio (@jovemboemio).</description>
    <link>https://dev.to/jovemboemio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2054945%2F8975136e-aeee-464b-84e0-8cbdb4d57488.png</url>
      <title>DEV Community: JovemBoemio</title>
      <link>https://dev.to/jovemboemio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jovemboemio"/>
    <language>en</language>
    <item>
      <title>Need Help: Merging Background and Menu Codes in Power BI Without JavaScript (Beginner Seeking Guidance)</title>
      <dc:creator>JovemBoemio</dc:creator>
      <pubDate>Tue, 10 Sep 2024 20:39:43 +0000</pubDate>
      <link>https://dev.to/jovemboemio/need-help-merging-background-and-menu-codes-in-power-bi-without-javascript-beginner-seeking-guidance-fbh</link>
      <guid>https://dev.to/jovemboemio/need-help-merging-background-and-menu-codes-in-power-bi-without-javascript-beginner-seeking-guidance-fbh</guid>
      <description>&lt;p&gt;Hello everyone!&lt;br&gt;
I hope you're doing well. I'm new to coding, and my background is actually in communication. I'm currently working on a project for Power BI where I need to merge a background code with two menu codes using the buttons, but I can't use JavaScript in this case.&lt;br&gt;
If anyone could provide some guidance or point me in the right direction, I'd greatly appreciate it! Thanks in advance!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is first code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;video loop muted autoplay playsinline poster='URL/TO/poster.jpg' class='background-video'&amp;gt;
    &amp;lt;source src=' URL/TO ' type='video/mp4'&amp;gt;
    &amp;lt;source src='URL/TO/video.webm' type='video/webm'&amp;gt;
    &amp;lt;source src='URL/TO/video.ogv' type='video/ogv'&amp;gt;
  &amp;lt;/video&amp;gt;
  
  &amp;lt;div class='background-video-content'&amp;gt;
  &amp;lt;h1 class='big-title'&amp;gt;PORTAL DEPARTAMENTO DE OBRAS PÚBLICAS&amp;lt;/h1&amp;gt;
  &amp;lt;div class='button-container'&amp;gt;
    &amp;lt;button class='shiny-cta'&amp;gt;
      &amp;lt;span&amp;gt;Programa de Aceleração do Crescimento&amp;lt;/span&amp;gt;
    &amp;lt;/button&amp;gt;
    &amp;lt;button class='shiny-cta'&amp;gt;
      &amp;lt;span&amp;gt;Paineis de Planejamento&amp;lt;/span&amp;gt;
    &amp;lt;/button&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  
  &amp;lt;style&amp;gt;
  /* Video Styles */
  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh; 
    object-fit: cover; 
    z-index: -1;
  }
  
  /* Page hero */
  .page-hero {
    position: relative;
    overflow: hidden;
  }
  
  .background-video-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 0 20px;
  }
  
  /* Big Title Styles */
  .big-title {
    font-size: 3rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 40px;
  }
  
  /* Container for Buttons */
  /*
  CSS @property and the New Style
  https://ryanmulligan.dev/blog/css-property-new-style/
  */
  @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,500&amp;amp;display=swap');
  .button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
  }
  
  :root {
  --shiny-cta-bg: #000000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: blue;
  --shiny-cta-highlight-subtle: #8484ff;
  }
  
  @property --gradient-angle {
  syntax: '&amp;lt;angle&amp;gt;';
  initial-value: 0deg;
  inherits: false;
  }
  
  @property --gradient-angle-offset {
  syntax: '&amp;lt;angle&amp;gt;';
  initial-value: 0deg;
  inherits: false;
  }
  
  @property --gradient-percent {
  syntax: '&amp;lt;percentage&amp;gt;';
  initial-value: 5%;
  inherits: false;
  }
  
  @property --gradient-shine {
  syntax: '&amp;lt;color&amp;gt;';
  initial-value: white;
  inherits: false;
  }
  
  .shiny-cta {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1.5rem 3rem;
  font-family: paralucent;
  font-size: 1.125rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg))
      padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent,
        var(--shiny-cta-highlight) var(--gradient-percent),
        var(--gradient-shine) calc(var(--gradient-percent) * 2),
        var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
        transparent calc(var(--gradient-percent) * 4)
      )
      border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  
  &amp;amp;::before,
  &amp;amp;::after,
  span::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
  }
  
  &amp;amp;:active {
    translate: 0 1px;
  }
  }
  
  /* Dots pattern */
  .shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(
      circle at var(--position) var(--position),
      white calc(var(--position) / 4),
      transparent 0
    )
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
  }
  
  /* Inner shimmer */
  .shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    -50deg,
    transparent,
    var(--shiny-cta-highlight),
    transparent
  );
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
  }
  
  .shiny-cta span {
  z-index: 1;
  
  &amp;amp;::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
  }
  }
  
  /* Animate */
  .shiny-cta {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;
  
  &amp;amp;,
  &amp;amp;::before,
  &amp;amp;::after {
    animation: var(--animation) var(--duration),
      var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
  }
  
  span::before {
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
  }
  }
  
  .shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
  
  &amp;amp;,
  &amp;amp;::before,
  &amp;amp;::after {
    animation-play-state: running;
  }
  
  span::before {
    opacity: 1;
  }
  }
  
  @keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
  }
  
  @keyframes shimmer {
  to {
    rotate: 360deg;
  }
  }
  
  @keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
  }
  
  html,
  body {
  height: 100%;
  }
  
  body {
  display: grid;
  place-items: center;
  color: white;
  background: #02040c;
  font-family: 'Paralucent', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  }
  &amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a First Menu&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;div class='container'&amp;gt;
        &amp;lt;div class='card'&amp;gt;
            &amp;lt;div class='face face1'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;img src='img-link'&amp;gt;
                    &amp;lt;h3&amp;gt;Title 1&amp;lt;/h3&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class='face face2'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;p&amp;gt;text!&amp;lt;/p&amp;gt;
                        &amp;lt;a href='https://'&amp;gt;Saiba mais&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class='card'&amp;gt;
            &amp;lt;div class='face face1'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;img src='https://cdn-icons-png.'&amp;gt;
                    &amp;lt;h3&amp;gt;Title 2&amp;lt;/h3&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class='face face2'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;p&amp;gt;text!&amp;lt;/p&amp;gt;
                        &amp;lt;a href='https://'&amp;gt;Saiba mais&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class='card'&amp;gt;
            &amp;lt;div class='face face1'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;img src='https://cdn-icons-png'&amp;gt;
                    &amp;lt;h3&amp;gt;ICM&amp;lt;/h3&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class='face face2'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;p&amp;gt;Text!&amp;lt;/p&amp;gt;
                        &amp;lt;a href='https://'&amp;gt;Saiba mais&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;style&amp;gt;
    body{
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #00;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: paralucent;
}

.container{
    width: 1000px;
    position: relative;
    display: flex;
    justify-content: space-between;
}

.container .card{
    position: relative;
    cursor: pointer;
}

.container .card .face{
    width: 300px;
    height: 200px;
    transition: 0.5s;
}

.container .card .face.face1{
    position: relative;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}

.container .card:hover .face.face1{
    background: #152f4e;
    transform: translateY(0);
}

.container .card .face.face1 .content{
    opacity: 0.2;
    transition: 0.5s;
}

.container .card:hover .face.face1 .content{
    opacity: 1;
}

.container .card .face.face1 .content img{
    max-width: 100px;
}

.container .card .face.face1 .content h3{
    margin: 10px 0 0;
    padding: 0;
    color: #fff;
    text-align: center;
    font-size: 1.5em;
}

.container .card .face.face2{
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-100px);
}

.container .card:hover .face.face2{
    transform: translateY(0);
}

.container .card .face.face2 .content p{
    margin: 0;
    padding: 0;
}

.container .card .face.face2 .content a{
    margin: 15px 0 0;
    display:  inline-block;
    text-decoration: none;
    font-weight: 900;
    color: #333;
    padding: 5px;
    border: 1px solid #333;
}

.container .card .face.face2 .content a:hover{
    background: #333;
    color: #fff;
}
&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Second menu ()&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;div class='container'&amp;gt;
        &amp;lt;div class='card'&amp;gt;
            &amp;lt;div class='face face1'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;img src='img-link'&amp;gt;
                    &amp;lt;h3&amp;gt;Title 1&amp;lt;/h3&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class='face face2'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;p&amp;gt;text!&amp;lt;/p&amp;gt;
                        &amp;lt;a href='https://'&amp;gt;Saiba mais&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class='card'&amp;gt;
            &amp;lt;div class='face face1'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;img src='https://cdn-icons-png.'&amp;gt;
                    &amp;lt;h3&amp;gt;Title 2&amp;lt;/h3&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class='face face2'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;p&amp;gt;text!&amp;lt;/p&amp;gt;
                        &amp;lt;a href='https://'&amp;gt;Saiba mais&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class='card'&amp;gt;
            &amp;lt;div class='face face1'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;img src='https://cdn-icons-png'&amp;gt;
                    &amp;lt;h3&amp;gt;ICM&amp;lt;/h3&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class='face face2'&amp;gt;
                &amp;lt;div class='content'&amp;gt;
                    &amp;lt;p&amp;gt;Text!&amp;lt;/p&amp;gt;
                        &amp;lt;a href='https://'&amp;gt;Saiba mais&amp;lt;/a&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;style&amp;gt;
    body{
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #00;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: paralucent;
}

.container{
    width: 1000px;
    position: relative;
    display: flex;
    justify-content: space-between;
}

.container .card{
    position: relative;
    cursor: pointer;
}

.container .card .face{
    width: 300px;
    height: 200px;
    transition: 0.5s;
}

.container .card .face.face1{
    position: relative;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}

.container .card:hover .face.face1{
    background: #152f4e;
    transform: translateY(0);
}

.container .card .face.face1 .content{
    opacity: 0.2;
    transition: 0.5s;
}

.container .card:hover .face.face1 .content{
    opacity: 1;
}

.container .card .face.face1 .content img{
    max-width: 100px;
}

.container .card .face.face1 .content h3{
    margin: 10px 0 0;
    padding: 0;
    color: #fff;
    text-align: center;
    font-size: 1.5em;
}

.container .card .face.face2{
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-100px);
}

.container .card:hover .face.face2{
    transform: translateY(0);
}

.container .card .face.face2 .content p{
    margin: 0;
    padding: 0;
}

.container .card .face.face2 .content a{
    margin: 15px 0 0;
    display:  inline-block;
    text-decoration: none;
    font-weight: 900;
    color: #333;
    padding: 5px;
    border: 1px solid #333;
}

.container .card .face.face2 .content a:hover{
    background: #333;
    color: #fff;
}
&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>powerplatform</category>
      <category>beginners</category>
      <category>help</category>
    </item>
  </channel>
</rss>
