Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping the questions and adding the diagrams #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
54 changes: 51 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"zone.js": "~0.11.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1102.3",
"@angular-devkit/build-angular": "^0.1102.19",
"@angular/cli": "~11.2.3",
"@angular/compiler-cli": "~11.2.4",
"@types/jasmine": "~3.6.0",
Expand Down
26 changes: 22 additions & 4 deletions src/app/app-body/home.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@







.submit-btn {
float: right;
}
Expand All @@ -56,6 +52,28 @@
color: darkorange;
}

.tab-question-img {
width: 500px !important;
float: right;
background-position: center;
background-repeat: no-repeat;
position: relative;
background-size: cover;

}

.tab-question-img-header {
text-align: end;
position: relative;
font-size: larger;
font-weight: bold;
top: -20px;
right: -500px;
transform: translate(-50%, -50%);
color: darkblue;
}


.options{
margin-bottom: 10px !important;
}
Expand Down
41 changes: 36 additions & 5 deletions src/app/app-body/home.component.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
<div class="app-body">
<div class="card-container">
<nz-tabset nzType="card">
<nz-tab nzTitle="Representation & Format" (nzClick)="tabClicked(1)">
<nz-tabset [(nzSelectedIndex)]="currentSelectedTab" nzType="card" >
<nz-tab nzTitle="Representation & Format" >

<p class="tab-question-txt">
[ {{tab1CurrentData.SectionId}} of {{tab1Data.length+tab2Data.length+tab3Data.length}} ]
[{{tab1CurrentData.SectionId}} of {{tab1Data.length+tab2Data.length+tab3Data.length}}]
{{ tab1CurrentData ? tab1CurrentData.Question : "" }}
</p>
<nz-divider></nz-divider>
<!-- position of the label
<label class="tab-question-img-header">
{{ tab1CurrentData ? tab1CurrentData.SectionName : "" }}
</label>
-->
<div>
<label class="tab-question-img-header"> {{ tab1CurrentData ? tab1CurrentData.SectionName : "" }} </label>
<img class="tab-question-img"
[src]="tab1CurrentData.Image"
[title]="tab1CurrentData.SectionName"
/>
</div>

<div
*ngFor="let item of tab1CurrentData.Options; let i = index"
class="options"
Expand Down Expand Up @@ -36,12 +49,21 @@
</div>
</nz-tab>

<nz-tab nzTitle="Content & Context" (nzClick)="tabClicked(2)" >
<nz-tab nzTitle="Content & Context" >
<p class="tab-question-txt">
[ {{tab2CurrentData.SectionId}} of {{tab1Data.length+tab2Data.length+tab3Data.length}} ]
{{ tab2CurrentData ? tab2CurrentData.Question : "" }}
</p>
<nz-divider></nz-divider>

<div>
<label class="tab-question-img-header"> {{ tab1CurrentData ? tab1CurrentData.SectionName : "" }} </label>
<img class="tab-question-img"
[src]="tab1CurrentData.Image"
[title]="tab1CurrentData.SectionName"
/>
</div>

<div
*ngFor="let item of tab2CurrentData.Options; let i = index"
class="options"
Expand Down Expand Up @@ -70,12 +92,21 @@
</div>
</nz-tab>

<nz-tab nzTitle="Hosting Environment Capabilities" (nzClick)="tabClicked(3)">
<nz-tab nzTitle="Hosting Environment Capabilities" >
<p class="tab-question-txt">
[ {{tab3CurrentData.SectionId}} of {{tab1Data.length+tab2Data.length+tab3Data.length}} ]
{{ tab3CurrentData ? tab3CurrentData.Question : "" }}
</p>
<nz-divider></nz-divider>

<div>
<label class="tab-question-img-header"> {{ tab1CurrentData ? tab1CurrentData.SectionName : "" }} </label>
<img class="tab-question-img"
[src]="tab1CurrentData.Image"
[title]="tab1CurrentData.SectionName"
/>
</div>

<div
*ngFor="let item of tab3CurrentData.Options; let i = index"
class="options"
Expand Down
Loading