Skip to content

Commit

Permalink
feat(omi-templates): delete unnecessary items
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Dec 29, 2024
1 parent f9a400b commit 27e09e5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 66 deletions.
54 changes: 25 additions & 29 deletions packages/omi-templates/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/omi-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"copy-to-clipboard": "^3.3.3",
"echarts": "^5.5.0",
"markdown-it": "^14.0.0",
"omi": "7.7.0",
"omi": "7.7.3",
"omi-ripple": "^0.1.2",
"omi-router": "latest",
"omi-suspense": "latest",
Expand Down
19 changes: 0 additions & 19 deletions packages/omi-templates/src/pages/company.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ const team = signal([
export function Company() {
return (
<>
<header class="shadow-sm dark:shadow-gray-700 mt-4 bg-blue-600">
<div class="flex max-w-7xl mx-auto pt-2 pb-3 lg:justify-normal justify-between px-1 lg:px-0 sm:px-3">
<div class="flex items-center cursor-pointer">
<img class="w-8 h-8" src="https://omi.cdn-go.cn/admin/latest/home/omi.svg" alt="OMI Logo" />
<div class="ml-1 text-2xl font-semibold font-bold text-white">OMI Tech</div>
</div>
<i class="t-icon t-icon-bulletpoint text-xl sm:text-xl lg:hidden text-white"></i>
<div class="flex-1 flex justify-center">
<div class="flex items-center">
{['公司主页', '业务', '关于我们', '团队', '联系我们'].map((item, key) => (
<div class="cursor-pointer mx-8 text-xl text-white hover:text-blue-200" key={key}>
<a href={`#`}>{item}</a>
</div>
))}
</div>
</div>
</div>
</header>

<main class="text-sm sm:text-base">
<div class="hero-section w-full h-screen relative flex items-center justify-center">
<img
Expand Down
17 changes: 0 additions & 17 deletions packages/omi-templates/src/pages/food.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,6 @@ const navItems = [
export function Food() {
return (
<div>
<header class="shadow-sm dark:shadow-gray-700 mt-4 bg-blue-600">
<div class="flex max-w-7xl mx-auto pt-2 pb-3 lg:justify-normal justify-between px-1 lg:px-0 sm:px-3">
<div class="flex items-center cursor-pointer">
<img class="w-8 h-8" src="https://omi.cdn-go.cn/admin/latest/home/omi.svg" alt="OMI Logo" />
<div class="ml-1 text-2xl font-bold text-white">OMI 美食</div>
</div>
<div class="flex-1 flex justify-center">
<div class="flex items-center">
{navItems.map((item, key) => (
<div class="cursor-pointer mx-8 text-xl text-white hover:text-blue-200 flex items-center" key={key}>
<a href={`#`}>{item.label}</a>
</div>
))}
</div>
</div>
</div>
</header>

<main class="text-sm sm:text-base">
<div class="hero-section w-full h-screen relative flex items-center justify-center">
Expand Down

0 comments on commit 27e09e5

Please sign in to comment.