Model Examples
No edit summary
No edit summary
Line 195: Line 195:
</style>
</style>
<div class="container-model">
<div class="container-model">
  <div class="sidebar">
    <div class="sidebar">
    <!-- Menu items -->
      <!-- Menu items -->
    <a href="#complete-models" class="menu-item">Complete models</a>
      <a href="#complete-models" class="menu-item">Complete models</a>
  <a href="#another-model" class="menu-item">Another model</a>
    <a href="#another-model" class="menu-item">Another model</a>
  <a href="#final-model" class="menu-item">Final model</a>
    <a href="#final-model" class="menu-item">Final model</a>
    </div>
  <main>
  <div class="search-container">
    <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
      <path d="M13 13L9 9L13 13ZM10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z" stroke="#999B9E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    </svg>
    <input type="search" id="searchBox" onkeyup="searchCards()" placeholder="Search here...">
   </div>
   </div>
<main>
 
<div class="search-container">
      <!-- Section for Complete Models -->
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
  <section id="complete-models">
    <path d="M13 13L9 9L13 13ZM10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z" stroke="#999B9E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
        <h2>Complete Models</h2>
  </svg>
    <div class="card-container">
  <input type="search" id="searchBox" onkeyup="searchCards()" placeholder="Search here...">
      <!-- Card 1 -->
</div>
       <div class="cards">
    <!-- Section for Complete Models -->
<section id="complete-models">
      <h2>Complete Models</h2>
  <div class="card-container">
    <!-- Card 1 -->
    <div class="cards">
       <img src="https://via.placeholder.com/301x175" alt="Placeholder">
      <div class="contentss">
        <div class="title">Base App</div>
        <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
        <div class="download-link">
          <div class="download-indicator"></div>
          <div>Download .zip</div>
        </div>
      </div>
    </div>
    <!-- Card 2 -->
    <!-- Repeat the structure for other cards as needed -->
    <!-- ... -->
    <div class="cards">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
         <div class="contentss">
         <div class="contentss">
Line 239: Line 225:
         </div>
         </div>
       </div>
       </div>
      <!-- Card 2 -->
      <!-- Repeat the structure for other cards as needed -->
      <!-- ... -->
       <div class="cards">
       <div class="cards">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <div class="contentss">
          <div class="contentss">
          <div class="title">Base App</div>
            <div class="title">Base App</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="download-link">
            <div class="download-link">
            <div class="download-indicator"></div>
              <div class="download-indicator"></div>
            <div>Download .zip</div>
              <div>Download .zip</div>
            </div>
          </div>
         </div>
        <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
            <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
              <div class="download-indicator"></div>
              <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
    </div>
   </div>
   </section>
</div>
  <style>
</section>
  @media screen and (min-width: 769px) {
<style>
    #another-model,
@media screen and (min-width: 769px) {
    #final-model {
  #another-model,
      margin-left: 300px;
  #final-model {
    }
    margin-left: 300px;
   }
   }
}
 
 
  /* Styles for mobile screens to remove the margin */
/* Styles for mobile screens to remove the margin */
  @media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
    #another-model,
  #another-model,
    #final-model {
  #final-model {
      margin-left: 0;
    margin-left: 0;
    }
   }
   }
}
  </style>
</style>
  <!-- Section for Complete Models -->
<!-- Section for Complete Models -->
  <section id="another-model">
<section id="another-model">
        <h2>Complete Models</h2>
      <h2>Complete Models</h2>
    <div class="card-container">
  <div class="card-container">
      <!-- Card 1 -->
    <!-- Card 1 -->
       <div class="cards">
    <div class="cards">
       <img src="https://via.placeholder.com/301x175" alt="Placeholder">
      <div class="contentss">
        <div class="title">Base App</div>
        <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
        <div class="download-link">
          <div class="download-indicator"></div>
          <div>Download .zip</div>
        </div>
      </div>
    </div>
    <!-- Card 2 -->
    <!-- Repeat the structure for other cards as needed -->
    <!-- ... -->
    <div class="cards">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
         <div class="contentss">
         <div class="contentss">
Line 332: Line 317:
         </div>
         </div>
       </div>
       </div>
      <!-- Card 2 -->
      <!-- Repeat the structure for other cards as needed -->
      <!-- ... -->
       <div class="cards">
       <div class="cards">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <div class="contentss">
          <div class="contentss">
          <div class="title">Base App</div>
            <div class="title">Base App</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="download-link">
            <div class="download-link">
            <div class="download-indicator"></div>
              <div class="download-indicator"></div>
            <div>Download .zip</div>
              <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
  </div>
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
</div>
          <div class="contentss">
</section>
            <div class="title">Base App</div>
<!-- Section for Complete Models -->
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
<section id="final-model">
            <div class="download-link">
      <h2>Complete Models</h2>
              <div class="download-indicator"></div>
  <div class="card-container">
              <div>Download .zip</div>
    <!-- Card 1 -->
            </div>
    <div class="cards">
          </div>
      <img src="https://via.placeholder.com/301x175" alt="Placeholder">
      <div class="contentss">
        <div class="title">Base App</div>
        <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
        <div class="download-link">
          <div class="download-indicator"></div>
          <div>Download .zip</div>
         </div>
         </div>
      </div>
     </div>
     </div>
    <!-- Card 2 -->
  </section>
     <!-- Repeat the structure for other cards as needed -->
  <!-- Section for Complete Models -->
    <!-- ... -->
  <section id="final-model">
    <div class="cards">
        <h2>Complete Models</h2>
     <div class="card-container">
      <!-- Card 1 -->
      <div class="cards">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
         <div class="contentss">
         <div class="contentss">
           <div class="title">Test</div>
           <div class="title">Base App</div>
           <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
           <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
           <div class="download-link">
           <div class="download-link">
Line 409: Line 393:
         </div>
         </div>
       </div>
       </div>
      <!-- Card 2 -->
      <!-- Repeat the structure for other cards as needed -->
      <!-- ... -->
       <div class="cards">
       <div class="cards">
         <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <div class="contentss">
          <div class="contentss">
          <div class="title">Base App</div>
            <div class="title">Test</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="download-link">
            <div class="download-link">
            <div class="download-indicator"></div>
              <div class="download-indicator"></div>
            <div>Download .zip</div>
              <div>Download .zip</div>
            </div>
          </div>
         </div>
        <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
            <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
              <div class="download-indicator"></div>
              <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
        <div class="cards">
      <div class="cards">
          <img src="https://via.placeholder.com/301x175" alt="Placeholder">
        <img src="https://via.placeholder.com/301x175" alt="Placeholder">
          <div class="contentss">
        <div class="contentss">
            <div class="title">Base App</div>
          <div class="title">Base App</div>
            <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
          <div class="description">You can use this as a starting point or you can merge it with most of the other examples and template models.</div>
            <div class="download-link">
          <div class="download-link">
              <div class="download-indicator"></div>
            <div class="download-indicator"></div>
              <div>Download .zip</div>
            <div>Download .zip</div>
            </div>
           </div>
           </div>
         </div>
         </div>
      </div>
    </div>
   </div>
   </div>
  </section>
</main>
</div>
</div>
<script>
</div>
function searchCards() {
  <script>
  var input, filter, cards, title, i, txtValue;
  function searchCards() {
  input = document.getElementById("searchBox");
    var input, filter, cards, title, i, txtValue;
  filter = input.value.toUpperCase();
    input = document.getElementById("searchBox");
  cards = document.getElementsByClassName("cards");
    filter = input.value.toUpperCase();
 
    cards = document.getElementsByClassName("cards");
  for (i = 0; i < cards.length; i++) {
   
    title = cards[i].getElementsByClassName("title")[0];
    for (i = 0; i < cards.length; i++) {
    if (title) {
      title = cards[i].getElementsByClassName("title")[0];
      txtValue = title.textContent || title.innerText;
      if (title) {
      if (txtValue.toUpperCase().indexOf(filter) > -1) {
        txtValue = title.textContent || title.innerText;
        cards[i].style.display = "";
        if (txtValue.toUpperCase().indexOf(filter) > -1) {
      } else {
          cards[i].style.display = "";
        cards[i].style.display = "none";
        } else {
       }
          cards[i].style.display = "none";
     }      
        }
       }      
     }
   }
   }
}
  </script>
</script>
  <script>
<script>
  // JavaScript to scroll to the section smoothly when a sidebar link is clicked
// JavaScript to scroll to the section smoothly when a sidebar link is clicked
  document.addEventListener('DOMContentLoaded', (event) => {
document.addEventListener('DOMContentLoaded', (event) => {
    document.querySelectorAll('.sidebar a').forEach(link => {
  document.querySelectorAll('.sidebar a').forEach(link => {
      link.addEventListener('click', function(e) {
    link.addEventListener('click', function(e) {
        e.preventDefault();
      e.preventDefault();
        const targetId = this.getAttribute('href');
      const targetId = this.getAttribute('href');
        const targetSection = document.querySelector(targetId);
      const targetSection = document.querySelector(targetId);
        if (targetSection) {
      if (targetSection) {
          targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
        targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }
       }
       });
     });
     });
   });
   });
});
  </script>
</script>
  <script>
<script>
 
 
  document.addEventListener('DOMContentLoaded', (event) => {
document.addEventListener('DOMContentLoaded', (event) => {
    document.querySelectorAll('.sidebar a').forEach(link => {
  document.querySelectorAll('.sidebar a').forEach(link => {
      link.addEventListener('click', function(e) {
    link.addEventListener('click', function(e) {
        e.preventDefault();
      e.preventDefault();
        const targetId = this.getAttribute('href');
      const targetId = this.getAttribute('href');
        const targetSection = document.querySelector(targetId);
      const targetSection = document.querySelector(targetId);
        if (targetSection) {
      if (targetSection) {
          targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
        targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }
       }
       });
     });
     });
   });
   });
});
  </script>
</script>
  <script>
<script>
  document.addEventListener('DOMContentLoaded', (event) => {
document.addEventListener('DOMContentLoaded', (event) => {
    const svgMarkup = `<svg xmlns="http://www.w3.org/2000/svg" width="4" height="16" viewBox="0 0 4 16" fill="none">
  const svgMarkup = `<svg xmlns="http://www.w3.org/2000/svg" width="4" height="16" viewBox="0 0 4 16" fill="none">
      <path d="M0 0C2.20914 0 4 1.79086 4 4L4 12C4 14.2091 2.20914 16 0 16L0 0Z" fill="#1A50AD"/>
    <path d="M0 0C2.20914 0 4 1.79086 4 4L4 12C4 14.2091 2.20914 16 0 16L0 0Z" fill="#1A50AD"/>
    </svg>`;
  </svg>`;
 
 
    // Function to create a new SVG element
  // Function to create a new SVG element
    const createSvgElement = (htmlString) => {
  const createSvgElement = (htmlString) => {
      const div = document.createElement('div');
    const div = document.createElement('div');
      div.innerHTML = htmlString.trim();
    div.innerHTML = htmlString.trim();
      return div.firstChild;
    return div.firstChild;
    };
  };
 
 
    // Function to update active link style and SVG
  // Function to update active link style and SVG
    const updateActiveLink = (targetId) => {
  const updateActiveLink = (targetId) => {
      document.querySelectorAll('.sidebar a').forEach(link => {
        if (link.getAttribute('href') === targetId) {
          link.classList.add('active');
          // Insert SVG for active link
          link.prepend(createSvgElement(svgMarkup));
        } else {
          link.classList.remove('active');
          // Remove SVG for non-active links
          if (link.querySelector('svg')) {
            link.removeChild(link.querySelector('svg'));
          }
        }
      });
    };
 
     document.querySelectorAll('.sidebar a').forEach(link => {
     document.querySelectorAll('.sidebar a').forEach(link => {
       if (link.getAttribute('href') === targetId) {
       link.addEventListener('click', function(e) {
         link.classList.add('active');
         e.preventDefault();
         // Insert SVG for active link
        const targetId = this.getAttribute('href');
        link.prepend(createSvgElement(svgMarkup));
         updateActiveLink(targetId);
      } else {
         const targetSection = document.querySelector(targetId);
         link.classList.remove('active');
         if (targetSection) {
        // Remove SVG for non-active links
           targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
         if (link.querySelector('svg')) {
           link.removeChild(link.querySelector('svg'));
         }
         }
       }
       });
    });
  };
 
  document.querySelectorAll('.sidebar a').forEach(link => {
    link.addEventListener('click', function(e) {
      e.preventDefault();
      const targetId = this.getAttribute('href');
      updateActiveLink(targetId);
      const targetSection = document.querySelector(targetId);
      if (targetSection) {
        targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
      }
     });
     });
   });
   });
});
  </script>
</script>
  </html>
</html>

Revision as of 15:04, 9 November 2023

Model Samples
MODEL SAMPLES
Get started with MDriven sample models. Explore our models and choose what you want to build.

Complete Models

Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.

Complete Models

Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.

Complete Models

Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Test
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Placeholder
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.