mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-04 03:03:18 -05:00 
			
		
		
		
	
		
			
	
	
		
			49 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
		
		
			
		
	
	
			49 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| 
								 | 
							
								<template>
							 | 
						||
| 
								 | 
							
								  <div class="icon-container">
							 | 
						||
| 
								 | 
							
								    <v-divider class="icon-divider" />
							 | 
						||
| 
								 | 
							
								    <v-avatar
							 | 
						||
| 
								 | 
							
								      :class="['pa-2', 'icon-avatar']"
							 | 
						||
| 
								 | 
							
								      color="primary"
							 | 
						||
| 
								 | 
							
								      :size="size"
							 | 
						||
| 
								 | 
							
								    >
							 | 
						||
| 
								 | 
							
								      <slot>
							 | 
						||
| 
								 | 
							
								        <svg
							 | 
						||
| 
								 | 
							
								          class="icon-white"
							 | 
						||
| 
								 | 
							
								          viewBox="0 0 24 24"
							 | 
						||
| 
								 | 
							
								          :style="{ width: size + 'px', height: size + 'px' }"
							 | 
						||
| 
								 | 
							
								        >
							 | 
						||
| 
								 | 
							
								          <path
							 | 
						||
| 
								 | 
							
								            d="M8.1,13.34L3.91,9.16C2.35,7.59 2.35,5.06 3.91,3.5L10.93,10.5L8.1,13.34M13.41,13L20.29,19.88L18.88,21.29L12,14.41L5.12,21.29L3.71,19.88L13.36,10.22L13.16,10C12.38,9.23 12.38,7.97 13.16,7.19L17.5,2.82L18.43,3.74L15.19,7L16.15,7.94L19.39,4.69L20.31,5.61L17.06,8.85L18,9.81L21.26,6.56L22.18,7.5L17.81,11.84C17.03,12.62 15.77,12.62 15,11.84L14.78,11.64L13.41,13Z"
							 | 
						||
| 
								 | 
							
								          />
							 | 
						||
| 
								 | 
							
								        </svg>
							 | 
						||
| 
								 | 
							
								      </slot>
							 | 
						||
| 
								 | 
							
								    </v-avatar>
							 | 
						||
| 
								 | 
							
								  </div>
							 | 
						||
| 
								 | 
							
								</template>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<script setup lang="ts">
							 | 
						||
| 
								 | 
							
								const { size } = withDefaults(defineProps<{ size?: number }>(), { size: 75 });
							 | 
						||
| 
								 | 
							
								</script>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<style scoped>
							 | 
						||
| 
								 | 
							
								.icon-white {
							 | 
						||
| 
								 | 
							
								  fill: white;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								.icon-container {
							 | 
						||
| 
								 | 
							
								  display: flex;
							 | 
						||
| 
								 | 
							
								  flex-direction: column;
							 | 
						||
| 
								 | 
							
								  align-items: center;
							 | 
						||
| 
								 | 
							
								  width: 100%;
							 | 
						||
| 
								 | 
							
								  position: relative;
							 | 
						||
| 
								 | 
							
								  margin-top: 2.5rem;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								.icon-divider {
							 | 
						||
| 
								 | 
							
								  width: 100%;
							 | 
						||
| 
								 | 
							
								  margin-bottom: -2.5rem;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								.icon-avatar {
							 | 
						||
| 
								 | 
							
								  border-color: rgba(0, 0, 0, 0.12);
							 | 
						||
| 
								 | 
							
								  border: 2px;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								</style>
							 |