Skip to content

Commit

Permalink
divest from logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 13, 2023
1 parent 1a46897 commit 98cd480
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 36 deletions.
10 changes: 0 additions & 10 deletions src/config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,5 @@
}
]
}
],
"footer": [
{
"name": "Elements",
"url": "/elements"
},
{
"name": "Terms & Conditions",
"url": "/terms"
}
]
}
2 changes: 1 addition & 1 deletion src/content/homepage/-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ banner:
image: "/images/banner.png"
button:
enable: true
label: "Get Started For Free"
label: "Get Started"
link: "https://github.com/reednel/pages"

# Features
Expand Down
25 changes: 6 additions & 19 deletions src/layouts/partials/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
---
import Logo from "@/components/Logo.astro";
import Social from "@/components/Social.astro";
import config from "@/config/config.json";
import menu from "@/config/menu.json";
import social from "@/config/social.json";
import { markdownify } from "@/lib/utils/textConverter";
const { footer }: { footer: { name: string; url: string }[] } = menu;
---

<footer class="bg-theme-light dark:bg-darkmode-theme-light mt-auto">
<div class="container">
<div class="row items-center py-4">
<div class="mb-8 text-center lg:col-3 lg:mb-0 lg:text-left">
<Logo />
</div>
<div class="mb-8 text-center lg:col-6 lg:mb-0">
<div class="row items-center py-2">
<div class="mb-2 text-center lg:col-6 lg:mb-0 lg:text-left">
<ul>
{
footer.map((menu) => (
<li class="m-3 inline-block">
<a href={menu.url}>{menu.name}</a>
</li>
))
}
<li class="m-3 inline-block">
<a href="/terms">&copy; Jane Doe 2023</a>
</li>
</ul>
</div>
<div class="mb-8 text-center lg:col-3 lg:mb-0 lg:mt-0 lg:text-right">
<div class="mb-2 text-center lg:col-6 lg:mb-0 lg:mt-0 lg:text-right">
<Social source={social.main} className="social-icons" />
</div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions src/layouts/partials/Header.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import Logo from "@/components/Logo.astro";
import ThemeSwitcher from "@/components/ThemeSwitcher.astro";
import config from "@/config/config.json";
import menu from "@/config/menu.json";
Expand All @@ -24,10 +23,6 @@ const { pathname } = Astro.url;

<header class={`header z-30 ${settings.sticky_header && "sticky top-0"}`}>
<nav class="navbar container">
<!-- logo -->
<div class="order-0">
<Logo />
</div>
<!-- navbar toggler -->
<input id="nav-toggle" type="checkbox" class="hidden" />
<label
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (theme.fonts.font_family.secondary) {
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
safelist: [{ pattern: /^swiper-/ }],
// safelist: [{ pattern: /^swiper-/ }],
darkMode: "class",
theme: {
screens: {
Expand Down

0 comments on commit 98cd480

Please sign in to comment.