Skip to content

Commit

Permalink
更新:首页样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Dec 13, 2022
1 parent a9ebdcb commit c4af716
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
8 changes: 8 additions & 0 deletions app/Plugins/Core/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@
emoji_add('小电视',plugin_path('Core/resources/assets/emoji/tv_小电视.json'),'image');
emoji_add('热词系列',plugin_path('Core/resources/assets/emoji/热词系列一.json'),'image');
emoji_add('斗图',plugin_path('Core/resources/assets/emoji/斗图.json'),'image',true);


Itf()->add('ui-home-tabs-dropdown',0,[
'enable' => (function(){
return true;
}),
'view' => 'App::widget.home.dropdown1'
]);
22 changes: 13 additions & 9 deletions app/Themes/CodeFec/resources/views/index/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@
</li>
@endif
@endforeach
<li class="nav-item d-md-none ms-auto">
<a href="/topic/create" class="btn btn-primary btn-pill shadow-sm py-1" role="button" rel="noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-pencil" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path d="M0 0h24v24H0z" stroke="none"/>
<path d="M4 20h4L18.5 9.5a1.5 1.5 0 0 0-4-4L4 16v4M13.5 6.5l4 4"/>
</svg>
发表</a>
<li class="nav-item ms-auto">
<div class="dropdown">
<a href="#" class="btn-action dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><!-- Download SVG icon from http://tabler-icons.io/i/dots-vertical -->
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="1" /><circle cx="12" cy="19" r="1" /><circle cx="12" cy="5" r="1" /></svg>
</a>
<div class="dropdown-menu dropdown-menu-end">
@foreach(Itf()->get('ui-home-tabs-dropdown') as $k=>$v)
@if(call_user_func($v['enable'])===true)
@include($v['view'])
@endif
@endforeach
</div>
</div>
</li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="dropdown-item" href="/topic/create"><svg xmlns="http://www.w3.org/2000/svg" class="icon dropdown-item-icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"></path><path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"></path><path d="M16 5l3 3"></path></svg>发表</a>

0 comments on commit c4af716

Please sign in to comment.