Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MSP-Maastricht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
MSP-Maastricht
Commits
275b864c
Commit
275b864c
authored
6 months ago
by
Devyani Ravi
Browse files
Options
Downloads
Patches
Plain Diff
making collapsable cards
parent
faaf2822
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#453195
passed
6 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/.vuepress/components/IterativeCycle.vue
+44
-111
44 additions, 111 deletions
docs/.vuepress/components/IterativeCycle.vue
with
44 additions
and
111 deletions
docs/.vuepress/components/IterativeCycle.vue
+
44
−
111
View file @
275b864c
<
template
>
<div
class=
"
iterative-cycle
"
>
<div
class=
"
collapsible-cards
"
>
<!-- Module Selector Tabs -->
<div
class=
"module-tabs"
>
<div
...
...
@@ -15,11 +15,13 @@
<!-- Cycles Display -->
<div
v-if=
"selectedModule !== null"
class=
"cycle"
>
<h2>
{{
modules
[
selectedModule
].
title
}}
</h2>
<div
v-for=
"(cycle, index) in modules[selectedModule].cycles"
:key=
"index"
class=
"c
ycle-container
"
>
<
button
@
click=
"toggleCycle(index)"
class=
"cycle-button"
>
<div
v-for=
"(cycle, index) in modules[selectedModule].cycles"
:key=
"index"
class=
"c
ard
"
>
<
h4
@
click=
"toggleCycle(index)"
>
{{
cycle
.
title
}}
</button>
<div
v-if=
"isCycleOpen(index)"
class=
"cycle-details"
>
<span
v-if=
"isCycleOpen(index)"
>
▲
</span>
<span
v-else
>
▼
</span>
</h4>
<div
v-if=
"isCycleOpen(index)"
class=
"content"
>
<h3>
Phases:
</h3>
<ul>
<li
v-for=
"(phase, phaseIndex) in cycle.phases"
:key=
"phaseIndex"
>
...
...
@@ -51,24 +53,7 @@ export default {
{
title
:
'
Learn
'
,
description
:
'
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.
'
},
]
},
{
title
:
'
Cycle 2
'
,
phases
:
[
{
title
:
'
Design
'
,
description
:
'
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
'
},
{
title
:
'
Build
'
,
description
:
'
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
'
},
{
title
:
'
Test
'
,
description
:
'
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
'
},
{
title
:
'
Learn
'
,
description
:
'
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.
'
},
]
},
{
title
:
'
Cycle 3
'
,
phases
:
[
{
title
:
'
Design
'
,
description
:
'
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
'
},
{
title
:
'
Build
'
,
description
:
'
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
'
},
{
title
:
'
Test
'
,
description
:
'
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
'
},
{
title
:
'
Learn
'
,
description
:
'
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.
'
},
]
}
// Add more cycles as needed
]
},
{
...
...
@@ -78,33 +63,13 @@ export default {
title
:
'
Cycle 1
'
,
phases
:
[
{
title
:
'
Design
'
,
description
:
'
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
'
},
{
title
:
'
Build
'
,
description
:
'
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
'
}
]
}
]
},
{
title
:
'
Module 3: Design Only
'
,
cycles
:
[
{
title
:
'
Cycle 1
'
,
phases
:
[
{
title
:
'
Design
'
,
description
:
'
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
'
}
{
title
:
'
Build
'
,
description
:
'
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
'
},
]
}
},
// Add more cycles as needed
]
},
{
title
:
'
Module 4: Design Only
'
,
cycles
:
[
{
title
:
'
Cycle 1
'
,
phases
:
[
{
title
:
'
Design
'
,
description
:
'
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
'
}
]
}
]
}
// Add more modules as needed
]
};
},
...
...
@@ -128,19 +93,40 @@ export default {
</
script
>
<
style
scoped
>
/* Layout styles */
.iterative-cycle
{
font-family
:
'Arial'
,
sans-serif
;
max-width
:
800px
;
margin
:
20px
auto
;
.collapsible-cards
{
display
:
flex
;
flex-direction
:
column
;
gap
:
20px
;
margin
:
20px
0
;
}
.card
{
background-color
:
#e3f2fd
;
border
:
1px
solid
#ccc
;
border-radius
:
10px
;
padding
:
20px
;
border
:
1px
solid
#ddd
;
border-radius
:
8px
;
box-shadow
:
0
2px
8px
rgba
(
0
,
0
,
0
,
0.1
);
background-color
:
#f9f9f9
;
box-shadow
:
0
4px
6px
rgba
(
0
,
0
,
0
,
0.1
);
cursor
:
pointer
;
}
.card
h4
{
color
:
#396d7e
;
margin-bottom
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
}
.card
.content
{
margin-top
:
10px
;
font-size
:
1.1em
;
color
:
#333
;
}
h1
,
h3
{
color
:
#396d7e
;
}
/* Module Selector Tabs */
.module-tabs
{
display
:
flex
;
justify-content
:
center
;
...
...
@@ -167,57 +153,4 @@ export default {
color
:
white
;
box-shadow
:
0
4px
10px
rgba
(
0
,
0
,
0
,
0.2
);
}
/* Cycle section */
.cycle
{
margin-top
:
20px
;
}
.cycle-container
{
margin
:
10px
0
;
}
.cycle-button
{
width
:
100%
;
padding
:
10px
;
font-size
:
16px
;
background-color
:
#a3c88a
;
/* Updated button color */
color
:
white
;
border
:
none
;
border-radius
:
5px
;
cursor
:
pointer
;
transition
:
background-color
0.3s
ease
;
}
.cycle-button
:hover
{
background-color
:
#8fb379
;
}
.cycle-details
{
margin-top
:
10px
;
padding
:
10px
;
border
:
1px
solid
#ddd
;
border-radius
:
5px
;
background-color
:
#ffffff
;
box-shadow
:
0
1px
4px
rgba
(
0
,
0
,
0
,
0.1
);
}
/* Typography */
h2
{
color
:
#2c3e50
;
text-align
:
center
;
}
h3
{
color
:
#3498db
;
margin-bottom
:
10px
;
}
ul
{
margin-left
:
20px
;
}
li
{
color
:
#555
;
}
</
style
>
\ No newline at end of file
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment