Skip to content

Commit

Permalink
đŸ’„Animations - Make them consistent and snappy
Browse files Browse the repository at this point in the history
  • Loading branch information
SamBWagner committed Oct 19, 2024
1 parent e240063 commit f0c4395
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 12 deletions.
6 changes: 3 additions & 3 deletions UI/app/components/blogCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
padding: 20px;
border-radius: 8px;
cursor: pointer;
transition: box-shadow 0.3s ease-in-out;
transition: box-shadow 0.2s ease;

background-color: var(--background-color-lightened);

transition: transform 0.1s ease-in-out, box-shadow 0.4s ease-in-out;
transition: transform 0.2s ease, box-shadow 0.3s ease-in-out;
transform-origin: center;

color: var(--white);
Expand All @@ -37,7 +37,7 @@
.seeMoreIcon {
height: 32px;
color: var(--accent1);
transition: transform 0.3s ease;
transition: transform 0.2s ease;
}

.card:hover .seeMoreIcon {
Expand Down
2 changes: 1 addition & 1 deletion UI/app/components/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.gitHub, .linkedIn {
font-size: 2rem;
color: var(--accent1);
transition: fill 0.3s ease, transform 0.3s ease;
transition: fill 0.2s ease, transform 0.2s ease;
}

.gitHub:hover, .linkedIn:hover {
Expand Down
10 changes: 7 additions & 3 deletions UI/app/first-commander-deck/page.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import Link from "next/link";
import Footer from "../components/footer";
import Header from "../components/header";
import style from "./style.module.css";
import styles from "./style.module.css";
import { IoIosArrowBack } from "react-icons/io";

export default function Page() {
return (
<>
<Link href="/" className={`${style.headerLink}`}>
<Link href="/" className={`${styles.headerLink}`}>
<Header className={`container`} />
</Link>

Expand Down Expand Up @@ -1090,7 +1091,10 @@ export default function Page() {
</p>

<p>
<Link href="/">back home</Link>
<Link href="/" className={`${styles.goBackLink}`}>
<IoIosArrowBack />
back home
</Link>
</p>
</section>
</div>
Expand Down
6 changes: 6 additions & 0 deletions UI/app/first-commander-deck/style.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.headerLink {
text-decoration: none;
}

.goBackLink {
display: flex;
align-items: center;
gap: 0.2rem;
}
2 changes: 1 addition & 1 deletion UI/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ ul:not(#footer-list) li:nth-child(11)::before {
a {
color: var(--accent1);
text-decoration: underline;
transition: color 0.3s ease, text-decoration 0.3s ease;
transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
Expand Down
12 changes: 8 additions & 4 deletions UI/app/rust-game/page.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import Link from "next/link";
import Footer from "../components/footer";
import Header from "../components/header";
import style from "./style.module.css";
import styles from "./style.module.css";
import { IoIosArrowBack } from "react-icons/io";

export default function Page() {
return (
<>
<Link href="/" className={`${style.headerLink}`}>
<Link href="/" className={`${styles.headerLink}`}>
<Header className={`container`} />
</Link>

<main className={style.mainContainer}>
<main className={styles.mainContainer}>
<h2 id="learning-rust-blog-heading" className="container blog-heading">
Learning Rust
</h2>
Expand Down Expand Up @@ -261,7 +262,10 @@ export default function Page() {
</p>

<p>
<Link href="/">back home</Link>
<Link href="/" className={`${styles.goBackLink}`}>
<IoIosArrowBack />
back home
</Link>
</p>
</section>
</div>
Expand Down
6 changes: 6 additions & 0 deletions UI/app/rust-game/style.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.headerLink {
text-decoration: none;
}

.goBackLink {
display: flex;
align-items: center;
gap: 0.2rem;
}

0 comments on commit f0c4395

Please sign in to comment.