Skip to content

Commit

Permalink
fix(*): adj pic and add titleFont
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Feb 25, 2024
1 parent 43cd209 commit d52310f
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 6 deletions.
42 changes: 42 additions & 0 deletions src/Components/Fonts/TileFont.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import React from "react";
import PropTypes from "prop-types";
import { HeroText } from "../../Layout/Hero/styledHero";

export const TitleFont = ({
primary,
position,
size,
label,
icon,
...props
}) => {
const mode = primary ? "button--primary" : "button--secondary";
return (
<HeroText
position
{...props}
className={[`button--${size}`, mode].join(" ")}
>
{label}
</HeroText>
);
};

TitleFont.propTypes = {
primary: PropTypes.bool,
backgroundColor: PropTypes.string,
size: PropTypes.oneOf(["small", "medium", "large"]),
label: PropTypes.string.isRequired,
onClick: PropTypes.func,
icon: PropTypes.element,
position: PropTypes.oneOf(["Left", "Right"])
};

TitleFont.defaultProps = {
backgroundColor: null,
primary: false,
size: "medium",
onClick: undefined,
icon: null,
position: "Left",
};
31 changes: 25 additions & 6 deletions src/Components/Technologies/Tech.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,31 @@ import './Technologies.css';
class Tech extends Component {

render() {
const imgSlide = {"AWS": AWS, "azure": Azure, "Architecture": Arch,
"firebase": Firebase, "github": Github, "gitlab": GitLab, "splunk": Splunk, "npm": NPM,
"springboot": SpringBoot, "terraform": Terraform, "react": Reactt, "tailwind": Tailwind,
"DevOps": DevOps, "bootstrap": Bootstrap, "javascript": JS, "Django": Django, "mongodb": MongoDB,
"nodejs": Node, "postgresql": postgresql, "python": Py,
"swift": Swift,"jquery": JQuery, "java": 'https://i.imgur.com/wiEM1zo.png',"solidity": 'https://i.imgur.com/NhpXJN2.png'
const imgSlide = {
AWS: AWS,
azure: Azure,
Architecture: Arch,
firebase: Firebase,
github: Github,
gitlab: GitLab,
splunk: Splunk,
npm: NPM,
springboot: SpringBoot,
terraform: Terraform,
react: Reactt,
tailwind: Tailwind,
DevOps: DevOps,
bootstrap: Bootstrap,
javascript: JS,
Django: Django,
mongodb: MongoDB,
nodejs: Node,
postgresql: postgresql,
python: Py,
swift: Swift,
jquery: JQuery,
java: "https://i.imgur.com/wiEM1zo.png",
solidity: "https://i.imgur.com/K662O2U.png",
};
function getRandomObjectKeys(obj, count) {
const keys = Object.keys(obj);
Expand Down

0 comments on commit d52310f

Please sign in to comment.