From d1b2652aaf8892dda6b1f4af6c944063f3e0b537 Mon Sep 17 00:00:00 2001 From: Christian Anetzberger Date: Mon, 30 Jan 2023 18:36:24 +0100 Subject: [PATCH] Fixed animations --- .env.local.sample | 5 ++++ .gitignore | 5 +--- components/navbar.jsx | 8 ------ components/productpage.jsx | 2 +- pages/_app.js | 38 ++++++++++++++++++++++----- pages/fertigungsverfahren/[index].jsx | 1 + pages/index.js | 11 ++++---- 7 files changed, 44 insertions(+), 26 deletions(-) create mode 100644 .env.local.sample diff --git a/.env.local.sample b/.env.local.sample new file mode 100644 index 0000000..ddb8919 --- /dev/null +++ b/.env.local.sample @@ -0,0 +1,5 @@ +MAIL_DOMAIN=mail.example.com +MAIL_PORT=587 +MAIL_USER=user +MAIL_PASS=password +MAIL_TO=mailto@example.com \ No newline at end of file diff --git a/.gitignore b/.gitignore index 834b857..fa6baf1 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,4 @@ yarn-error.log* .vercel # gsap npmrc -.npmrc - -#ecosystem -ecosystem.config.js \ No newline at end of file +.npmrc \ No newline at end of file diff --git a/components/navbar.jsx b/components/navbar.jsx index 776a60a..5cedb15 100644 --- a/components/navbar.jsx +++ b/components/navbar.jsx @@ -190,7 +190,6 @@ class Navbar extends React.Component { Laserteile Icon @@ -208,7 +207,6 @@ class Navbar extends React.Component { Stanzteile Icon @@ -226,7 +224,6 @@ class Navbar extends React.Component { Biegeteile Icon @@ -244,7 +241,6 @@ class Navbar extends React.Component { Lasergravur Icon @@ -262,7 +258,6 @@ class Navbar extends React.Component { Blechkonstruktionen Icon @@ -280,7 +275,6 @@ class Navbar extends React.Component { Baugruppen Icon @@ -298,7 +292,6 @@ class Navbar extends React.Component { Fügeverfahren Icon @@ -316,7 +309,6 @@ class Navbar extends React.Component { Entgrattechnik Icon diff --git a/components/productpage.jsx b/components/productpage.jsx index c4a1f1d..f4fdde4 100644 --- a/components/productpage.jsx +++ b/components/productpage.jsx @@ -14,7 +14,7 @@ export default function Productpage(props) { >
{props.iconurl && - {""} + {props.iconalt} }
diff --git a/pages/_app.js b/pages/_app.js index 4788c98..ae9c9bc 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -105,6 +105,13 @@ export default class Site extends App { }); this.tl.clear(); + if (document.querySelector(".landing-img")) { + this.tl.to(".landing-img", { + scale: 0.9, + opacity: 0, + }); + } + if (document.querySelector(".mainheading")) { this.tl.to(".mainheading", { opacity: 0, @@ -123,6 +130,30 @@ export default class Site extends App { ); } + if (document.querySelector(".products-icon")) { + if (getWidth() > 1200) { + this.tl.to( + ".products-icon", + { + opacity: 0, + duration: 0.1, + }, + 0 + ); + } else { + this.tl.to( + ".products-icon", + { + opacity: 0, + height: 0, + minHeight: 0, + duration: 0.5, + }, + 0 + ); + } + } + if (document.querySelector(".products-img")) { if (getWidth() > 1200) { this.tl.to( @@ -148,13 +179,6 @@ export default class Site extends App { } } - if (document.querySelector(".landing-img")) { - this.tl.to(".landing-img", { - scale: 0.9, - opacity: 0, - }); - } - this.tl.to(node, { opacity: 0, duration: 0.1, diff --git a/pages/fertigungsverfahren/[index].jsx b/pages/fertigungsverfahren/[index].jsx index 3a1fc95..43c74b6 100644 --- a/pages/fertigungsverfahren/[index].jsx +++ b/pages/fertigungsverfahren/[index].jsx @@ -173,6 +173,7 @@ class Fertigungsverfahren extends React.Component { diff --git a/pages/index.js b/pages/index.js index d616430..94badec 100644 --- a/pages/index.js +++ b/pages/index.js @@ -54,9 +54,8 @@ export default class Home extends React.Component {
Logo der Hans Prothmann GmbH @@ -69,19 +68,19 @@ export default class Home extends React.Component {

Seit 1971 ist die Hans Prothmann GmbH ihr verlässlicher Partner für Blechverarbeitung in München. Unsere Produktion setzt auf - einen modernen Maschinenpark mit + einen modernen Maschinenpark mit {" "} CNC Laser- - , + ,{" "} CNC Stanz- - , + ,{" "} CNC Biege- {" "} - und + und{" "} Gravurtechnik