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"> | |||
<!-- Menu items --> | |||
<a href="#complete-models" class="menu-item">Complete models</a> | |||
<a href="#another-model" class="menu-item">Another 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> | ||
<!-- Section for Complete Models --> | |||
<section id="complete-models"> | |||
<h2>Complete Models</h2> | |||
<div class="card-container"> | |||
<!-- Card 1 --> | |||
<div class="cards"> | |||
<section id="complete-models"> | |||
<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="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 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 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 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 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> | |||
</section> | |||
<style> | |||
</section> | @media screen and (min-width: 769px) { | ||
<style> | #another-model, | ||
@media screen and (min-width: 769px) { | #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, | ||
#final-model { | |||
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> | ||
<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"> | ||
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"> | |||
<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 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 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 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 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> | ||
</section> | |||
< | <!-- Section for Complete Models --> | ||
<section id="final-model"> | |||
<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"> | <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="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="download-link"> | |||
<div class="download-indicator"></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 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 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 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> | </div> | ||
</section> | |||
</main> | |||
</div> | </div> | ||
<script> | </div> | ||
function searchCards() { | <script> | ||
function searchCards() { | |||
var input, filter, cards, title, i, txtValue; | |||
input = document.getElementById("searchBox"); | |||
filter = input.value.toUpperCase(); | |||
cards = document.getElementsByClassName("cards"); | |||
for (i = 0; i < cards.length; i++) { | |||
title = cards[i].getElementsByClassName("title")[0]; | |||
if (title) { | |||
txtValue = title.textContent || title.innerText; | |||
if (txtValue.toUpperCase().indexOf(filter) > -1) { | |||
cards[i].style.display = ""; | |||
} 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 => { | ||
link.addEventListener('click', function(e) { | |||
e.preventDefault(); | |||
const targetId = this.getAttribute('href'); | |||
const targetSection = document.querySelector(targetId); | |||
if (targetSection) { | |||
targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' }); | |||
} | |||
} | }); | ||
}); | }); | ||
}); | }); | ||
</script> | |||
</script> | <script> | ||
<script> | |||
document.addEventListener('DOMContentLoaded', (event) => { | |||
document.addEventListener('DOMContentLoaded', (event) => { | document.querySelectorAll('.sidebar a').forEach(link => { | ||
link.addEventListener('click', function(e) { | |||
e.preventDefault(); | |||
const targetId = this.getAttribute('href'); | |||
const targetSection = document.querySelector(targetId); | |||
if (targetSection) { | |||
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"> | ||
<path d="M0 0C2.20914 0 4 1.79086 4 4L4 12C4 14.2091 2.20914 16 0 16L0 0Z" fill="#1A50AD"/> | |||
</svg>`; | |||
// Function to create a new SVG element | |||
const createSvgElement = (htmlString) => { | |||
const div = document.createElement('div'); | |||
div.innerHTML = htmlString.trim(); | |||
return div.firstChild; | |||
}; | |||
// Function to update active link style and SVG | |||
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 => { | ||
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' }); | |||
if ( | |||
} | } | ||
}); | |||
}); | }); | ||
}); | }); | ||
</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
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Complete Models
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Complete Models
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Test
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip
Base App
You can use this as a starting point or you can merge it with most of the other examples and template models.
Download .zip