Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: center about section on mobile #271

Merged
merged 1 commit into from
Apr 8, 2024
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
2 changes: 1 addition & 1 deletion src/components/sections/HeroStats.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const HeroStatSection: React.FC = () => {
id="about-anchor"
className="absolute left-1/2 top-2/3 w-2/3 -translate-x-1/2 -translate-y-1/2 transform pt-24 text-[#1D4549] sm:top-[70%] sm:pt-36 md:top-3/4 md:pt-36 "
>
<h1 className="mb-5 pb-20 text-center text-4.5xl uppercase text-white drop-shadow-md lg:text-6.5xl xl:text-7.5xl">
<h1 className="mb-6 text-center text-4.5xl uppercase text-white drop-shadow-md lg:mb-12 lg:text-6.5xl xl:mb-16 xl:text-7.5xl 2xl:mb-24">
About Hawkhacks
</h1>
<div className="space-y-3 text-left text-[#1D4549] lg:space-y-10">
Expand Down
17 changes: 11 additions & 6 deletions src/components/sections/Sponsor.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ const SponsorSection = () => {
{/* first tier */}
<div className="max-w-[100rem]">
<div className="mb-[2rem] flex items-center justify-center gap-6 px-3 md:gap-16 md:px-4 xl:px-6">
{sponsors.platinumSponsors.map((sponsor) => (
{sponsors.platinumSponsors.map((sponsor, i) => (
<a
key={i}
href={sponsor.link}
target="_blank"
rel="noopener noreferrer"
Expand All @@ -85,8 +86,9 @@ const SponsorSection = () => {
{/* second tier */}
<div className="max-w-[100rem] overflow-hidden">
<div className="mb-[2rem] flex flex-wrap items-center justify-center gap-4 lg:gap-12">
{sponsors.goldSponsors.map((sponsor) => (
{sponsors.goldSponsors.map((sponsor, i) => (
<a
key={i}
href={sponsor.link}
target="_blank"
rel="noopener noreferrer"
Expand All @@ -108,8 +110,9 @@ const SponsorSection = () => {
{/* third tier */}
<div className="max-w-[100rem] overflow-hidden">
<div className="mb-[2rem] flex flex-wrap items-center justify-center gap-8 lg:gap-12">
{sponsors.silverSponsors.map((sponsor) => (
{sponsors.silverSponsors.map((sponsor, i) => (
<a
key={i}
href={sponsor.link}
target="_blank"
rel="noopener noreferrer"
Expand All @@ -129,10 +132,11 @@ const SponsorSection = () => {
</div>

{/* fourth tier */}
<div className="max-w-[100rem] overflow-hidden ">
<div className="max-w-[100rem] overflow-hidden">
<div className="mb-[2rem] flex flex-wrap items-center justify-center gap-8">
{sponsors.bronzeSponsors.map((sponsor) => (
{sponsors.bronzeSponsors.map((sponsor, i) => (
<a
key={i}
href={sponsor.link}
target="_blank"
rel="noopener noreferrer"
Expand All @@ -159,8 +163,9 @@ const SponsorSection = () => {
PARTNERS
</h2>
<div className="flex flex-wrap items-center justify-center gap-4">
{sponsors.partners.map((partner) => (
{sponsors.partners.map((partner, i) => (
<a
key={i}
href={partner.link}
target="_blank"
rel="noopener noreferrer"
Expand Down
Loading