Skip to content

Commit

Permalink
Fix Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroFrame committed Feb 26, 2024
1 parent 6b01619 commit b670695
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
13 changes: 8 additions & 5 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ html {
margin-right: calc(-1 * (100vw - 100%));
}

.App {
min-height: 99%;
display: flex;
flex-direction: column;
align-items: stretch;
}

footer {
position: fixed;
bottom: 20px;
width: 100%;
left: 50%;
transform: translateX(-50%);
flex: 1;
}
30 changes: 19 additions & 11 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,28 @@ export default function App() {
return (
<AntdConfigProvider>
<div className="App">
<AppTitle />
<Divider />
<header>
<AppTitle />
<Divider />
</header>

{findOptions === null && (
<SetupScreen saveFindOptions={onChangeFindOptions} />
)}
<main>
{findOptions === null && (
<SetupScreen saveFindOptions={onChangeFindOptions} />
)}

{findOptions !== null && (
<ScheduleScreen
findOptions={findOptions}
changeFindOptions={onChangeFindOptions}
/>
)}
{findOptions !== null && (
<ScheduleScreen
findOptions={findOptions}
changeFindOptions={onChangeFindOptions}
/>
)}
</main>

<br />
<br />
</div>

<Footer />
</AntdConfigProvider>
);
Expand Down
12 changes: 7 additions & 5 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ const { Link, Text } = Typography;
export default function Footer() {
return (
<footer>

<Text> Authors </Text>

<Link href="https://github.com/DmytroFrame" target="_blank">
Dmytro Kostyshyn
D. Kostyshyn
</Link>
<Text> & </Text>
<Link href="https://linkedin.com/in/vladyslav-lutchyn/" target="_blank">
Vladyslav Lutchyn
V. Lutchyn
</Link>

<Text> - </Text>
<Link href="http://195.162.83.28/cgi-bin/timetable.cgi?n=700" target="_blank">
Data Source
<Link
href="http://195.162.83.28/cgi-bin/timetable.cgi?n=700"
target="_blank"
>
Source
</Link>
</footer>
);
Expand Down

0 comments on commit b670695

Please sign in to comment.