Skip to content

Commit

Permalink
Merge pull request #306 from xyvora/fade-in
Browse files Browse the repository at this point in the history
Add page fade in to layout to remove duplication
  • Loading branch information
sanders41 authored Aug 10, 2023
2 parents a19790b + f37b147 commit a98fb5f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 104 deletions.
15 changes: 0 additions & 15 deletions frontend/src/lib/components/AccountInfoForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,3 @@
</div>
</form>
</div>

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
15 changes: 0 additions & 15 deletions frontend/src/lib/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,3 @@
</div>
</div>
</div>

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
15 changes: 15 additions & 0 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,18 @@
<Navbar />
<slot />
</div>

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
:global(.page-fade-in) {
animation: fadeIn 1s ease-in-out;
}
</style>
15 changes: 0 additions & 15 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -787,19 +787,4 @@
</div>
</div>
{/if}

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
</div>
15 changes: 0 additions & 15 deletions frontend/src/routes/create-goals/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -513,18 +513,3 @@
</div>
</div>
</div>

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
15 changes: 0 additions & 15 deletions frontend/src/routes/edit-goal/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -494,18 +494,3 @@
</div>
</div>
</div>

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
15 changes: 0 additions & 15 deletions frontend/src/routes/forgot-password/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,3 @@
</figure>
</form>
</div>

<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
14 changes: 0 additions & 14 deletions frontend/src/routes/signup/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,4 @@
<main>
<AccountInfoForm />
</main>
<style>
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.page-fade-in {
animation: fadeIn 1s ease-in-out;
}
</style>
</div>

0 comments on commit a98fb5f

Please sign in to comment.