67 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
| <template>
 | |
|     <a
 | |
|         :href="`/network/${network.slug}`"
 | |
|         :title="network.name"
 | |
|         class="tile"
 | |
|     >
 | |
|         <img
 | |
|             :src="`/img/logos/${network.slug}/network.png`"
 | |
|             :alt="network.name"
 | |
|             class="logo"
 | |
|         >
 | |
|     </a>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| export default {
 | |
|     props: {
 | |
|         network: {
 | |
|             type: Object,
 | |
|             default: null,
 | |
|         },
 | |
|     },
 | |
| };
 | |
| </script>
 | |
| 
 | |
| <style lang="scss" scoped>
 | |
| @import 'theme';
 | |
| 
 | |
| .tile {
 | |
|     height: 6rem;
 | |
|     background: $profile;
 | |
|     display: flex;
 | |
|     flex-shrink: 0;
 | |
|     flex-direction: column;
 | |
|     align-items: center;
 | |
|     box-sizing: border-box;
 | |
|     padding: .5rem 1rem;
 | |
|     box-shadow: 0 0 3px rgba(0, 0, 0, .25);
 | |
|     text-align: center;
 | |
| }
 | |
| 
 | |
| .link {
 | |
|     text-decoration: none;
 | |
| }
 | |
| 
 | |
| .logo {
 | |
|     width: 100%;
 | |
|     height: 100%;
 | |
|     color: $text;
 | |
|     display: flex;
 | |
|     align-items: center;
 | |
|     justify-content: center;
 | |
|     object-fit: contain;
 | |
|     font-size: 1rem;
 | |
|     font-weight: bold;
 | |
|     filter: $logo-highlight;
 | |
| }
 | |
| 
 | |
| .title {
 | |
|     color: $text;
 | |
|     height: 100%;
 | |
|     display: flex;
 | |
|     align-items: center;
 | |
|     margin: 0;
 | |
| }
 | |
| </style>
 |