Skip to content

Commit

Permalink
<feat>: 메인 화면 배경 설정 및 아바타 배치
Browse files Browse the repository at this point in the history
  • Loading branch information
StopSoo committed Nov 10, 2023
1 parent 4039cf7 commit 41057ee
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 17 deletions.
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
16 changes: 16 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@
transform: rotate(360deg);
}
}

div #logo {
top: 50%;
left: 25%;
width: 855;
height: 153;
position: absolute;
}
/* 위치 수정 please */
div #character {
width: 154;
height: 241;
left: 38%;
/* top: 300%; */
position: absolute;
}
30 changes: 14 additions & 16 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import './App.css';
import React from "react";
import styled from "styled-components";
import React from 'react';
import logoRoot from "../src/resource/unisphere_logo.png";
import chRoot from "../src/resource/character_unisphere.png";

class App extends React.Component {
render() {
return <Container></Container>;
}
function App() {
return (
<div className='App'>
<div>
<img id="logo" src={logoRoot} alt="logo"/>
</div>
<div>
<img id="character" src={chRoot} alt="ch"/>
</div>
</div>
);
}

const Container = styled.div`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: './resource/main_background.png';
background-size: cover;
`;

export default App;
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ body {
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('./resource/main_background.png');
background-size: cover;
}

code {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
Expand Down
Binary file added src/resource/character_unisphere.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/resource/unisphere_individual.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/resource/unisphere_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/screen/MainLogo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import styled from 'styled-components';
import logoImage from '../resource/unisphere_logo.png'; // 로고 이미지

function MainLogo() {
return (
<UniLogo/>
);
}

const UniLogo = styled.img`
src: url(${logoImage});
`;

export default MainLogo;

0 comments on commit 41057ee

Please sign in to comment.