This commit is contained in:
Mosiur Rahman
2024-11-19 16:15:43 +06:00
parent 47c5b27339
commit 1613fee843
4 changed files with 52 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
<div class="container"> <div class="container">
<div class="title">
<h2>Backup List</h2>
</div>
<div class="table"> <div class="table">
<table> <table>
<thead> <thead>
@@ -10,6 +13,7 @@
backup volume backup volume
</th> </th>
<th>Copy Name</th> <th>Copy Name</th>
<th><button (click)="onReset()">reset</button></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -17,6 +21,7 @@
<td><a target="_blank" [href]=backup.projectURL>{{backup.projectName}}</a></td> <td><a target="_blank" [href]=backup.projectURL>{{backup.projectName}}</a></td>
<td><a target="_blank" [href]=backup.volumeURL>{{backup.volumeName}}</a></td> <td><a target="_blank" [href]=backup.volumeURL>{{backup.volumeName}}</a></td>
<td class="copyName" #copy (click)="copyName(copy)">{{backup.volumeName}}-{{currentDate | date: 'dd-MM-YYYY'}}-Cloud</td> <td class="copyName" #copy (click)="copyName(copy)">{{backup.volumeName}}-{{currentDate | date: 'dd-MM-YYYY'}}-Cloud</td>
<td class="input"><input type="checkbox" name="status" id="status" /></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -1,5 +1,26 @@
@import './../../../shared/scss/colors.scss'; @import './../../../shared/scss/colors.scss';
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.title {
padding: 2rem 0;
margin: 1rem 2rem 0 2rem;
}
h2{
color: $title;
}
.table{
padding: 0rem 2rem;
}
table { table {
margin-left: 1rem; margin-left: 1rem;
} }
@@ -12,6 +33,7 @@ table, tr, td {
th{ th{
color: $txt-heading-color; color: $txt-heading-color;
font-size: 1.5rem; font-size: 1.5rem;
padding-bottom: 3rem;
} }
tbody tr { tbody tr {
@@ -20,26 +42,43 @@ tbody tr {
tbody tr:hover { tbody tr:hover {
transform: scale(1.03); transform: scale(1.03);
background-color: $hover-color; background-color: rgba($hover-color,0.5);
border-collapse: collapse; border-collapse: collapse;
border: none; border: none;
} }
td:first-child{ td:first-child{
border-radius: 1rem 0rem 0rem 1rem; border-radius: 1rem 0rem 0rem 1rem;
padding-left: 2rem;
} }
td:nth-child(3){
transition: color 0.09s ease-in-out;
}
td:last-child{ td:last-child{
border-radius: 0rem 1rem 1rem 0rem; border-radius: 0rem 1rem 1rem 0rem;
padding-right: 2rem;
} }
td:nth-child(3):active {
color: rgb(168, 168, 168);
}
td { td {
padding: 1rem; padding: 0.7rem 0.5rem;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
} }
a{ a{
text-decoration: none; text-decoration: none;
color: black;
}
a:active {
color: rgb(168, 168, 168);
} }
.copyName:hover { .copyName:hover {

View File

@@ -1,4 +1,4 @@
import { Component, ElementRef, OnInit, QueryList, ViewChild, ViewChildren, viewChildren } from '@angular/core'; import { Component, OnInit, ViewChild } from '@angular/core';
import { BackupService } from './backup-list.service'; import { BackupService } from './backup-list.service';
import { Backup } from '../../../shared/model/backup.model'; import { Backup } from '../../../shared/model/backup.model';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
@@ -27,4 +27,7 @@ export class BackupListComponent implements OnInit{
console.log("Copied") console.log("Copied")
}).catch(err=>console.log(err)) }).catch(err=>console.log(err))
} }
onReset() {
}
} }

View File

@@ -1,4 +1,5 @@
$bg-color: #FEF9F2; $bg-color: #FEF9F2;
$txt-heading-color: #72BF78; $txt-heading-color: #72BF78;
$txt-color: #1E201E; $txt-color: #1E201E;
$hover-color: #B6FFA1; $hover-color: #B6FFA1;
$title: #62825D;