Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into main
  • Loading branch information
Lisa-Maria Schedlberger committed Apr 11, 2024
2 parents 0207b56 + e0dd201 commit d6afac8
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config/sites/portfolio/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
base: '%env(TYPO3_BASE_URL)%'
dependencies:
- surfcamp/base
errorHandling:
-
errorCode: 404
Expand All @@ -22,6 +24,4 @@ languages:
navigationTitle: Deutsch
flag: de
rootPageId: 1
routes: { }
dependencies:
- surfcamp/base
websiteTitle: 'Marvi Website'
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.menu-link{
display: block;
text-decoration: none;
color: var(--color-base-text-secondary);
font-size: $font-18;
&:hover{
color: var(--color-secondary);
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,45 @@
padding: $size-16;
}

&__menu {
&__logo{
color: var(--color-base-text-secondary);
text-decoration: none;
&:hover{
color: var(--color-secondary);
}
}

&__menu {
@include breakpoint-down(md) {
position: absolute;
width: 100%;
top: 100%;
right: -100%;
padding: $size-12;
visibility: hidden;
z-index: 9;
opacity: 0;
background-color: var(--color-primary);
transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
.menu__list {
flex-direction: column;
gap: $size-4;
}
&.active {
right: 0;
opacity: 1;
visibility: visible;
transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.menu-link{
padding: $size-12;
transition: all .3s ease-in-out;
&:hover{
background-color: var(--color-secondary);
color: var(--color-base-text-secondary);
transition: all .3s ease-in-out;
}
}
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="footer">
<p class="footer__copyright">Copyright</p>
<p class="footer__copyright">© Ben Muster 2024</p>
<f:render partial="Content/Molecules/MenuList" arguments="{
menu: footerMenu,
classes: 'footer__menu'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>

<header class="header">
<div class="header__logo">Logo Placeholder</div>
<a href="/" class="header__logo">{site.configuration.websiteTitle}</a>

<f:render partial="Content/Molecules/MenuList" arguments="{
menu: headerMenu,
Expand Down
15 changes: 15 additions & 0 deletions local_packages/portfolio/Resources/Public/JavaScript/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"use strict";
function headerComponent() {
const header = document.querySelector('.header');
const headerMenuButtonToggle = header === null || header === void 0 ? void 0 : header.querySelector('.header__mobile-burger');
const headerNavigationContainer = header === null || header === void 0 ? void 0 : header.querySelector('.header__menu');
if (headerMenuButtonToggle) {
headerMenuButtonToggle.addEventListener('click', () => {
if (headerNavigationContainer) {
headerNavigationContainer.classList.toggle('active');
headerMenuButtonToggle.classList.toggle('active');
}
});
}
}
headerComponent();

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion local_packages/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"license": "GPL-2.0-or-later",
"scripts": {
"build": "npm run build:sass && npm run build:ts",
"build": "ddev npm run build:sass && ddev npm run build:ts",
"build:sass": "sass ./Resources/Private/Build/Stylesheet/styles.scss:./Resources/Public/Stylesheet/styles.css --style compressed",
"build:ts": "tsc",
"watch:ts": "tsc --watch",
Expand Down

0 comments on commit d6afac8

Please sign in to comment.