Skip to content

Commit

Permalink
Merge pull request #21 from 2023WISCOM/feature/#19-developer
Browse files Browse the repository at this point in the history
Feature/#19 developer
  • Loading branch information
imddoy authored Oct 5, 2023
2 parents 8f3253d + b4049a0 commit 9a3d9dc
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
37 changes: 37 additions & 0 deletions WISCOM/src/components/Developer/Devs.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import * as D from './DevsStyle';
import DeveloperProfile from '../Project/DeveloperProfile.jsx';

import BackBlue from '../../img/Project/BackgroundBlue.svg';
import BackGreen from '../../img/Project/BackgroundGreen.svg';
import BackYellow from '../../img/Project/BackgroundYellow.svg';

/* 슨생님덜 지송합니다.. 일단 저의 구현 목표를 설명해보자면...
[ for 색상 랜덤을 위해 ]
backgroundImages1 에서 순서 랜덤으로 3개 뽑아서 정렬하고 (25%씩, 75%)
backgroundImages2 에서 svg 하나 랜덤하게 추출해서 4번째에 넣어서
랜덤 색상의 4개가 svg가 들어있는 한 줄을 구현하려고 하였으나...
아직 방법을 찾지 못햇나이다 ㅠㅠ....
오기 생겨서 계속 찾는 중.. 꼭 구현하고 싶슴다...
DeveloperProfile은 만들어져있는 거 가져다 썼슴다.. 감사함다...
*/

const backgroundImages1 = [BackGreen, BackBlue, BackYellow];
const backgroundImages2 = [BackGreen, BackBlue, BackYellow];

const Developer = () => {
return (
<D.DevWrapper>
<D.Box>
{backgroundImages1.map((bg, index) => (
<DeveloperProfile key={index} bg={bg} />
))}
<div>
backgroundImages2.slice(random())
</div>
</D.Box>
</D.DevWrapper>
);
};

export default Developer;
14 changes: 14 additions & 0 deletions WISCOM/src/components/Developer/DevsStyle.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import styled from 'styled-components';

export const DevWrapper = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
padding-left: 5rem;
padding-right: 5rem;
`;

export const Box = styled.div`
width: 25%;
margin-bottom: 4%;
`;
4 changes: 3 additions & 1 deletion WISCOM/src/page/Developer.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Dev from './../components/Developer/Devs';

export default function Developer() {
return <>개발자페이지</>;
return <><Dev></Dev></>;
}

0 comments on commit 9a3d9dc

Please sign in to comment.