Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb674c5

Browse files
committed
epic new breadcrumb
1 parente6e1673 commiteb674c5

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

‎frontend/src/components/About/AboutHomepage.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
importLinkfrom"next/link";
21
importImagefrom"next/image";
2+
33
exportdefaultfunctionAboutHomePage(){
44
return(
55
<sectionclassName="py-8 xl:px-24 sm:px-10 px-5"id="about">

‎frontend/src/components/About/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const About = () => {
5858
<divclassName="p-5 border border-[#595F6D] flex-1 rounded-lg mr-5 w-full sm:mb-0 mb-5">
5959
<divclassName="flex text-[#3A76F8]">
6060
<Imagesrc="/assets/book_icon.svg"alt="Book"width={20}height={20}className="mr-2"/>
61-
<Linkhref="/about/execs-directors-subcommittees">
61+
<Linkhref="/about/execs-directors-subcoms">
6262
<spanclassName="font-semibold hover:underline">execs-directors-subcoms</span>
6363
</Link>
6464
</div>

‎frontend/src/components/Navbar.tsx‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { useEffect, useState } from 'react';
44
importHamburgerfrom'./Hamburger';
55

66
constNavbar=()=>{
7-
const[path,setPath]=useState<string>('');
7+
const[path,setPath]=useState<string[]>([]);
88
useEffect(()=>{
9-
constitem:string|undefined=window.location.href.split('/').pop();
10-
if(item==''||item==undefined)setPath('HOME');
11-
elsesetPath(item.toUpperCase());
9+
constpathSegments:string[]|undefined=window.location.pathname.split('/').filter(segment=>segment);
10+
if(pathSegments===undefined)setPath([]);
11+
elsesetPath(pathSegments.map(segment=>segment.toUpperCase()));
1212
},[]);
1313

1414
return(
@@ -21,7 +21,13 @@ const Navbar = () => {
2121
height={200}
2222
draggable={false}
2323
/>
24-
<pclassName="mt-3 text-xs">C:\INTERNAL STRUCTURE\{path}</p>
24+
<pclassName="font-mono mt-3 text-s font-bold">
25+
<spanclassName="text-green-500">csesoc@unsw</span>
26+
<span>:</span>
27+
<spanclassName="text-blue-500">~{path.map(segment=>'/'+segment.toLowerCase())}</span>
28+
<span>$</span>
29+
<spanid="cursor"className="text-gray-400 inline-block animate-blink">_</span>
30+
</p>
2531
</Link>
2632
<div>
2733
<divclassName="md:flex xl:gap-18 lg:gap-10 md:gap-5 text-right font-bold hidden">
@@ -44,7 +50,7 @@ const Navbar = () => {
4450
<divclassName="md:hidden xl:hidden lg:hidden text-right font-bold block">
4551
<Hamburger/>
4652
</div>
47-
</div>
53+
</div>
4854
</nav>
4955
);
5056
};

‎frontend/src/pages/about/execs-directors-subcommittees.tsx‎renamed to ‎frontend/src/pages/about/execs-directors-subcoms.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const ExecsDirectorsSubcommittees = () => {
55
return(
66
<sectionclassName="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden">
77
<Navbar/>
8-
<sectionclassName="py-8 xl:px-24 sm:px-10 px-5"id="execs-directors-subcommitees">
8+
<sectionclassName="py-8 xl:px-24 sm:px-10 px-5"id="execs-directors-subcommittees">
99
<divclassName="text-center my-10">
10-
<h1className="font-bold text-6xl">EXECS, DIRECTORS&SUBCOMMITEES</h1>
10+
<h1className="font-bold text-6xl">EXECS, DIRECTORS&SUBCOMMITTEES</h1>
1111
</div>
1212

1313
{/* CSESOC TEAM */}

‎frontend/src/styles/globals.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@ body {
1111
background:#000031;
1212
font-family:'Raleway', sans-serif;
1313
}
14+
15+
@keyframes blink {
16+
50% {
17+
opacity:0;
18+
}
19+
}
20+
21+
.animate-blink {
22+
animation: blink1s step-end infinite;
23+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp