Skip to content

Commit 28668c0

Browse files
remove cap related things and refactor ui
1 parent 5ee197d commit 28668c0

File tree

5 files changed

+7
-25
lines changed

5 files changed

+7
-25
lines changed

src/App.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@
116116
117117
</style>
118118

119-
<div class='notice'>PLEASE DO NOT USE THIS WEBSITE. A new version of CAP is now available. Check it out <a href='https://cap.io'>here</a>.</div>
120-
121119
<Modals />
122120
<Toasts />
123121

src/components/Order.svelte

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,4 @@
287287

288288
</div>
289289

290-
{#if !$address}
291-
<div class='note'>CAP is an open protocol to trade crypto perpetuals with low fees. <a data-intercept="true" on:click={() => {showModal('Connect')}}>Connect your wallet</a> on Arbitrum to get started.</div>
292-
{:else if $address && balance * 1 == 0}
293-
<div class='note'><a href='https://docs.cap.finance/setting-up-your-wallet' target='_blank'>Bridge funds</a> to Arbitrum to start trading.</div>
294-
{/if}
295-
296-
297290
</div>

src/components/layout/Header.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,9 @@
8383
<div class='inner' class:home={!$currentPage || $currentPage == 'home'}>
8484

8585
<div class='left'>
86-
<a class='logo' class:active={!$currentPage || $currentPage == 'home'} href='/'>
87-
<img src='/logos/CAP.svg' title='CAP Home' alt='CAP Home' />
88-
</a>
86+
<!-- TODO (autonom): add Autonom logo here -->
8987
<a class='link' class:active={$currentPage == 'trade'} href='#/trade'>Trade</a>
9088
<a class='link' class:active={$currentPage == 'pool'} href='#/pool'>Pool</a>
91-
<a class='link' href='https://docs.cap.finance' target='_blank'>Docs</a>
9289
</div>
9390

9491
<div class='right'>

src/components/pages/Trade.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
grid-template-rows: calc(var(--ticker-height) + var(--chart-resolution-height) + var(--chart-height) + 3 * var(--grid-gap)) auto;
2727
background-color: var(--rich-black-fogra);
2828
position: absolute;
29-
top: calc(var(--header-height) + var(--grid-gap) + 44px);
29+
top: calc(var(--header-height) + var(--grid-gap));
3030
bottom: 0;
3131
left: 0;
3232
right: 0;

src/lib/utils.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,22 +165,16 @@ export function hideModal() {
165165

166166
// Routing
167167
export function loadRoute(path, isInitial) {
168-
if (!path || path == '/' || path.includes('/home')) {
169-
component.set(Home);
170-
currentPage.set('home');
171-
document.title = `Free Decentralized Perpetual Exchange | CAP`;
172-
} else if (path.includes('/trade')) {
168+
// TODO (autonom): As we do not want to have things related to CAP, we removed Home and Buy pages from the routes
169+
// However, still keeping those page implementation in the repo in case we want to implement smth similar to them.
170+
if (!path || path == '/' || path.includes('/trade')) {
173171
component.set(Trade);
174172
currentPage.set('trade');
175-
document.title = `Trade | CAP`;
173+
document.title = `Trade | Autonom`;
176174
} else if (path.includes('/pool')) {
177175
component.set(Pool);
178176
currentPage.set('pool');
179-
document.title = `Pool | CAP`;
180-
} else if (path.includes('/buy')) {
181-
component.set(Buy);
182-
currentPage.set('buy');
183-
document.title = `Buy CAP | CAP`;
177+
document.title = `Pool | Autonom`;
184178
}
185179
hydrateData();
186180
}

0 commit comments

Comments
 (0)