Skip to content

Commit

Permalink
Hero Komponente erstellt
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonMarceline committed Dec 7, 2023
1 parent 3c51200 commit f3fac90
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 9 deletions.
Binary file added public/img/wandern.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ h2 {
margin-bottom: 0.5rem;
}

button{
margin: 0.5rem 0;
}

a,
.green {
text-decoration: none;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ button {
border: none;
border-radius: 4px;
background-color: var( --color-highlight);
//color: var(--color-heading);
/*color: var(--color-heading);*/
cursor: pointer;
}
Expand Down
51 changes: 51 additions & 0 deletions src/components/Hero.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<template>
<div class="hero">
<div class="heroText">
<h2>Hi, mein Name ist Lorem Ipsum.</h2>
<p>Ich erstelle Sachen</p>
<button>Nimm Kontakt auf!</button>
</div>
<div>
<img class="heroImg" src="img/wandern.jpg" alt="Eule">
</div>
</div>
</template>

<style>
.hero {
display: grid;
grid-template-columns: 50% 50%;
grid-gap: 8px;
margin: 0 8px 0 8px;
padding: 0 8px 0 8px;
}
.heroImg {
width: 100%;
height: 50vh;
object-fit: cover;
object-position: bottom center;
}
.heroText {
display: flex;
flex-direction: column;
justify-content: center;
}
.heroText button {
max-width: 11rem;
}
@media (max-width: 1024px) {
.hero {
display: flex;
flex-direction: column-reverse;
margin: 0;
}
.heroImg {
height: 50vh;
}
}
</style>
37 changes: 29 additions & 8 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import TheWelcome from '../components/TheWelcome.vue'
*/
import ImageGrid from '../components/ImageGrid.vue'
import Contact from '../components/Contact.vue'
import Hero from '../components/Hero.vue';
</script>

<template>
Expand All @@ -12,16 +13,36 @@ import Contact from '../components/Contact.vue'
<TheWelcome />
-->
<section>
<ImageGrid />
<Contact />
<Hero />
</section>

<section>
<h2>Über mich</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo
duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu
feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril
delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet.</p>
</section>

<section>
<ImageGrid />
</section>

<section>
<Contact />
</section>

</main>
</template>

<style>
section {
<style>section {
margin: 32px 0;
}
</style>
}</style>

0 comments on commit f3fac90

Please sign in to comment.