diff --git a/README.md b/README.md index f649b71..345e6a9 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ You can see a demo of the project at [https://linktreefreeclone.yoandev.co/](htt 1. **Customize your general settings** - Open `src/config.ts` and edit the `SUBTITLE', 'TITLE' and 'TAGLINE' variables. + Open `src/config.ts` and edit the `SUBTITLE`, `TITLE`, `TAGLINE`, `contact`, `phone` and `email` variables. 2. **Customize your links** diff --git a/src/components/Contact.astro b/src/components/Contact.astro new file mode 100644 index 0000000..9060cce --- /dev/null +++ b/src/components/Contact.astro @@ -0,0 +1,34 @@ +--- +export interface Props { + contact: string; + phone: string; + email: string; +} + +const { contact, phone, email } = Astro.props; +--- +
+
+

+ {contact} +

+ +
+
diff --git a/src/config.ts b/src/config.ts index cf89d2f..e59f9a2 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,8 @@ export const SUBTITLE = "A free clone of LinkTree" export const TITLE = "LinkTreeFreeClone" -export const TAGLINE = "Make your own LinkTree page for free" \ No newline at end of file +export const TAGLINE = "Make your own LinkTree page for free" + +// Contacts +export const contact = "Keep in touch" +export const phone = "+33600000000" +export const email = "contact@yoandev.co" \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index cfad92d..16213b3 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,8 +3,16 @@ import Layout from "../layouts/Layout.astro"; import Header from "../components/Header.astro"; import Link from "../components/Link.astro"; import Footer from "../components/Footer.astro"; +import Contact from "../components/Contact.astro"; -import { SUBTITLE, TITLE, TAGLINE } from "../config"; +import { + SUBTITLE, + TITLE, + TAGLINE, + contact, + phone, + email +} from "../config"; // fetch all Markdown files in the links directory const links = await Astro.glob("./links/*.md"); @@ -32,6 +40,12 @@ const links = await Astro.glob("./links/*.md"); + +