modernizing blog design

main
Alex the Emperor Penguin 3 years ago
parent 3b279349df
commit f017860f94

@ -5,6 +5,8 @@ body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
height: 100%; height: 100%;
color: white;
background-color: #2c3e50;
} }
a { a {
@ -73,6 +75,7 @@ nav {
margin: 0; margin: 0;
text-align: center; text-align: center;
background-color: #34495E; background-color: #34495E;
box-shadow: #111111 0.3rem 0.3rem 0.3rem;
} }
.postList { .postList {
@ -88,6 +91,7 @@ nav {
padding-right: 0.3rem; padding-right: 0.3rem;
margin: 0; margin: 0;
border: 0.1rem solid #34495E; border: 0.1rem solid #34495E;
box-shadow: #111111 0.3rem 0.3rem 0.3rem;
} }
.postParagraph { .postParagraph {
@ -100,6 +104,6 @@ nav {
} }
body { body {
color: white; color: white;
background: black; background-color: #2c3e50;
} }
} }

@ -20,7 +20,7 @@ export default async function Page({ children }) {
<div className="postContent"> <div className="postContent">
<div className="categories"> <div className="categories">
{item["@expand"].categories.map((item, i) => ( {item["@expand"].categories.map((item, i) => (
<div key={i} style={{backgroundColor: item.color, color: item.text_color , borderRadius: 100, textAlign: "center", padding: "0.15rem", fontWeight: "bold"}}> <div key={i} style={{backgroundColor: item.color, color: item.text_color , borderRadius: 100, textAlign: "center", padding: "0.15rem", paddingLeft: "0.3rem", paddingRight: "0.3rem", fontWeight: "bold", boxShadow: "#111111 0.3rem 0.3rem 0.3rem"}}>
{item.name} {item.name}
</div> </div>
))} ))}

Loading…
Cancel
Save