Skip to content

Commit 4dc0c5e

Browse files
4manasatumms2021389manasa
authored
Added Todo component (#605)
* initial changes * Added Todo component * feat: update Todo component to use MatIcon and enhance styling --------- Co-authored-by: Siva Rama Krishna <[email protected]> Co-authored-by: manasa <[email protected]>
1 parent 3766352 commit 4dc0c5e

File tree

6 files changed

+399
-0
lines changed

6 files changed

+399
-0
lines changed

package-lock.json

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<div *ngIf="surveyCase">
2+
<div class="banner-container">
3+
<div class="icon-wrapper">
4+
<div class="icon-box">
5+
<img class="quick-link-icon" [src]="img" />
6+
</div>
7+
</div>
8+
<div class="content-text">
9+
<h2>Share Your Experience</h2>
10+
<p>Take a quick survey about your recent experience with MediaCo.</p>
11+
</div>
12+
<div class="action-wrapper">
13+
<button (click)="clickGo(surveyCase)" class="start-btn">
14+
Start
15+
<mat-icon>arrow_forward</mat-icon>
16+
</button>
17+
</div>
18+
</div>
19+
</div>
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
$font-family: 'Roboto', sans-serif;
2+
3+
$text-white: #ffffff;
4+
$btn-text-color: #5c4498;
5+
6+
.banner-container {
7+
font-family: $font-family;
8+
background: linear-gradient(135deg, rgb(103, 80, 164) 0%, rgb(248, 20, 227) 50%, rgb(0, 201, 255) 100%) 0% 0% / 200% 200%;
9+
10+
border-radius: 24px;
11+
padding: 24px 32px;
12+
display: flex;
13+
align-items: center;
14+
gap: 24px;
15+
color: $text-white;
16+
box-shadow: 0 8px 20px rgba(94, 75, 159, 0.25);
17+
18+
@media (max-width: 768px) {
19+
flex-direction: column;
20+
text-align: center;
21+
padding: 32px 24px;
22+
}
23+
24+
position: absolute;
25+
z-index: 10;
26+
left: 29%;
27+
top: 15rem;
28+
}
29+
30+
.icon-wrapper {
31+
flex-shrink: 0;
32+
33+
.icon-box {
34+
width: 72px;
35+
height: 72px;
36+
background: rgba(255, 255, 255, 0.15);
37+
border-radius: 16px;
38+
display: flex;
39+
align-items: center;
40+
justify-content: center;
41+
backdrop-filter: blur(4px);
42+
}
43+
}
44+
45+
.content-text {
46+
flex-grow: 1;
47+
display: flex;
48+
flex-direction: column;
49+
justify-content: center;
50+
51+
h2 {
52+
margin: 0 0 6px 0;
53+
font-size: 22px;
54+
font-weight: 400;
55+
}
56+
57+
p {
58+
margin: 0;
59+
font-size: 15px;
60+
opacity: 0.9;
61+
font-weight: 400;
62+
line-height: 1.4;
63+
}
64+
}
65+
66+
.action-wrapper {
67+
flex-shrink: 0;
68+
69+
.start-btn {
70+
background-color: #ffffff;
71+
color: #5c4498;
72+
border: none;
73+
padding: 12px 28px;
74+
border-radius: 50px;
75+
cursor: pointer;
76+
display: flex;
77+
align-items: center;
78+
gap: 6px;
79+
letter-spacing: 0.1px;
80+
font-size: 14px;
81+
font-weight: 500;
82+
line-height: 20px;
83+
}
84+
}
85+
86+
.quick-link-icon {
87+
height: 35px;
88+
filter: brightness(0) saturate(100%) invert(100%);
89+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { TodoComponent } from './todo.component';
4+
5+
describe('TodoComponent', () => {
6+
let component: TodoComponent;
7+
let fixture: ComponentFixture<TodoComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [TodoComponent]
12+
}).compileComponents();
13+
14+
fixture = TestBed.createComponent(TodoComponent);
15+
component = fixture.componentInstance;
16+
fixture.detectChanges();
17+
});
18+
19+
it('should create', () => {
20+
expect(component).toBeTruthy();
21+
});
22+
});

0 commit comments

Comments
 (0)