Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0a14023

Browse files
authored
refactor: align landing footer (#573)
* Refactor Footer component layout and styles. * Ran Formatter * Fixed wrap * ran formatter
1 parent 6c122f6 commit 0a14023

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

Diff for: components/Footer/index.tsx

+34-34
Original file line numberDiff line numberDiff line change
@@ -85,34 +85,44 @@ export default function Footer(props: IFooterProps) {
8585
className={`spacing ${styles.bgTransition} bg-secondary`}
8686
ref={observe}
8787
>
88-
<div className="justify-center lg:flex">
89-
<div className="py- flex-1">
90-
<div className="flex justify-center font-ibold lg:justify-start">
91-
<Image
92-
src="/images/sei-logo.svg"
93-
width={100}
94-
height={100}
95-
alt="SEI Logo"
96-
/>
97-
<p className="pl-6 text-white lg:flex-1">
98-
Semana da <br />
99-
Engenharia
100-
<br />
101-
Informática
102-
</p>
103-
</div>
88+
<div className="flex flex-col justify-between gap-16 py-10 lg:flex-row">
89+
<div className="flex items-start justify-center font-ibold lg:justify-start">
90+
<Image
91+
src="/images/sei-logo.svg"
92+
width={100}
93+
height={100}
94+
alt="SEI Logo"
95+
/>
96+
<p className="pl-6 text-white lg:flex-1">
97+
Semana da <br />
98+
Engenharia
99+
<br />
100+
Informática
101+
</p>
102+
</div>
103+
104+
<div className="mx-2 mt-20 hidden justify-center pb-10 lg:flex">
105+
<Animation
106+
text={
107+
props.footerAnimationText != undefined ? (
108+
props.footerAnimationText
109+
) : (
110+
<DefaultAnimation />
111+
)
112+
}
113+
>
114+
{props.children}
115+
</Animation>
104116
</div>
105-
<div className="flex-2 py-10">
106-
<div className="grid grid-rows-2 justify-items-center gap-8 font-iregular text-sm text-white lg:grid-cols-2 lg:justify-items-end">
117+
118+
<div className="flex-2">
119+
<div className="grid grid-rows-2 justify-items-center gap-8 whitespace-nowrap font-iregular text-sm text-white lg:grid-cols-2 lg:justify-items-start">
107120
<Link
108121
href="https://2022.seium.org/"
109122
className="text-white hover:underline"
110123
>
111124
Previous Edition
112125
</Link>
113-
<Link href="/docs/regulamento.pdf" className="hover:underline">
114-
General Regulation
115-
</Link>
116126
<Link
117127
href="https://docs.google.com/forms/d/e/1FAIpQLSdV1bSyW2tcLuTC_jJCGdZ5NZHUlgETK7nQkOmyDzwb7eFS4Q/viewform"
118128
className="hover:underline"
@@ -122,6 +132,9 @@ export default function Footer(props: IFooterProps) {
122132
<Link href="/docs/survival.pdf" className="hover:underline">
123133
Survival Guide
124134
</Link>
135+
<Link href="/docs/regulamento.pdf" className="hover:underline">
136+
General Regulation
137+
</Link>
125138
</div>
126139
<div className="flex justify-center lg:justify-end">
127140
<div className="mt-10 text-white sm:w-1/2 lg:mt-0">
@@ -130,19 +143,6 @@ export default function Footer(props: IFooterProps) {
130143
</div>
131144
</div>
132145
</div>
133-
<div className="invisible -mt-20 flex justify-center pb-10 lg:visible">
134-
<Animation
135-
text={
136-
props.footerAnimationText != undefined ? (
137-
props.footerAnimationText
138-
) : (
139-
<DefaultAnimation />
140-
)
141-
}
142-
>
143-
{props.children}
144-
</Animation>
145-
</div>
146146
</div>
147147
);
148148
}

0 commit comments

Comments
 (0)