generated from deco-sites/storefront
-
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.
Merge branch 'task/sliderColumn' into staging
- Loading branch information
Showing
3 changed files
with
130 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,55 @@ | ||
import Icon from "$store/components/ui/Icon.tsx"; | ||
import Slider from "$store/components/ui/Slider.tsx"; | ||
|
||
export default function Buttons() { | ||
export default function Buttons({ device }: { device: string }) { | ||
console.log(device); | ||
return ( | ||
<> | ||
<div class="flex items-center justify-start z-10 col-start-1 row-start-2"> | ||
<Slider.PrevButton class="btn btn-circle bg-[#ffffff] w-[40px] !h-[40px]"> | ||
<Icon | ||
size={18} | ||
id="Banner-arrow-left" | ||
strokeWidth={3} | ||
/> | ||
</Slider.PrevButton> | ||
</div> | ||
<div class="flex items-center justify-end z-10 col-start-3 row-start-2"> | ||
<Slider.NextButton class="btn btn-circle bg-[#ffffff] w-[40px] !h-[40px]"> | ||
<Icon | ||
size={18} | ||
id="Banner-arrow-right" | ||
strokeWidth={3} | ||
/> | ||
</Slider.NextButton> | ||
</div> | ||
{device === "desktop" | ||
? ( | ||
<> | ||
<div class="flex items-center justify-start z-10 col-start-1 row-start-2"> | ||
<Slider.PrevButton class="btn btn-circle bg-[#ffffff] w-[40px] !h-[40px]"> | ||
<Icon | ||
size={18} | ||
id="Banner-arrow-left" | ||
strokeWidth={3} | ||
/> | ||
</Slider.PrevButton> | ||
</div> | ||
<div class="flex items-center justify-end z-10 col-start-3 row-start-2"> | ||
<Slider.NextButton class="btn btn-circle bg-[#ffffff] w-[40px] !h-[40px]"> | ||
<Icon | ||
size={18} | ||
id="Banner-arrow-right" | ||
strokeWidth={3} | ||
/> | ||
</Slider.NextButton> | ||
</div> | ||
</> | ||
) | ||
: ( | ||
<div class="flex lg:hidden absolute -bottom-0 justify-evenly items-center w-[60%]"> | ||
<div class="flex items-center justify-start z-10 col-start-1 row-start-2"> | ||
<Slider.PrevButton class="btn btn-circle bg-[#ffffff] w-[40px] !h-[40px]"> | ||
<Icon | ||
size={18} | ||
id="Banner-arrow-left" | ||
strokeWidth={3} | ||
/> | ||
</Slider.PrevButton> | ||
</div> | ||
<div class="flex items-center justify-end z-10 col-start-3 row-start-2"> | ||
<Slider.NextButton class="btn btn-circle bg-[#ffffff] w-[40px] !h-[40px]"> | ||
<Icon | ||
size={18} | ||
id="Banner-arrow-right" | ||
strokeWidth={3} | ||
/> | ||
</Slider.NextButton> | ||
</div> | ||
</div> | ||
)} | ||
</> | ||
); | ||
} |
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