Skip to content

Commit

Permalink
update card design
Browse files Browse the repository at this point in the history
  • Loading branch information
axherrm committed Jan 16, 2024
1 parent 8e71bac commit 5295f40
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/app/components/skill-card/skill-card.component.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
:host {
// color vars:
// OLD:
--background: #000000;
--circle-background: white;
--circle-text: #cb1bd2;
--circle-stroke: #cb1bd2;

// Variant 1 NEW:
//--background: white;
//--circle-background: #262626;
//--circle-text: white;
//--background: #000000;
//--circle-background: white;
//--circle-text: #cb1bd2;
//--circle-stroke: #cb1bd2;
//--circle-background-stroke-width: 1rem;
//--stroke-width: 0.4rem;

// Variant 1 NEW:
--background: white;
--circle-background: #262626;
--circle-text: white;
--circle-stroke: #e134e8;
--circle-background-stroke-width: 19%;
--stroke-width: 0.4rem;

@for $i from 1 through 20 {
&:nth-child(#{$i}) {
Expand All @@ -36,6 +39,11 @@
animation: rotate-back 1s ease-in-out forwards;
&.card-rotated {
animation: rotate 1s ease-in-out forwards;
//position: fixed;
//top: 20vh;
//left: 20vw;
//width: 60vw;
//height: 60vh;
}

&:hover {
Expand Down Expand Up @@ -124,7 +132,7 @@ circle-progress {
}

&::part(value) {
stroke-width: 0.4rem;
stroke-width: var(--stroke-width);
//stroke: #cb1bd2;
stroke: var(--circle-stroke);
stroke-linecap: round;
Expand All @@ -133,7 +141,7 @@ circle-progress {
&::part(circle) {
//stroke: #000000;
stroke: var(--background);
stroke-width: 1rem;
stroke-width: var(--circle-background-stroke-width);
transition: all 0.3s ease-in-out;
//fill: white;
fill: var(--circle-background);
Expand All @@ -148,16 +156,6 @@ circle-progress {
}
}

// TODO remove
//.background {
// position: fixed;
// display: none;
// top: 0;
// left: 0;
// width: 100vw;
// height: 100vh;
//}

@keyframes rotate {
0% {
transform: rotateY(0deg);
Expand Down

0 comments on commit 5295f40

Please sign in to comment.