-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
162 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
import logo from 'src/ui/assets/images/svg/logo.svg?raw'; | ||
import './logo.css'; | ||
--- | ||
<a class="site__logo" href="/"> | ||
<Fragment set:html={logo} /> | ||
</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ganisms/header/components/menu/Menu.astro → src/ui/components/atoms/menu/Menu.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...er/components/menuButton/MenuButton.astro → ...ponents/atoms/menuButton/MenuButton.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../components/menuOverlay/MenuOverlay.astro → ...nents/atoms/menuOverlay/MenuOverlay.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
--- | ||
import './testimonials.css'; | ||
--- | ||
<section class="testimonials__wrapper wrapper"> | ||
<h3 class="testimonials__title">Testimonials</h3> | ||
<p class="testimonials__body">This template comes with a few integrations already configured in your astro.config.mjs file. You can customize your setup with Astro Integrations to add tools like Tailwind, React, or Vue to your project. | ||
|
||
</p> | ||
</section> |
64 changes: 13 additions & 51 deletions
64
src/ui/components/molecules/testimonials/testimonials.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,18 @@ | ||
@layer welcome { | ||
.welcome { | ||
display: grid; | ||
grid-template-areas: 'LeftGreeting WelcomeImage RightGreeting'; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
@layer testimonials { | ||
.testimonials__wrapper{ | ||
margin-top: 9rem; | ||
} | ||
.welcome__image{ | ||
grid-area: WelcomeImage; | ||
align-self: center; | ||
justify-self: center; | ||
width: 100%; | ||
max-width: 400px; | ||
height: auto; | ||
} | ||
|
||
.welcome__text__body { | ||
align-self: center; | ||
.testimonials__title, | ||
.testimonials__body { | ||
text-align: center; | ||
color: var(--neutral-main); | ||
|
||
&.--right { | ||
grid-area: RightGreeting; | ||
justify-self: start; | ||
margin-left: -3rem; | ||
z-index: 10; | ||
} | ||
&.--left { | ||
grid-area: LeftGreeting; | ||
justify-self: end; | ||
margin-right: -1.5rem; | ||
z-index: 10; | ||
translate: 0 -100px; | ||
} | ||
@supports (animation-timeline: scroll(root block)) { | ||
&.--right { | ||
animation: float-up-far 200ms linear; | ||
animation-timeline: scroll(root block); | ||
} | ||
&.--left { | ||
animation: float-up-close linear; | ||
animation-timeline: scroll(root block); | ||
} | ||
} | ||
margin: 0 auto; | ||
} | ||
.welcome__text__description{ | ||
grid-area: RightGreeting; | ||
padding-inline-start: 1rem; | ||
align-self: center; | ||
margin-top: 8rem; | ||
|
||
@supports (animation-timeline: scroll(root block)) { | ||
animation: float-up-close linear; | ||
animation-timeline: scroll(root block); | ||
} | ||
.testimonials__title{ | ||
text-transform: uppercase; | ||
letter-spacing: .5rem; | ||
} | ||
.testimonials__body { | ||
max-width: var(--grid-small); | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/ui/components/molecules/welcome/utils/initializeParallax/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './initializeParallax'; |
31 changes: 31 additions & 0 deletions
31
src/ui/components/molecules/welcome/utils/initializeParallax/initializeParallax.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { gsap } from 'gsap'; | ||
import type { MouseEvent } from 'react'; | ||
|
||
interface ParallaxParams { | ||
event: globalThis.MouseEvent | MouseEvent; | ||
target: string; | ||
movement: number; | ||
} | ||
|
||
export function initializeParallax() { | ||
const WELCOME = document.querySelector('.welcome') as HTMLElement; | ||
|
||
if (WELCOME instanceof HTMLElement) { | ||
WELCOME.addEventListener('mousemove', (event) => { | ||
attachParallax({ event, target: '.welcome__image', movement: -30 }); | ||
}); | ||
} | ||
function attachParallax({ event, target, movement }: ParallaxParams) { | ||
if (WELCOME instanceof HTMLElement) { | ||
const { offsetLeft, offsetTop, offsetWidth, offsetHeight } = WELCOME; | ||
const relativeX = event.pageX - offsetLeft; | ||
const relativeY = event.pageY - offsetTop; | ||
|
||
gsap.to(target, { | ||
duration: 1, | ||
x: ((relativeX - offsetWidth / 2) / offsetWidth) * movement, | ||
y: ((relativeY - offsetHeight / 2) / offsetHeight) * movement, | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/ui/components/organisms/header/components/logo/Logo.astro
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.