-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Dec 15, 2024
1 parent
bcc80f1
commit 347eb33
Showing
14 changed files
with
823 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { A } from "../../components/A"; | ||
import { PageTitle } from "../../components/PageTitle"; | ||
import { generateSharedMetadata } from "../../../../lib/generateSharedMetadata"; | ||
|
||
function Page() { | ||
return ( | ||
<div> | ||
<PageTitle title={"アーカイブ"} /> | ||
|
||
<div className="mt-6"> | ||
<ul className="list-disc list-inside"> | ||
<li> | ||
<A | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://docs.google.com/presentation/d/1J7sBjifq_ZmhktXqs2VEih5ouVxa7I3upSLh-8StGpc/edit#slide=id.p" | ||
> | ||
in-facto meet-up vol.2 Closing Talk 資料 | ||
</A> | ||
</li> | ||
<li> | ||
<A href="/meetup2">in-facto meet-up vol.2</A> | ||
</li> | ||
<li> | ||
<A href="/meetup1">in-facto meet-up vol.1</A> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export const metadata = generateSharedMetadata({ title: "アーカイブ" }); | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { A } from "../../components/A"; | ||
import { PageTitle } from "../../components/PageTitle"; | ||
import { generateSharedMetadata } from "../../../../lib/generateSharedMetadata"; | ||
|
||
const contactUrl = "https://forms.gle/vBwXbBzrsnfGx3qT9"; | ||
|
||
function Page() { | ||
return ( | ||
<div> | ||
<PageTitle title={"問い合わせ"} /> | ||
|
||
<div className="mt-6"> | ||
お問い合わせは{" "} | ||
<A href={contactUrl} target="_blank" rel="noopener noreferrer"> | ||
こちら | ||
</A>{" "} | ||
からお願いします。通常3,4日以内に返信いたします。 | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export const metadata = generateSharedMetadata({ title: "問い合わせ" }); | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,135 +1,7 @@ | ||
"use client"; | ||
|
||
import Link from "next/link"; | ||
import { clsx } from "clsx"; | ||
import { useEffect, useRef, useState } from "react"; | ||
// import { useInView } from "react-intersection-observer"; | ||
import { A } from "../components/A"; | ||
import { Transition } from "react-transition-group"; | ||
import { usePathname } from "next/navigation"; | ||
|
||
const Layout = ({ children }: { children: React.ReactElement }) => { | ||
// const { ref, inView, entry } = useInView({ | ||
// fallbackInView: true, | ||
// initialInView: true, | ||
// }); | ||
|
||
// const isNavigationVisible = !inView; | ||
const isNavigationVisible = true; | ||
|
||
return ( | ||
<> | ||
<Navigation isVisible={isNavigationVisible} /> | ||
|
||
<main | ||
className={ | ||
"max-w-lg w-11/12 px-2 md:px-0 md:w-4/5 mx-auto grid min-h-full" | ||
} | ||
style={{ gridTemplateRows: "auto 1fr auto" }} | ||
> | ||
<div className="mt-8 pb-2 md:hidden"> | ||
<div className="inline-block"> | ||
<Link href={"/"} passHref> | ||
<img | ||
src={"/in-facto-black.png"} | ||
alt={"in-facto"} | ||
className={"w-[100px] md:w-[160px]"} | ||
/> | ||
</Link> | ||
</div> | ||
</div> | ||
<div className="mt-7">{children}</div> | ||
|
||
<footer className="mt-10 mb-12 text-gray-600 text-sm font-serif font-light tracking-wider"> | ||
<div className="flex"> | ||
<div> | ||
<A href={"/"}>in-facto</A> (c) 2022- | ||
</div> | ||
|
||
<div className="ml-auto"></div> | ||
</div> | ||
</footer> | ||
</main> | ||
</> | ||
); | ||
}; | ||
|
||
export const contactUrl = "https://forms.gle/vBwXbBzrsnfGx3qT9"; | ||
|
||
const duration = 300; | ||
|
||
const defaultStyle = { | ||
transition: `opacity ${duration}ms ease-in-out`, | ||
opacity: 0, | ||
}; | ||
|
||
const transitionStyles = { | ||
entering: { opacity: 1 }, | ||
entered: { opacity: 1 }, | ||
exiting: { opacity: 0 }, | ||
exited: { opacity: 0 }, | ||
unmounted: {}, | ||
} as const; | ||
|
||
type PageState = "about" | "posts" | "videos" | "unknown"; | ||
|
||
const Navigation = (props: { isVisible: boolean }) => { | ||
const { isVisible } = props; | ||
const nodeRef = useRef(null); | ||
|
||
const path = usePathname(); | ||
|
||
let page: PageState = "unknown"; | ||
|
||
if (path && path.startsWith("/about")) { | ||
page = "about"; | ||
} | ||
if (path && path.startsWith("/posts")) { | ||
page = "posts"; | ||
} | ||
if (path && path.startsWith("/videos")) { | ||
page = "videos"; | ||
} | ||
|
||
return ( | ||
<Transition nodeRef={nodeRef} in={isVisible} timeout={5000} appear={false}> | ||
{(state) => { | ||
// not working now... | ||
|
||
// console.log(state); | ||
return ( | ||
<div | ||
className={clsx("invisible md:visible", "fixed", "py-7", "pl-5")} | ||
style={{ | ||
...defaultStyle, | ||
...transitionStyles[state], | ||
}} | ||
> | ||
<div className="flex flex-col gap-1"> | ||
<div> | ||
<A href={"/"}> | ||
<img | ||
src={"/in-facto-black.png"} | ||
alt={"in-facto"} | ||
className={"w-[100px]"} | ||
/> | ||
</A> | ||
</div> | ||
<div className={clsx("mt-3", page === "about" && "font-bold")}> | ||
<A href="/about">About</A> | ||
</div> | ||
<div className={clsx(page === "videos" && "font-bold")}> | ||
<A href="/videos">Videos</A> | ||
</div> | ||
<div className={clsx(page === "posts" && "font-bold")}> | ||
<A href={"/posts"}>Posts</A> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}} | ||
</Transition> | ||
); | ||
return <div className="w-full">{children}</div>; | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"use client"; | ||
|
||
export const PageTitle = ({ title }: { title: string }) => { | ||
return <h2 className="text-2xl font-serif">{title}</h2>; | ||
return <h2 className="text-xl font-serif">{title}</h2>; | ||
}; |
Oops, something went wrong.