Skip to content

Commit 3ac4655

Browse files
Cards footer button aligned to bottom with hover animation
1 parent c549cae commit 3ac4655

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/components/ProjectList/ProjectsCards.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const Card = ({
3434
<div className="Card-Description">
3535
<p> {description}</p>
3636
</div>
37-
<div className="Card-Link">Go to Project</div>
3837
</div>
38+
<div className="Card-Link">Go to Project</div>
3939
</a>
4040
</div>
4141
);

src/components/ProjectList/css/project-cards.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
.Project-Logo {
1212
width: 45%;
13-
height: 40%;
13+
height: auto;
1414
margin-top: 5%;
1515
}
1616
.Card-Body {
@@ -49,6 +49,8 @@
4949
color: black;
5050
}
5151
.Card-Real-Link:link {
52+
display: flex;
53+
flex-direction: column;
5254
text-decoration: none;
5355
color: black;
5456
margin: 0 auto;
@@ -63,8 +65,16 @@
6365
}
6466
.Card-Link {
6567
position: relative;
66-
padding: 10px;
68+
padding: 15px;
6769
color: #0f3cef;
70+
background: transparent;
71+
transition: .5s;
72+
margin-top: auto;
73+
border-top: rgba(0, 0, 0, 0.12) 1px solid;
74+
}
75+
.Card-Link:hover {
76+
color: whitesmoke;
77+
background: #0f3cef;
6878
}
6979
.Card-Title {
7080
margin-top: 6%;

src/components/ProjectList/css/search.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
border: 1px solid #DCDCDC;
1717
}
1818

19+
#search:hover,#search:focus {
20+
border: 1px #0f3cef solid ;
21+
}
22+
1923
.inputContainer {
2024
width: 47%;
2125
margin-top: 40px;

0 commit comments

Comments
 (0)