+ :style="'background-color:' + colors[(id + offset) % colors.length] + ';'">
@@ -47,6 +47,10 @@ export default defineComponent({
type: Number,
required: true,
},
+ offset: {
+ type: Number,
+ required: true,
+ },
},
data() {
return {
@@ -89,14 +93,18 @@ export default defineComponent({
display: flex;
justify-content: center;
align-content: center;
- flex-direction: row;
- flex-wrap: wrap;
+ flex-direction: column;
+ flex-wrap: nowrap;
transition: width 0.75s, height 0.75s;
gap: max(1vw, 1vh);
}
+.techInfosIcon {
+ width: 100%;
+}
+
.other {
- max-width: 40vw;
+ max-width: 100%;
display: flex;
align-items: flex-start;
justify-content: space-between;
@@ -108,7 +116,7 @@ export default defineComponent({
padding: min(1vh, 1vw);
text-align: center;
overflow-y: auto;
- max-height: 33%;
+ max-height: 100%;
}
.desc {
@@ -159,28 +167,7 @@ export default defineComponent({
}
.logo {
- height: 50%;
- max-width: 25%;
+ max-width: 10%;
padding: min(1vh, 1vw);
}
-
-@media (orientation: landscape) {
- @media (max-height: 600px) {
- .other {
- max-width: 23vw;
- }
- }
-
- @media (max-height: 900px) and (min-height: 600px) {
- .other {
- min-width: 27vw;
- }
- }
-
- @media (min-height: 900px) {
- .other {
- min-width: 20vw;
- }
- }
-}
\ No newline at end of file
diff --git a/src/components/timeline.vue b/src/components/timeline.vue
index b3bb4ec..b73f028 100644
--- a/src/components/timeline.vue
+++ b/src/components/timeline.vue
@@ -1,12 +1,12 @@
-
+ :projects="p" :fullscreen="fullscreen" :colors="COLORS" :bg-color-id="nbMaxProjectsFullPage"
+ :offset="id * nbOtherProjectsByPage" />
@@ -26,7 +26,7 @@ const enum STATUS {
INVIEWPORT,
AFTERVIEWPORT,
}
-const COLORS = ["#660708", "#a4161a", "#ba181b", "#e5383b", "#b1a7a6", "#d3d3d3", "#f5f3f4", "#ffffff"]
+const COLORS = ["#660708", "#a4161a", "#ba181b", "#e5383b", "#b1a7a6", "#d3d3d3", "#f5f3f4"]
const nbMaxProjectsFullPage = 5;
@@ -134,13 +134,13 @@ export default defineComponent({
const w = window.innerWidth;
const h = window.innerHeight;
if (h <= 800 || w <= 800) {
- this.nbOtherProjectsByPage = 4;
+ this.nbOtherProjectsByPage = 2;
}
else if (h <= 1100 || w <= 1100) {
- this.nbOtherProjectsByPage = 6;
+ this.nbOtherProjectsByPage = 4;
}
else {
- this.nbOtherProjectsByPage = 8;
+ this.nbOtherProjectsByPage = 6;
}
this.calcNbPage();
},