front: centr align for Leaderboard
This commit is contained in:
		
							parent
							
								
									03b983aafd
								
							
						
					
					
						commit
						6c885bfa68
					
				@ -2,10 +2,6 @@
 | 
				
			|||||||
  text-align: center;
 | 
					  text-align: center;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.Container {
 | 
					 | 
				
			||||||
  text-align: center;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.App-header {
 | 
					.App-header {
 | 
				
			||||||
  background-color: #282c34;
 | 
					  background-color: #282c34;
 | 
				
			||||||
  min-height: 100vh;
 | 
					  min-height: 100vh;
 | 
				
			||||||
@ -20,4 +16,3 @@
 | 
				
			|||||||
.App-link {
 | 
					.App-link {
 | 
				
			||||||
  color: #61dafb;
 | 
					  color: #61dafb;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								webapp/src/Leaderboard.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								webapp/src/Leaderboard.css
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					.Leaderboard {
 | 
				
			||||||
 | 
					  display: flex;
 | 
				
			||||||
 | 
					  justify-content: center;
 | 
				
			||||||
 | 
					  align-items: center;
 | 
				
			||||||
 | 
					  margin-top: 25px
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
@ -1,4 +1,5 @@
 | 
				
			|||||||
import React, { useState, useEffect } from 'react';
 | 
					import React, { useState, useEffect } from 'react';
 | 
				
			||||||
 | 
					import './Leaderboard.css';
 | 
				
			||||||
//const Leaderboard = ({hashmap}) => {
 | 
					//const Leaderboard = ({hashmap}) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// var listItems = Object.keys(hashmap).map(playerName => {
 | 
					// var listItems = Object.keys(hashmap).map(playerName => {
 | 
				
			||||||
@ -43,6 +44,7 @@ const Leaderboard = () => {
 | 
				
			|||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 | 
					    <div className="Leaderboard">
 | 
				
			||||||
      <table>
 | 
					      <table>
 | 
				
			||||||
        <thead>
 | 
					        <thead>
 | 
				
			||||||
          <tr>
 | 
					          <tr>
 | 
				
			||||||
@ -56,6 +58,7 @@ const Leaderboard = () => {
 | 
				
			|||||||
          { tableRows }
 | 
					          { tableRows }
 | 
				
			||||||
        </tbody>
 | 
					        </tbody>
 | 
				
			||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user