Skip to content

Commit

Permalink
fixed logo
Browse files Browse the repository at this point in the history
  • Loading branch information
superwunc committed Jun 17, 2024
1 parent 1055f56 commit e89b30d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
Binary file added assets/aastar/logo-aastar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 4 additions & 11 deletions components/layout/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { AiFillInstagram } from "react-icons/ai";
import { Container } from "../../util/container";
import { RawRenderer } from "./rawRenderer";
import { useTheme } from "..";
import { Icon } from "../../util/icon";
import LogoImg from "../../../assets/aastar/logo-aastar.png";
import Image from "next/image";

export const Footer = ({ data, icon, rawData }) => {
const theme = useTheme();
Expand Down Expand Up @@ -50,15 +51,7 @@ export const Footer = ({ data, icon, rawData }) => {
href="/"
className="group mx-2 flex items-center font-bold tracking-tight text-gray-400 dark:text-gray-300 opacity-50 hover:opacity-100 transition duration-150 ease-out whitespace-nowrap"
>
<Icon
parentColor={data.color}
data={{
name: icon.name,
color: data.color === "primary" ? "primary" : icon.color,
style: icon.style,
}}
className="inline-block h-10 w-auto group-hover:text-orange-500"
/>
<Image src={LogoImg} alt="logo" style={{"width": "5rem"}} />
</Link>
<div className="flex gap-4">
{data.social && data.social.facebook && (
Expand Down Expand Up @@ -122,7 +115,7 @@ export const Footer = ({ data, icon, rawData }) => {
</a>
)}
</div>
<RawRenderer parentColor={data.color} rawData={rawData} />
{/* <RawRenderer parentColor={data.color} rawData={rawData} /> */}
</div>
<div
className={`absolute h-1 bg-gradient-to-r from-transparent ${
Expand Down
12 changes: 3 additions & 9 deletions components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { useTheme } from ".";
import { Icon } from "../util/icon";
import { tinaField } from "tinacms/dist/react";
import { GlobalHeader } from "../../tina/__generated__/types";
import Image from "next/image";
import LogoImg from "../../assets/aastar/logo-aastar.png";

export const Header = ({ data }: { data: GlobalHeader }) => {
const router = useRouter();
Expand Down Expand Up @@ -72,15 +74,7 @@ export const Header = ({ data }: { data: GlobalHeader }) => {
href="/"
className="flex gap-1 items-center whitespace-nowrap tracking-[.002em]"
>
<Icon
tinaField={tinaField(data, "icon")}
parentColor={data.color}
data={{
name: data.icon.name,
color: data.icon.color,
style: data.icon.style,
}}
/>
<Image src={LogoImg} alt="logo" style={{"width": "5rem"}}></Image>
<span data-tina-field={tinaField(data, "name")}>{data.name}</span>
</Link>
</h4>
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.

0 comments on commit e89b30d

Please sign in to comment.