diff --git a/components/ProjectModal.tsx b/components/ProjectModal.tsx index 4edbf53..555c86f 100644 --- a/components/ProjectModal.tsx +++ b/components/ProjectModal.tsx @@ -2,6 +2,7 @@ import type { NextPage } from "next"; import { useEffect, useRef, useState } from "react"; import asciidoctor from "asciidoctor"; import styles from "../styles/ProjectModal.module.css"; +import Link from "next/link"; interface ModalInput { project: string; @@ -37,7 +38,7 @@ Last updated: ${lastUpdate} | ; return
+ setVisible(false)}> +
X
+
; diff --git a/styles/ProjectModal.module.css b/styles/ProjectModal.module.css index 4097eb2..b0efe6e 100644 --- a/styles/ProjectModal.module.css +++ b/styles/ProjectModal.module.css @@ -17,4 +17,30 @@ padding: 20px; border-radius: 20px; overflow-y: auto; + position: relative; +} + +.modalClose { + float: right; + position: relative; + background: #555; + border-radius: 50%; + width: 2em; + height: 2em; + font-family: sans-serif; + margin-bottom: -20px; + z-index: 100; + /*text-align: center;*/ + /*padding: auto 0;*/ +} + +.modalCloseAlign { + margin: 0; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + display: block; + color: #fff; + text-decoration: none; } \ No newline at end of file