-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: replace Obscuro logos with Ten #1649
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,52 +2,65 @@ | |
<header> | ||
<el-container class="align-vertical"> | ||
<el-main> | ||
<el-row justify="space-around"> | ||
<el-col :span="2" > | ||
<img src="@/assets/imgs/obscuro.svg" alt="obscu.ro" class="header-image" style="max-height: 5vh;"/> | ||
</el-col> | ||
<el-col :span="10" :offset="7"> | ||
<nav class="nav-bar"> | ||
<el-radio-group size="default"> | ||
<RouterLink to="/"> <el-button link class="paddedTop"> Home</el-button></RouterLink> | ||
<RouterLink to="/personal"> <el-button link class="paddedTop">Personal</el-button></RouterLink> | ||
<el-button link class="paddedTop"> | ||
<el-dropdown> | ||
<span class="el-dropdown-link"> | ||
Blockchain | ||
</span> | ||
<template #dropdown> | ||
<el-dropdown-menu> | ||
<RouterLink to="/transactions"> <el-dropdown-item>Transactions</el-dropdown-item></RouterLink> | ||
<RouterLink to="/batches"> <el-dropdown-item>Batches</el-dropdown-item></RouterLink> | ||
<RouterLink to="/blocks"> <el-dropdown-item>Blocks</el-dropdown-item></RouterLink> | ||
</el-dropdown-menu> | ||
</template> | ||
</el-dropdown> | ||
</el-button> | ||
<el-button link class="paddedTop" style="margin: 0px"> | ||
<el-dropdown> | ||
<span class="el-dropdown-link"> | ||
Resources | ||
</span> | ||
<template #dropdown> | ||
<el-dropdown-menu> | ||
<RouterLink to="/decrypt"> <el-dropdown-item>Decrypt</el-dropdown-item></RouterLink> | ||
<RouterLink to="/verified"> <el-dropdown-item>Verified Data</el-dropdown-item></RouterLink> | ||
</el-dropdown-menu> | ||
</template> | ||
</el-dropdown> | ||
</el-button> | ||
</el-radio-group> | ||
</nav> | ||
</el-col> | ||
<el-col :span="5" > | ||
<meta-mask-connect-button /> | ||
</el-col> | ||
<!-- <el-col :span="4" >--> | ||
<!-- <search-bar-item />--> | ||
<!-- </el-col>--> | ||
</el-row> | ||
<el-row justify="space-around"> | ||
<el-col :span="2"> | ||
<img | ||
src="@/assets/imgs/ten.svg" | ||
alt="obscu.ro" | ||
class="header-image" | ||
style="max-height: 5vh" | ||
/> | ||
</el-col> | ||
<el-col :span="10" :offset="7"> | ||
<nav class="nav-bar"> | ||
<el-radio-group size="default"> | ||
<RouterLink to="/"> <el-button link class="paddedTop"> Home</el-button></RouterLink> | ||
<RouterLink to="/personal"> | ||
<el-button link class="paddedTop">Personal</el-button></RouterLink | ||
> | ||
<el-button link class="paddedTop"> | ||
<el-dropdown> | ||
<span class="el-dropdown-link"> Blockchain </span> | ||
<template #dropdown> | ||
<el-dropdown-menu> | ||
<RouterLink to="/transactions"> | ||
<el-dropdown-item>Transactions</el-dropdown-item></RouterLink | ||
> | ||
<RouterLink to="/batches"> | ||
<el-dropdown-item>Batches</el-dropdown-item></RouterLink | ||
> | ||
<RouterLink to="/blocks"> | ||
<el-dropdown-item>Blocks</el-dropdown-item></RouterLink | ||
> | ||
</el-dropdown-menu> | ||
</template> | ||
</el-dropdown> | ||
</el-button> | ||
<el-button link class="paddedTop" style="margin: 0px"> | ||
<el-dropdown> | ||
<span class="el-dropdown-link"> Resources </span> | ||
<template #dropdown> | ||
<el-dropdown-menu> | ||
<RouterLink to="/decrypt"> | ||
<el-dropdown-item>Decrypt</el-dropdown-item></RouterLink | ||
> | ||
<RouterLink to="/verified"> | ||
<el-dropdown-item>Verified Data</el-dropdown-item></RouterLink | ||
> | ||
</el-dropdown-menu> | ||
</template> | ||
</el-dropdown> | ||
</el-button> | ||
</el-radio-group> | ||
</nav> | ||
</el-col> | ||
<el-col :span="5"> | ||
<meta-mask-connect-button /> | ||
</el-col> | ||
<!-- <el-col :span="4" >--> | ||
<!-- <search-bar-item />--> | ||
<!-- </el-col>--> | ||
</el-row> | ||
</el-main> | ||
</el-container> | ||
</header> | ||
|
@@ -76,5 +89,4 @@ export default { | |
.paddedTop { | ||
padding: 10px; | ||
} | ||
Comment on lines
89
to
91
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
</style> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,10 @@ ol li { | |
} | ||
|
||
.logo { | ||
width: 100px; | ||
height: 100px; | ||
object-fit: contain; | ||
padding: 10px; | ||
} | ||
|
||
.begin-box { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The restructuring of the HTML template and the replacement of the logo image source from "obscuro.svg" to "ten.svg" align with the rebranding requirements. The use of
RouterLink
for navigation is a Vue.js best practice for SPA routing, which should provide better performance and user experience by avoiding full page reloads. The inline styles, such asstyle="max-height: 5vh"
on the logo image andstyle="margin: 0px"
on theel-button
, could be moved to the scoped CSS for better maintainability and to keep the template cleaner.