Skip to content

Commit 3ae6c63

Browse files
committed
Fix: Consistent animation naming in style.css and Portfolio.jsx
1 parent f4684ac commit 3ae6c63

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"eslint:recommended",
55
"plugin:react/recommended",
66
"plugin:prettier/recommended",
7-
"plugin:jsx-a11y/recommended"
7+
"plugin:jsx-a11y/recommended",
8+
"plugin:prettier/recommended"
89
],
910
"plugins": ["react", "prettier", "jsx-a11y"],
1011
"parserOptions": {

src/Components/Portfolio.jsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* Portfolio component
33
*
4-
* Highlights some of your creations. These can be designs, websites,
5-
* open source contributions, articles you've written and more.
4+
* Highlights some of your creations. These can be designs, websites,
5+
* open source contributions, articles you've written, and more.
66
*
7-
* This is a great area for you to to continually add to and refine
7+
* This is a great area for you to continually add to and refine
88
* as you continue to learn and create.
99
*/
1010

@@ -14,10 +14,10 @@ import React from "react";
1414
* Desk image
1515
*
1616
* Below is a sample desk image. Feel free to update this to an image of your choice,
17-
* updating below imageAltText to string that represents what you see in that image.
17+
* updating below imageAltText to a string that represents what you see in that image.
1818
*
1919
* Need an image? Check out https://unsplash.com to download a photo you
20-
* freely use on your site.
20+
* can freely use on your site.
2121
*/
2222
import image from "../images/design-desk.jpeg";
2323

@@ -26,14 +26,14 @@ const imageAltText = "desktop with books and laptop";
2626
/**
2727
* Project list
2828
*
29-
* An array of objects that will be used to display for your project
29+
* An array of objects that will be used to display your project
3030
* links section. Below is a sample, update to reflect links you'd like to highlight.
3131
*/
3232
const projectList = [
3333
{
3434
title: "10 Things To Know About Azure Static Web Apps 🎉",
3535
description:
36-
"Collaboration to create a beginner friendly article to help explain Azure Static Web Apps and tooling to get started.",
36+
"Collaboration to create a beginner-friendly article to help explain Azure Static Web Apps and tooling to get started.",
3737
url: "https://dev.to/azure/10-things-to-know-about-azure-static-web-apps-3n4i",
3838
},
3939
{
@@ -58,12 +58,13 @@ const projectList = [
5858

5959
const Portfolio = () => {
6060
return (
61-
<section className="padding" id="portfolio">
61+
<section className="portfolio padding" id="portfolio">
6262
<h2 style={{ textAlign: "center" }}>Portfolio</h2>
6363
<div style={{ display: "flex", flexDirection: "row", paddingTop: "3rem" }}>
6464
<div style={{ maxWidth: "40%", alignSelf: "center" }}>
6565
<img
6666
src={image}
67+
className="animated-image"
6768
style={{ height: "90%", width: "100%", objectFit: "cover" }}
6869
alt={imageAltText}
6970
/>

src/styles.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,26 @@ img.socialIcon {
123123
height: 30px;
124124
width: 30px;
125125
}
126+
127+
/* Add a slide-in-left animation */
128+
@keyframes slideInLeft {
129+
0% {
130+
transform: translateX(-100%);
131+
opacity: 0;
132+
}
133+
100% {
134+
transform: translateX(0);
135+
opacity: 1;
136+
}
137+
}
138+
139+
/* Animation for the image */
140+
.animated-image {
141+
animation: slideInLeft 1s ease-out;
142+
}
143+
144+
/* Animation for the project boxes */
145+
.container .box {
146+
animation: slideInLeft 1s ease-in-out;
147+
margin-bottom: 1.5rem; /* Adds spacing between boxes */
148+
}

0 commit comments

Comments
 (0)