diff --git a/src/app/app.component.html b/src/app/app.component.html index 737519c..1034c31 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,338 +1,3 @@ - - - - - - - - +
- - -
-
-
- -

Hello, {{ title }}

-

Congratulations! Your app is running. 🎉

-
- -
-
- @for (item of [ - { title: 'Explore the Docs', link: 'https://angular.dev' }, - { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, - { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, - { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, - { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, - ]; track item.title) { - - {{ item.title }} - - - - - } -
- -
-
-
- - - - - - - - - - - + \ No newline at end of file diff --git a/src/app/app.component.scss b/src/app/app.component.scss index e69de29..bd6213e 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 8b5e5fb..b647dc2 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,3 +1,6 @@ import {Routes} from '@angular/router'; +import {TopBarComponent} from "./top-bar/top-bar.component"; -export const routes: Routes = []; +export const routes: Routes = [ + {path: '', component: TopBarComponent}, +]; diff --git a/src/app/top-bar/top-bar.component.html b/src/app/top-bar/top-bar.component.html new file mode 100644 index 0000000..436d4ed --- /dev/null +++ b/src/app/top-bar/top-bar.component.html @@ -0,0 +1,16 @@ +
+ top-blank-logo +
+ +
+
首页
+
新闻公告
+
学校概况
+
师资队伍
+
人才培养
+
科学研究
+
合作交流
+
党群工作
+
学生工作
+
English
+
\ No newline at end of file diff --git a/src/app/top-bar/top-bar.component.scss b/src/app/top-bar/top-bar.component.scss new file mode 100644 index 0000000..bd6213e --- /dev/null +++ b/src/app/top-bar/top-bar.component.scss @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/src/app/top-bar/top-bar.component.ts b/src/app/top-bar/top-bar.component.ts new file mode 100644 index 0000000..59a483e --- /dev/null +++ b/src/app/top-bar/top-bar.component.ts @@ -0,0 +1,13 @@ +import {Component} from '@angular/core'; +import {NgOptimizedImage} from '@angular/common'; +import {RouterLink} from "@angular/router"; + +@Component({ + standalone: true, + selector: 'app-top-bar', + templateUrl: './top-bar.component.html', + styleUrls: ['./top-bar.component.scss'], + imports: [NgOptimizedImage, RouterLink], +}) +export class TopBarComponent { +} \ No newline at end of file