Skip to content

Commit b770155

Browse files
committed
add format for grid container and grid items
1 parent 3572ebd commit b770155

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

css/style.css

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
font-family: 'Quicksand-VariableFont_wght';
2828
src: url(../fonts/Quicksand-VariableFont_wght.ttf);
2929
}
30+
31+
@font-face {
32+
font-family: 'CreteRound-Regular';
33+
src: url(../fonts/CreteRound-Regular.ttf);
34+
}
3035
/************End of Font face Formatting************/
3136

3237
/************Root Formatting************/
@@ -35,8 +40,10 @@
3540
--primary-font-size: 6.5em;/*Primary font size*/
3641
--secondary-round-font: 'Quicksand-VariableFont_wght';/*Font family for h2 tags*/
3742
--second-font-size: 4em;/*Second font size for h2 tags*/
43+
--card-title-font-family: 'CreteRound-Regular';/*Font family for h3 tags in project item titles*/
44+
--card-font-size: 4em;/*Font size for h3 tags in project item titles*/
3845
--footer-font-family: monospace;;
39-
--footer-font-size: 3em;/*Font size for footer*/
46+
--footer-font-size: 2em;/*Font size for footer*/
4047
}
4148
/************End of Root Formatting************/
4249

@@ -76,6 +83,61 @@ section h2 {
7683
font-family: var(--secondary-round-font);
7784
font-size: var(--second-font-size);
7885
}
86+
87+
/**Project section Formatting**/
88+
/*Format Project Grid*/
89+
.projectGrid {
90+
display: grid;
91+
grid-template-columns: 1fr;/*Create a 1 column grid*/
92+
gap: 20px;
93+
padding: 15px;
94+
}
95+
96+
/*Format Project Grid Items*/
97+
.projectGridItem {
98+
background-image: url(../images/darkcardbg.jpg);
99+
background-size: cover;
100+
background-position: center;
101+
display: flex;
102+
flex-direction: column;
103+
align-items: center;
104+
justify-content: center;
105+
margin: auto;
106+
width: 75%;
107+
border-radius: 10px;
108+
padding: 50px;
109+
}
110+
111+
/*Format Project Grid Item Images*/
112+
.projectGridItem img {
113+
width: 100%;
114+
padding: 20px;
115+
border-radius: 15px;
116+
}
117+
118+
/*Format Project Grid Item Titles*/
119+
.projectGridItem h3 {
120+
font-family: var(--card-title-font-family);
121+
font-size: var(--card-font-size);
122+
color: white;
123+
padding: 20px;
124+
}
125+
126+
/*Format project grid item buttons*/
127+
.projectGridItem a {
128+
margin-top: 10px;
129+
background-color: #f5f5f5;
130+
font-size: 4.5em;
131+
padding: 30px;
132+
color: black;
133+
text-decoration: none;
134+
font-weight: bolder;
135+
font-family: sans-serif;
136+
text-transform: uppercase;
137+
display: inline-block;
138+
width: 80%;
139+
border-radius: 10px;
140+
}
79141
/************End of Section Formatting************/
80142

81143
/************Footer Formatting************/

0 commit comments

Comments
 (0)