Skip to content

Commit

Permalink
fix: make images and text darker
Browse files Browse the repository at this point in the history
  • Loading branch information
suvnshr committed Dec 21, 2024
1 parent 9ff7f73 commit 6b77f6b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/BlogCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const useStyles = makeStyles({
objectFit: "contain",
height: 210,
backgroundColor: "#2b2b2b",
filter: "brightness(0.8)",
},
button: {
padding: "8px 16px",
Expand Down
1 change: 1 addition & 0 deletions components/MyAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const useStyles = makeStyles((theme) => ({
height: 180,
width: 180,
},
filter: "brightness(0.93)",
margin: "auto",
borderRadius: 30,
},
Expand Down
1 change: 1 addition & 0 deletions components/ProjectCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const useStyles = makeStyles({
objectFit: "contain",
height: 210,
backgroundColor: "#2b2b2b",
filter: "brightness(0.8)",
},
button: {
padding: "8px 16px",
Expand Down
4 changes: 4 additions & 0 deletions customTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ let customTheme = createMuiTheme({
secondary: {
main: grey[800],
},
text: {
primary: "#fafafa",
}
},

});

customTheme = responsiveFontSizes(customTheme);
Expand Down
7 changes: 4 additions & 3 deletions sections/ProfileSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import MyAvatar from "../components/MyAvatar";
import SocialLinkButton from "../components/SocialLinkButton";
import profileData from "../data/profileData";

const TEXT_SHADOW = "0.5px 2px 2px #323232, 0 1px 3px #323232";

const useStyles = makeStyles((theme) => ({
background: {
backgroundImage: `url(${profileData.backgroundImage})`,
Expand All @@ -21,9 +23,8 @@ const useStyles = makeStyles((theme) => ({
},

name: {
color: "#fff",
padding: "0 10px",
textShadow: "0.5px 2px 2px #545454, 0 1px 3px #545454",
textShadow: TEXT_SHADOW,
letterSpacing: "0.5px",
[theme.breakpoints.down("sm")]: {
marginTop: 20,
Expand All @@ -34,7 +35,7 @@ const useStyles = makeStyles((theme) => ({
color: "#fcfcfc",
padding: "0 10px",
marginTop: 10,
textShadow: "0.5px 2px 2px #545454, 0 1px 3px #545454",
textShadow: TEXT_SHADOW,
[theme.breakpoints.down("sm")]: {
fontSize: "1.15em",
},
Expand Down

0 comments on commit 6b77f6b

Please sign in to comment.