Skip to content

Commit 1405801

Browse files
Modify lab logo (#3)
* add logo.svg * modify Navbar.tsx * Others * move favicon.png (also modify gatsby-config.ts) * change line ending rule (.editorconfig) * update pnpm-lock
1 parent 3addd4f commit 1405801

File tree

6 files changed

+2090
-2396
lines changed

6 files changed

+2090
-2396
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
root = true
33

44
[*]
5-
end_of_line = crlf
5+
end_of_line = lf
66
insert_final_newline = true
77

88
# 2 space indentation for HTML, CSS, JavaScript, JSON, and TypeScript files

gatsby-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const config: GatsbyConfig = {
2525
{
2626
resolve: `gatsby-plugin-manifest`,
2727
options: {
28-
icon: `src/images/favicon.png`,
28+
icon: `src/images/icons/favicon.png`,
2929
},
3030
},
3131
]

pnpm-lock.yaml

Lines changed: 2079 additions & 2392 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Navbar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React, { useState, useEffect } from "react"
22
import { Disclosure, DisclosureButton, DisclosurePanel } from '@headlessui/react'
3-
import { Bars3Icon, XMarkIcon, AcademicCapIcon } from '@heroicons/react/24/outline'
3+
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
44
import { Link } from 'gatsby'
55
import Logo from "../assets/logo"
6+
import Icon from '../images/icons/logo.svg'
67

78
export interface NavigationItem {
89
name: string
@@ -56,7 +57,7 @@ export default function Navbar({ initialNavigation = [] }: NavBarProps) {
5657
{/* Logo and menu */}
5758
<div className="flex flex-1 items-center justify-center whitespace-nowrap">
5859
<div className="flex items-center gap-2 min-w-[150px] whitespace-nowrap">
59-
<AcademicCapIcon className="h-8 w-8 text-primary" />
60+
<img src={Icon} className="h-8 w-8 text-primary" />
6061
<h2 className="text-3xl font-bold sm:text-2xl"><Logo includeDot={false}/></h2>
6162
</div>
6263

File renamed without changes.

src/images/icons/logo.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)