Skip to content

Commit

Permalink
merge #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle4Coding committed Sep 18, 2024
2 parents e648234 + 004b9f8 commit 51e287f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
6 changes: 6 additions & 0 deletions src/components/HeaderComponent.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<LogoComponent />
<header class="app-header">
<h1>{{ title }}</h1>
<nav>
Expand All @@ -13,7 +14,12 @@
</template>

<script>
import LogoComponent from '@/components/LogoComponent.vue'
export default {
components: {
LogoComponent
},
props: {
title: {
type: String,
Expand Down
31 changes: 14 additions & 17 deletions src/components/LogoComponent.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<template>
<h1>{{ msg }}</h1>
<body>
<div class="triangle-container">
<div id="logo" class="logo">
<!-- Umbenennung auf id=logo um es einfacher adressieren zu können -->
<h1>{{ msg }}</h1>
<div class="logo-shape">
<!-- Umbenennung auf "logo-shape" für mehr Klarheit -->
<div class="rounded-wurst top"></div>
<div class="rounded-wurst left"></div>
<div class="rounded-wurst right"></div>
<div class="small-triangle"></div>
<!-- Small Triangle -->
<svg class="refresh-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path
d="M17.65 6.35a7.95 7.95 0 00-11.3 0 7.95 7.95 0 000 11.3 7.95 7.95 0 0011.3 0l1.4 1.4a9.969 9.969 0 01-14.1 0 9.969 9.969 0 010-14.1 9.969 9.969 0 0114.1 0l-1.4 1.4zm-5.3 5.3V5h2v6.65l2.35-2.35 1.4 1.4-5 5-5-5 1.4-1.4 2.35 2.35z"
/>
</svg>
</div>
</body>
</div>
</template>

<script>
Expand All @@ -27,16 +23,18 @@ export default {
}
</script>

<style scoped>
body {
<style>
#logo {
display: flex;
flex-direction: column; /* Vertikale Anordnung von h1 und Logo-Form */
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
height: 15vh; /* Höhe des Logos */
background-color: #f0f0f0; /* Hintergrundfarbe für Kontrast */
margin: 0;
}
.triangle-container {
.logo-shape {
position: relative;
width: 120px;
height: 120px;
Expand Down Expand Up @@ -87,8 +85,7 @@ body {
transform: translateX(-50%);
}
/* Hover effect for the triangle */
.triangle-container:hover {
.logo-shape:hover {
transform: rotate(-30deg);
}
Expand Down

0 comments on commit 51e287f

Please sign in to comment.