Skip to content

Commit 34cd538

Browse files
committed
added logo to bottom right
1 parent ccb971c commit 34cd538

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

assets/logo/48x48.png

2.31 KB
Loading

src/App.css

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,17 @@ body {
6060
background-color: #6D7984;
6161
}
6262

63-
.logo {
64-
margin: 0 15px 0 12px;
65-
height: 2em;
66-
width: 2em;
67-
}
68-
6963
.right-spacer {
7064
flex: 3;
65+
display: flex;
66+
}
67+
68+
.filler-a {
69+
flex: 10;
70+
}
71+
72+
.filler-b {
73+
flex: 1;
7174
}
7275

7376
.container {
@@ -79,12 +82,27 @@ body {
7982
height: 100%;
8083
flex: 3;
8184
align-self: flex-end;
85+
display: flex;
8286
background-color: white;
8387
color: #4C5259;
8488
}
8589

8690
.sortable-tree {
8791
-webkit-app-region: no-drag;
92+
flex: 10;
93+
}
94+
95+
.logo-container {
96+
flex: 1;
97+
display: flex;
98+
align-items: flex-end;
99+
justify-content: flex-end;
100+
}
101+
102+
img {
103+
padding: 0% 20% 20% 0%;
104+
height: 2em;
105+
width: 2em;
88106
}
89107

90108
.form-container {

src/App.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ class App extends Component {
124124
return (
125125
<div className='top-container'>
126126
<div className='top-spacer'>
127-
<div className='left-spacer'>
128-
<p>ReactPrimer</p>
129-
<img className='logo' src={require('../assets/logo/32x32.png')} alt='logo'></img>
127+
<div className='left-spacer' />
128+
<div className='right-spacer'>
129+
<div className='filler-a' />
130+
<div className='filler-b' />
130131
</div>
131-
<div className='right-spacer' />
132132
</div>
133133
<div className='container'>
134134
<NewCompForm
@@ -161,7 +161,10 @@ class App extends Component {
161161
],
162162
})}
163163
/>
164-
</div>
164+
<div className='logo-container'>
165+
<img className='logo' src={require('../assets/logo/48x48.png')} alt='logo'></img>
166+
</div>
167+
</div>
165168
</div>
166169
</div>
167170
);

0 commit comments

Comments
 (0)