Skip to content

Commit

Permalink
fix(control center): articles image cropped (#18)
Browse files Browse the repository at this point in the history
* fix(control center): articles image cropped

* fix: urls of oraidex features
  • Loading branch information
quanpt239 authored Sep 30, 2024
1 parent b77cc65 commit 3a62bad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
13 changes: 2 additions & 11 deletions src/pages/ControlCenter/components/control-center-articles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const ControlCenterArticles = () => {
return (
<>
<div className={cx('article-section')}>
<div className={cx('article-section-wrapper-1', 'grid')}>
<div className={cx('article-section-wrapper-2', 'grid')}>
<div className={cx('apps-list-wrapper', 'grid')}>
<div className={cx('apps-list', 'grid')}>
<div>
<span className={cx('sec-title')}>Oraichain Academy</span>
<Link to="https://academy.orai.io/" target="blank">
Expand Down Expand Up @@ -57,13 +57,10 @@ const ControlCenterArticles = () => {
alt="cover"
style={{
width: '100%',
height: 160,
objectFit: 'cover',
borderTopLeftRadius: 8,
borderTopRightRadius: 8
}}
height={160}
width={160}
/>
<div className={cx('noti-content')}>
<div style={{ display: 'flex', flexDirection: 'column' }}>
Expand All @@ -87,13 +84,10 @@ const ControlCenterArticles = () => {
alt="cover"
style={{
width: '100%',
height: 160,
objectFit: 'cover',
borderTopLeftRadius: 8,
borderTopRightRadius: 8
}}
height={160}
width={160}
/>
<div className={cx('noti-content')}>
<div style={{ display: 'flex', flexDirection: 'column' }}>
Expand All @@ -117,13 +111,10 @@ const ControlCenterArticles = () => {
alt="cover"
style={{
width: '100%',
height: 160,
objectFit: 'cover',
borderTopLeftRadius: 8,
borderTopRightRadius: 8
}}
height={160}
width={160}
/>
<div className={cx('noti-content')}>
<div style={{ display: 'flex', flexDirection: 'column' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ControlCenter/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const tokenAction = [
},
{
title: 'Swap tokens with OraiDEX',
link: 'https://oraidex.io/bridge'
link: 'https://app.oraidex.io/bridge'
}
];

Expand Down
6 changes: 3 additions & 3 deletions src/pages/ControlCenter/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@
.article-section {
margin-top: 64px;

.article-section-wrapper-1 {
.apps-list-wrapper {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;

.article-section-wrapper-2 {
.apps-list {
display: grid;
grid-template-rows: repeat(2, minmax(0, 1fr));
}
Expand Down Expand Up @@ -556,7 +556,7 @@

.article-section {
display: block;
.article-section-wrapper-1 {
.apps-list-wrapper {
display: block;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ControlCenter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ControlCenter = () => {
))}
<div className={cx('tokens-wrapper')}>
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width: '100%' }}>
<a href="https://oraidex.io/universalswap" target="blank" style={{ color: '#B798EA' }}>
<a href="https://app.oraidex.io/universalswap" target="blank" style={{ color: '#B798EA' }}>
Swap
</a>
</div>
Expand Down

0 comments on commit 3a62bad

Please sign in to comment.