Skip to content

Commit 19cd773

Browse files
committed
css added
1 parent d81e223 commit 19cd773

5 files changed

Lines changed: 40 additions & 18 deletions

File tree

src/components/Card/Card.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ const Card = (props) => {
88
<h2>{title}</h2>
99
<img src={image} alt={title} />
1010

11-
<a href={url}> {title}</a>
12-
13-
11+
<a href={url} className="cardhref ">
12+
{" "}
13+
{title}
14+
</a>
1415
</div>
1516
);
1617
};

src/components/Card/Card.scss

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
.card {
2-
display: grid;
3-
grid-template:
4-
"image image image" 1fr
5-
". title ." auto / var(--space--gap) 1fr var(--space--gap);
6-
border: var(--border);
7-
border-color: var(--color--accent);
2+
display: flex;
3+
flex-direction: column;
4+
}
85

9-
&__title {
10-
grid-area: title;
11-
}
12-
&__image {
13-
grid-area: image;
14-
mix-blend-mode: overlay;
15-
}
6+
h2 {
7+
text-align: center;
8+
font-size: 2em;
9+
}
10+
h2:hover {
11+
background-color: rgb(26, 3, 26);
12+
color: white;
13+
}
14+
.cardhref {
15+
font-size: 2em;
16+
font-weight: bold;
17+
color: rgb(255, 255, 255);
18+
text-decoration: none;
19+
position: relative;
20+
top: -40%;
21+
text-align: center;
22+
}
23+
.cardhref:hover {
24+
background-color: skyblue;
25+
opacity: 0.7;
26+
color: black;
1627
}

src/components/Search/Search.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
display: flex;
44
gap: var(--space--gap);
55
align-items: stretch;
6+
margin-bottom: 15px;
67
}
78
&__label {
89
align-self: center;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.button {
2+
margin-bottom: 10px;
3+
}

src/components/SearchResult/SearchResult.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ table {
44
}
55

66
thead {
7-
background-color: #f2f2f2;
7+
background-color: rgb(31, 11, 31);
8+
color: white;
9+
}
10+
tbody tr:hover {
11+
background-color: skyblue;
812
}
9-
1013
th,
1114
td {
1215
padding: 8px;
@@ -17,3 +20,6 @@ td {
1720
th {
1821
font-weight: bold;
1922
}
23+
tr:nth-child(even) {
24+
background-color: #f2f2f2;
25+
}

0 commit comments

Comments
 (0)