Skip to content

Commit 1f50d12

Browse files
committed
reformat projectItem cards, change card a tags, and change hero section a tag
1 parent 4267da2 commit 1f50d12

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

css/style.css

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ html {
8080
--card-title-font-family: 'CreteRound-Regular';/*Font family for h3 tags in project item titles*/
8181
--card-font-size: 4em;/*Font size for h3 tags in project item titles*/
8282
--footer-font-family: monospace;;
83-
--footer-font-size: 1em;/*Font size for footer*/
83+
--footer-font-size: 2em;/*Font size for footer*/
8484
}
8585
/************End of Root Formatting************/
8686

@@ -267,16 +267,16 @@ section h2 {
267267
/*Format hero content a*/
268268
.heroContent a {
269269
font-family: var(--primary-round-font);
270-
font-size: 2.5em;
270+
font-size: 2em;
271271
font-weight: bolder;
272272
text-decoration: none;
273273
text-transform: uppercase;
274274
background-color: #BDFFFD;
275275
padding: 50px;
276-
border-radius: 10px;
276+
border-radius: 100px;
277277
color: black;
278278
display: inline-block;
279-
width: 60%;
279+
width: 50%;
280280
margin-top: 20px;
281281
animation: appear 1s ease-in;/*Create appear animation*/
282282
}
@@ -340,54 +340,51 @@ section h2 {
340340
.projectGrid {
341341
display: grid;
342342
grid-template-columns: 1fr;/*Create a 1 column grid*/
343-
gap: 20px;
343+
gap: 50px;
344344
padding: 15px;
345345
}
346346

347347
/*Format Project Grid Items*/
348348
.projectGridItem {
349-
background-image: url(../images/darkcardbg.jpg);
350-
background-size: cover;
351-
background-position: center;
352349
display: flex;
353350
flex-direction: column;
354351
align-items: center;
355352
justify-content: center;
356353
margin: auto;
357354
width: 75%;
358-
border-radius: 10px;
355+
border-radius: 70px;
359356
padding: 50px;
357+
background-image: url(../images/blueCard.jpg);
358+
background-size: cover;
359+
background-position: center;
360360
}
361361

362362
/*Format Project Grid Item Images*/
363363
.projectGridItem img {
364364
width: 100%;
365+
height: 400px;
365366
padding: 20px;
367+
margin-bottom: 50px;
366368
border-radius: 15px;
367369
}
368370

369371
/*Format Project Grid Item Titles*/
370372
.projectGridItem h3 {
371373
font-family: var(--card-title-font-family);
372374
font-size: var(--card-font-size);
373-
color: white;
375+
color: black;
374376
padding: 20px;
377+
margin-bottom: 50px;
375378
}
376379

377380
/*Format project grid item buttons*/
378-
.projectGridItem a {
379-
margin-top: 10px;
380-
background-color: #f5f5f5;
381-
font-size: 4.5em;
382-
padding: 30px;
383-
color: black;
384-
text-decoration: none;
385-
font-weight: bolder;
386-
font-family: sans-serif;
387-
text-transform: uppercase;
381+
.projectGridItem .btn-primary {
388382
display: inline-block;
389-
width: 80%;
390-
border-radius: 10px;
383+
width: 60%;
384+
padding: 20px;
385+
font-size: 3em;
386+
font-family: sans-serif;
387+
border-radius: 100px;
391388
}
392389
/************End of Section Formatting************/
393390

@@ -471,15 +468,15 @@ footer {
471468

472469
/*Format hero content a*/
473470
.heroContent a {
474-
font-size: 2em;
471+
font-size: 1.5em;
475472
padding: 30px;
476-
width: 50%;
473+
width: 40%;
477474
transition: 0.5s ease-in;/*Create button hover effect*/
478475
}
479476

480477
/*Create button hover effect*/
481478
.heroContent a:hover {
482-
background-color: #9ce2e1;
479+
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #9ce2e1;
483480
color: white;
484481
}
485482
/*Format about section*/
@@ -527,6 +524,7 @@ footer {
527524
font-size: 1.5em;
528525
width: 100%;
529526
}
527+
530528
/*Format project grid*/
531529
.projectGrid {
532530
grid-template-columns: 1fr 1fr 1fr;/*Create a 3 column grid*/
@@ -539,13 +537,17 @@ footer {
539537
.projectGridItem {
540538
width: 100%;
541539
height: 100%;
540+
object-fit: cover;
542541
transition: 0.5s ease-in;/*Create hover outline effect*/
542+
display: flex;
543+
flex-direction: column;
544+
justify-content: space-between;
543545
}
544546

545-
/*Create outline hover effect*/
546-
.projectGridItem:hover {
547-
outline: 2px solid #dd7973;
548-
transform: scale(1.1);
547+
/*Format projecct grid item button*/
548+
.projectGridItem .btn-primary {
549+
width: 40%;
550+
font-size: 1.5em;
549551
}
550552

551553
/*Format project grid item buttons*/
@@ -562,6 +564,7 @@ footer {
562564
/*Format project grid item images*/
563565
.projectGridItem img {
564566
width: 100%;
567+
height: 100%;
565568
object-fit: cover;
566569
}
567570
}

0 commit comments

Comments
 (0)