Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/NavBar/NavBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
white-space: nowrap;
box-shadow: 0px 2px 10px #3f6be880;
padding: 0.6em;
margin-right: 1em;
background-color: #3f6be8;
color: white;
border: 1px solid #3f6be8;
Expand Down Expand Up @@ -87,7 +88,7 @@
flex-direction: row;
& > a {
flex-grow: 0;
margin-left: 2em;
margin: 0 0 0 2em;
}
}
.NavBar__Logo {
Expand Down
1 change: 0 additions & 1 deletion src/components/NavBar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const NavBar = () => {
)}
<div className="NavBar_Side">
<button className="NavBar_Side-contact">Let´s Talk</button>
<p>ES</p>
<button className="theme-toggle" onClick={toggleTheme}>
{theme === "dark" ? (
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const AnimatedTransitionContinous = ({
}) => {
let longerText = ""

const amount = text ? 200 : 100
const amount = text ? 200 : 50
while (longerText.length < amount) {
longerText = (text || "") + "-" + longerText
}

return (
<div className="m-scroll">
<div className="m-scroll__title">
<div>
<div className={text ? "" : "m-scroll__title-image"}>
{longerText.split("-").map(innerText => (
<div className="m-scroll__title-inner">
{imagePosition === "first" && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
}
}
}
&-image{
animation: scrollText 200s infinite linear !important;
&:hover {
animation-play-state: unset !important;
}
}
&-inner{
display: flex;
flex-direction: row;
Expand Down