Added mobile friendly version
All checks were successful
Copy Files to Samba Share dev / Copy Files (push) Successful in 22s
All checks were successful
Copy Files to Samba Share dev / Copy Files (push) Successful in 22s
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../../vars.scss";
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -75,3 +77,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $small-screen) {
|
||||||
|
.contents {
|
||||||
|
gap: 0;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
div {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div:last-child {
|
||||||
|
p {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../../vars.scss";
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
@@ -31,3 +33,19 @@
|
|||||||
font-family: 'Libre Barcode 128 Text';
|
font-family: 'Libre Barcode 128 Text';
|
||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $small-screen) {
|
||||||
|
:host {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.contact {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.barcode {
|
||||||
|
font-size: 3rem;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
<ul>
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier" (click)="isCollapsed = !isCollapsed">
|
||||||
|
<path d="M5 6.5H14V8H10V6.5Z"></path>
|
||||||
|
<path d="M5 11.5H16.5V13H7.5V11.5Z"></path>
|
||||||
|
<path d="M5 16.5H19V18H5V16.5Z"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
<ul class="nav" [ngClass]="{'collapsed': isCollapsed}">
|
||||||
<li><a href="#services">Aanbod</a></li>
|
<li><a href="#services">Aanbod</a></li>
|
||||||
<li><a href="#portfolio">Portfolio</a></li>
|
<li><a href="#portfolio">Portfolio</a></li>
|
||||||
<li><a href="#about">Over ons</a></li>
|
<li><a href="#about">Over ons</a></li>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 640 B |
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../../vars.scss";
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
@@ -17,3 +19,50 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $small-screen) {
|
||||||
|
.nav {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
position: absolute;
|
||||||
|
width: fit-content;
|
||||||
|
height: fit-content;
|
||||||
|
top: 5rem;
|
||||||
|
z-index: 200;
|
||||||
|
max-height: 0;
|
||||||
|
transition: max-height 0.5s ease;
|
||||||
|
overflow: hidden;
|
||||||
|
gap: 0;
|
||||||
|
|
||||||
|
&.collapsed {
|
||||||
|
max-height: 10rem;
|
||||||
|
transition: max-height 0.5s ease;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
background-color: var(--background-color);
|
||||||
|
z-index: 200;
|
||||||
|
height: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
display: inline;
|
||||||
|
height: 4rem;
|
||||||
|
width: 100%;
|
||||||
|
margin: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
path {
|
||||||
|
fill: var(--accent-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,12 +1,20 @@
|
|||||||
import { Component } from '@angular/core';
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { Component, HostListener } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-header',
|
selector: 'app-header',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [],
|
imports: [CommonModule],
|
||||||
templateUrl: './header.component.html',
|
templateUrl: './header.component.html',
|
||||||
styleUrl: './header.component.scss'
|
styleUrl: './header.component.scss'
|
||||||
})
|
})
|
||||||
export class HeaderComponent {
|
export class HeaderComponent {
|
||||||
|
public isCollapsed: boolean = false;
|
||||||
|
|
||||||
|
@HostListener('document:click', ['$event'])
|
||||||
|
public reset(event: unknown) {
|
||||||
|
if ((event as any).srcElement.tagName !== 'path') {
|
||||||
|
this.isCollapsed = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../../vars.scss";
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -21,10 +23,19 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.slogan {
|
.slogan {
|
||||||
font-size: 3.5rem;
|
font-size: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $small-screen) {
|
||||||
|
h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
.slogan {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../../vars.scss";
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -29,3 +31,23 @@
|
|||||||
h2 {
|
h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $small-screen) {
|
||||||
|
:host {
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left, .right {
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<div class="wrapper">
|
||||||
<div class="service">
|
<div class="service">
|
||||||
<img src="assets/zetwerk-dark.svg" alt="zetwerk" class="only-on-dark"/>
|
<img src="assets/zetwerk-dark.svg" alt="zetwerk" class="only-on-dark"/>
|
||||||
<img src="assets/zetwerk-light.svg" alt="zetwerk" class="only-on-light"/>
|
<img src="assets/zetwerk-light.svg" alt="zetwerk" class="only-on-light"/>
|
||||||
@@ -18,3 +19,4 @@
|
|||||||
<img src="assets/ui-ux-light.svg" alt="UI/UX" class="only-on-light" />
|
<img src="assets/ui-ux-light.svg" alt="UI/UX" class="only-on-light" />
|
||||||
<h2>UI/UX</h2>
|
<h2>UI/UX</h2>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
:host {
|
@import "../../vars";
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
@@ -20,3 +23,22 @@
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $small-screen) {
|
||||||
|
.wrapper {
|
||||||
|
flex-direction: column;
|
||||||
|
width: fit-content;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service {
|
||||||
|
height: 4rem;
|
||||||
|
width: fit-content;
|
||||||
|
align-self: flex-start;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -31,6 +31,4 @@ body {
|
|||||||
|
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
1
src/vars.scss
Normal file
1
src/vars.scss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$small-screen: 50rem;
|
||||||
Reference in New Issue
Block a user