Skip to content

Commit

Permalink
fix: improve live projects page responsivity
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHericles committed Nov 13, 2023
1 parent 2860a53 commit 540994e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions sections/Live Projects/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ export default function Hero({
</a>
</div>
</div>
<div class="flex relative w-full aspect-video md:w-[100%] md:max-w-[640px] lg:w-[48.7%] h-full rounded-[4px]">
<div className="flex lg:w-full md:aspect-video md:pb-0 md:h-full">
<div class="flex relative w-full md:w-[100%] lg:max-w-[640px] lg:w-[48.7%] h-full rounded-[4px]">
<div className="flex md:w-full md:pb-0 md:h-full">
<picture>
<source
media="(max-width: 760px)"
srcSet={Banner.bannerHeroMobile}
className="rounded-[4px]"
/>
<img
className="lg:h-full md:h-full lg:w-full rounded-[4px] object-cover"
className="md:h-full md:w-full rounded-[4px] object-cover"
alt={Banner.titleImg}
src={Banner.bannerHero}
/>
Expand Down
8 changes: 4 additions & 4 deletions sections/Live Projects/ProjectsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ useEffect(() => {
const itensPaginaAtual = itensParaExibir.slice(primeiroItem, ultimoItem);

return (
<div className="flex flex-col items-center mx-8 pb-10 md:mx-auto md:px-14 md:pb-16 lg:px-16 gap-y-10 lg:pb-20 lg:max-w-[1440px] xl:px-16">
<div id="index" className="flex flex-start gap-x-12 h-[36px] w-full md:px-4">
<div className="flex flex-col items-center mx-8 pb-10 lg:mx-auto lg:px-14 lg:pb-16 lg:px-16 gap-y-10 lg:pb-20 lg:max-w-[1440px] xl:px-16">
<div id="index" className="flex flex-start gap-x-12 h-[36px] w-full lg:px-4">
<select
className="p-2 cursor-pointer w-full border-[1px] border-[#C9CFCF] rounded md:hidden"
className="p-2 cursor-pointer w-full border-[1px] border-[#C9CFCF] rounded lg:hidden"
value={categoriaSelecionada}
onChange={(e) => {
const selectedValue = (e.target as HTMLSelectElement).value;
Expand All @@ -191,7 +191,7 @@ useEffect(() => {
</option>
))}
</select>
<div className="hidden md:flex flex-start border-b-2 gap-x-8 h-[32px] w-full">
<div className="hidden lg:flex flex-start border-b-2 gap-x-8 h-[32px] w-full">
<div
key={'Todos'}
className={`cursor-pointer relative top-[2px] ${
Expand Down
2 changes: 1 addition & 1 deletion static/tailwind.css

Large diffs are not rendered by default.

0 comments on commit 540994e

Please sign in to comment.