Skip to content

Commit

Permalink
Design component (#974)
Browse files Browse the repository at this point in the history
* Added Design team with placeholder text, along with logo flip animation

* changed design text a bit

* npm run all changed formatting

* Fixed tier in Spring 2022

* Fixed design team text color
  • Loading branch information
EvanCPSC committed Nov 22, 2023
1 parent 67b1e10 commit d965a17
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/public/board/data/officers.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"positions": {
"S22": {
"title": "Dev Project Manager",
"tier": 14
"tier": 18
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions src/routes/(site)/6/teams/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
<!-- TODO: Algo -->

<!-- TODO: Design -->
<TeamSection info={TEAMS.design} textAlign={TextAlignment.RIGHT} term={VISIBLE_TERMS[$termIndex]}>
<p slot="content" class="size-md">
The <span class="brand-pink brand-em">design</span> team is awesome :capycool:
<span class="brand-pink brand-em">Design</span> does more than just web dev :surreallick:
</p>
</TeamSection>

<TeamSection info={TEAMS.dev} textAlign={TextAlignment.RIGHT} term={VISIBLE_TERMS[$termIndex]}>
<p slot="content" class="size-md">
Expand Down
18 changes: 18 additions & 0 deletions src/routes/(site)/6/teams/team-section.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
id={info.id}
class:align-right={textAlign === TextAlignment.RIGHT}
class:marketing-animation={info.id === 'marketing'}
class:design-animation={info.id === 'design'}
class:dev-animation={info.id === 'dev'}
class:oss-animation={info.id === 'oss'}
>
Expand Down Expand Up @@ -72,6 +73,23 @@
}
}
.design-animation img {
animation-duration: 2.8s;
animation-timing-function: cubic-bezier(0.425, 0.145, 0.515, 0.955);
animation-name: flip;
animation-iteration-count: infinite;
animation-direction: normal;
}
@keyframes flip {
from {
transform: rotateX(0deg);
}
to {
transform: rotateX(-360deg);
}
}
.dev-animation img {
animation-duration: 3s;
animation-name: spin;
Expand Down

0 comments on commit d965a17

Please sign in to comment.