-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Jesse Washburn <[email protected]> Co-authored-by: Axel Lo <[email protected]> Co-authored-by: dogi <[email protected]>
- Loading branch information
1 parent
b5c8e4d
commit 911586e
Showing
9 changed files
with
354 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/app/shared/dialogs/dialogs-announcement.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<div class="announcement-container"> | ||
<img | ||
src="https://res.cloudinary.com/mutugiii/image/upload/v1730395098/challenge_horizontal_new_tnco4v.jpg" | ||
alt="Issues Challenge" | ||
class="announcement-banner" | ||
/> | ||
|
||
<div class="steps-container"> | ||
<div class="step"> | ||
<mat-icon color="primary"> | ||
{{ userStatus.joinedCourse ? 'check_circle' : 'radio_button_unchecked' }} | ||
</mat-icon> | ||
<span>Únete al curso <a href="/courses/view/{{ courseId }}">Reto de noviembre</a>.</span> | ||
<a *ngIf="!userStatus.joinedCourse" mat-button mat-raised-button color="primary" type="button" (click)="joinCourse()"> | ||
Únete | ||
</a> | ||
</div> | ||
|
||
<div class="step"> | ||
<mat-icon color="primary"> | ||
{{ userStatus.surveyComplete ? 'check_circle' : 'radio_button_unchecked' }} | ||
</mat-icon> | ||
<span>¡Encuesta finalizada!</span> | ||
<a *ngIf="userStatus.joinedCourse && !userStatus.surveyComplete" mat-button mat-raised-button color="primary" type="button" (click)="doSurvey()"> | ||
Encuesta | ||
</a> | ||
</div> | ||
|
||
<div class="step"> | ||
<mat-icon color="primary"> | ||
{{ userStatus.hasPost ? 'check_circle' : 'radio_button_unchecked' }} | ||
</mat-icon> | ||
<span>Comparte tu opinión en Nuestras Voces.</span> | ||
<a *ngIf="userStatus.joinedCourse && userStatus.surveyComplete && !userStatus.hasPost" mat-button mat-raised-button color="primary" type="button" (click)="postVoice()"> | ||
Voces | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div class="thermometer-container"> | ||
<div class="thermometer"> | ||
<div class="thermometer-bar" [style.width.%]="getGoalPercentage()"> | ||
<div class="thermometer-label" [ngClass]="{'outside': getGoalPercentage() < 8}"> | ||
{{ getGoalPercentage() | number:'1.0-2' }}% ({{ '$'+ groupSummary?.length }}) | ||
</div> | ||
</div> | ||
</div> | ||
<div class="thermometer-goal"> | ||
<span>$0</span> | ||
<span>$500</span> | ||
</div> | ||
</div> |
79 changes: 79 additions & 0 deletions
79
src/app/shared/dialogs/dialogs-announcement.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
@import '../../variables'; | ||
|
||
.announcement-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 20px; | ||
} | ||
|
||
.announcement-banner { | ||
max-width: 100%; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.steps-container { | ||
width: 100%; | ||
max-width: 600px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.step { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.step mat-icon { | ||
margin-right: 10px; | ||
} | ||
|
||
.step span { | ||
flex-grow: 1; | ||
} | ||
|
||
.thermometer-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
margin-top: 10px; | ||
} | ||
|
||
.thermometer { | ||
width: 100%; | ||
height: 30px; | ||
background-color: #e0e0e0; | ||
border-radius: 15px; | ||
overflow: hidden; | ||
position: relative; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.thermometer-bar { | ||
height: 100%; | ||
background-color: $primary; | ||
transition: width 0.5s; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.thermometer-label { | ||
color: white; | ||
font-size: 12px; | ||
padding: 2px; | ||
border-radius: 3px; | ||
} | ||
|
||
.thermometer-label.outside { | ||
position: absolute; | ||
left: 0.5rem; | ||
} | ||
|
||
.thermometer-goal { | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100%; | ||
font-size: 14px; | ||
} |
Oops, something went wrong.