Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pwr/#122 #123

Merged
merged 3 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dev-portfolio",
"version": " 0.4.1",
"version": "v0.4.2",
"private": false,
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion app/src/lib/common/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { MainTypes } from './types/main';

export const MAIN: MainTypes = {
MAIN_COLOR: '#434521',
}
MAIN_COLOR_TRANSPARENT: '#43452155',
};

export const GAPS: GapTypes = {
NARROWER: '10px',
Expand Down
1 change: 1 addition & 0 deletions app/src/lib/common/types/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export interface MainTypes {
MAIN_COLOR: string;
MAIN_COLOR_TRANSPARENT: string;
}
26 changes: 19 additions & 7 deletions app/src/lib/components/TechStack/TechStackInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
TechStackInputContainerStyledPropsType,
TechStackInputStyledPropsType,
} from '../../common/types/ComponentTypes/TechStack/TechStackInputType';
import { MAIN } from '../../common/theme';

const TechStackInput = () => {
const [_, setInputValue] = useState('');
Expand Down Expand Up @@ -32,10 +33,12 @@ const TechStackInput = () => {
{icons?.length >= 1
? icons.map((icon, idx) => {
return (
<TechStackEachBox key={idx}>
<Icon icon={icon} fontSize={'50px'} />
<TechStackName>{icon}</TechStackName>
</TechStackEachBox>
<TechStackEachBoxContainer key={idx}>
<TechStackEachBox>
<Icon icon={icon} fontSize={'50px'} />
<TechStackName>{(icon as string).replace('logos:', '')}</TechStackName>
</TechStackEachBox>
</TechStackEachBoxContainer>
);
})
: 'There are no icons you entered.'}
Expand Down Expand Up @@ -94,14 +97,23 @@ const ModalBackground = styled.div`
background-color: rgba(0, 0, 0, 0.65);
`;

const TechStackEachBox = styled.div`
cursor: pointer;
const TechStackEachBoxContainer = styled.div`
display: inline-block;
margin: 16px 16px 16px 0px;
border-radius: 4px;
`;

const TechStackEachBox = styled.div`
display: flex;
flex-direction: column;
align-items: center;
margin: 0 4px 0px 4px;
padding: 8px;
border: 1px solid ${MAIN.MAIN_COLOR_TRANSPARENT};
border-radius: 4px;
`;

const TechStackName = styled.span`
margin: 8px 0px;
margin-top: 8px;
font-weight: bold;
`;