Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,24 @@
margin: 10px;
}
.container-fluid { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.row > .col, .row > .col-sm { flex: 1 1 0; min-width: 0; }
.row {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.row > .col,
.row > .col-sm {
flex: 1 1 0;
min-width: 0;
}
.row > .col-1 {
flex: 1 1 0;
min-width: 0;
}
.row > .col-2 {
flex: 2 1 0;
min-width: 0;
}
.font-weight-bold { font-weight: 700; }
.display-5 { font-size: 2.5rem; font-weight: 300; line-height: 1.2; }
.carousel-slide { position: relative; }
Expand Down Expand Up @@ -47,7 +63,12 @@
.grid .tick { stroke: lightgrey; opacity: .2; }
.grid path { stroke-width: 0; }
@media (max-width: 700px) {
.row > .col, .row > .col-sm { flex-basis: 100%; }
.row > .col,
.row > .col-sm,
.row > .col-1,
.row > .col-2 {
flex-basis: 100%;
}
}
</style>
<script type="module" src="/lib/modules/components/obm-navigation.js"></script>
24 changes: 24 additions & 0 deletions _layouts/collada.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<head>
{% include three-imports.html %}
{% include head.html %}
<script type="module" src="/lib/modules/components/obm-collada-viewer.js"></script>
</head>
<body>
<obm-site-nav></obm-site-nav>
<main class="container-fluid">
<div class="row">
<div class="col-1">
<h1 class="display-5" data-i18n="gallery.build">
Organisez votre système énergétique
</h1>
</div>
<div class="col-2">
{{ content }}
</div>
</div>
</main>
<obm-site-footer></obm-site-footer>
</body>
</html>

File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions gallery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: collada
permalink: gallery.html
---
<collada-viewer zoom="250%" zoom-mobile="150%">
<collada-object
file="v3v"
position="0.05 -1.8 0.55"
rotation="0 90 180"
></collada-object>
<collada-object
file="pompe"
position="0 0 0"
></collada-object>
<collada-object
file="bruleur"
position="4 0 0"
rotation="0 90 0"
scale="1.5">
</collada-object>
</collada-viewer>
Loading
Loading