Skip to content

Commit

Permalink
Merge pull request #98 from nitfc-festival-system-team/83-フッターを作る
Browse files Browse the repository at this point in the history
feat: フッターを作る
  • Loading branch information
void2610 authored Oct 23, 2023
2 parents 4878dad + 588ed05 commit 435fefd
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 2 deletions.
Binary file added public/image/nitfc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import React from "react";
import { useRouter } from "next/router";

import { LinkedText } from "./LinkedText";
import "@/styles/gamingColor.css";

export const Footer = () => {
const router = useRouter();
return (
<footer>
<div
style={{
backgroundColor: "#20e0e0",
width: "100vw",
display: "flex",
flexDirection: "column",
alignItems: "center",
gap: "10px",
fontSize: "1.4vw",
marginTop: "5vw",
}}
>
<div
style={{
display: "flex",
flexDirection: "row",
alignItems: "center",
gap: "5vw",
fontSize: "2vw",
}}
>
<LinkedText text={"企画"} link={"contents/schedule"} />
<LinkedText text={"露店"} link={"contents/stand"} />
</div>
<img
src={"image/nitfc.png"}
alt={"nitfc_logo"}
width={"20%"}
style={{ cursor: "pointer" }}
onClick={() => {
router.push("https://www.fukui-nct.ac.jp/");
}}
/>
{/* <LinkedText text={"福井高専"} link={"https://www.fukui-nct.ac.jp/"} /> */}
<LinkedText
text={"お問い合わせ"}
link={"https://www.fukui-nct.ac.jp/"}
/>
<div style={{ animation: "rainbow 1s infinite" }}>
<LinkedText
text={"福井高専祭システム班メンバー募集中!!"}
link={"https://github.com/nitfc-festival-system-team"}
/>
</div>
<LinkedText
text={"GitHub"}
link={"https://github.com/nitfc-festival-system-team/2023hp"}
/>
<br />
</div>
</footer>
);
};
13 changes: 13 additions & 0 deletions src/components/LinkedText.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const LinkedText = (props: { text: string; link: string }) => {
return (
<a
href={props.link}
style={{
textDecoration: "none",
fontWeight: "bold",
}}
>
{props.text}
</a>
);
};
1 change: 1 addition & 0 deletions src/components/Schedule.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client";
import Timeline from "react-calendar-timeline";
import "react-calendar-timeline/lib/Timeline.css";
import moment from "moment";
Expand Down
6 changes: 4 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

import { EventHeader } from "@/components/EventOverlay";
import { Title } from "@/components/Title";
import { OpenDate } from "@/components/OpenDate";
Expand All @@ -7,9 +9,8 @@ import { Map } from "@/components/Map";
import { Notice } from "@/components/Notice";
import { Sidebar } from "@/components/VerticalLine";
import { BackGroundImg } from "@/components/BackGround";

import React from "react";
import { FadeAnimationProvider } from "@/components/FadeAnimationProvider";
import { Footer } from "@/components/Footer";

export default function Page() {
return (
Expand Down Expand Up @@ -57,6 +58,7 @@ export default function Page() {
<Map />
</div>
</FadeAnimationProvider>
<Footer />
</div>
</>
);
Expand Down
10 changes: 10 additions & 0 deletions src/styles/gamingColor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@keyframes rainbow {
12% { color: #ff5353; }
24% { color: #ffcf53; }
36% { color: #e8ff53; }
48% { color: #53ff5d; }
60% { color: #53ffbc; }
72% { color: #5393ff; }
84% { color: #ca53ff; }
100% { color: #ff53bd; }
}

0 comments on commit 435fefd

Please sign in to comment.