Skip to content

Commit

Permalink
fix(oracle): fix landing (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly authored Nov 25, 2023
1 parent 116cea7 commit eeba2d1
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 46 deletions.
38 changes: 38 additions & 0 deletions src/containers/home/Electricity.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.electricity {
display: flex;
justify-content: space-between;
align-items: center;

position: absolute;
left: 0;
right: 0;
top: 20px;
opacity: 0.5;
z-index: -1;

.line {
width: 100%;
}

&::before {
content: '';
position: absolute;
background: #000;
width: 100%;
height: 100%;
z-index: -1;
top: 0;
left: 0;
bottom: 0;
opacity: 0.7;
}
}

// .electricity-svg {
// stroke: #3ab793;
// stroke-width: 5;
// }

.electricityLineRect {
fill: rgba(0, 0, 0, 0) !important;
}
17 changes: 4 additions & 13 deletions src/containers/home/electricity.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
import { useAppData } from 'src/contexts/appData';
import styles from './Electricity.module.scss';

const M = Math;
const DOC = document;
Expand Down Expand Up @@ -92,24 +93,14 @@ function Electricity() {
}, [block]);

return (
<div
style={{
zIndex: '-1',
width: '100%',
padding: ' 0 20px',
position: 'absolute',
opacity: 0.5,
}}
className="electricity"
>
<div className="line">
<div className={styles.electricity}>
<div className={styles.line}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2050 80">
<g id="lightningContainer">
<rect
className={styles.electricityLineRect}
width="2050"
height="80"
fill="#000000"
id="electricityLineRect"
/>
{stage && (
<g
Expand Down
Empty file removed src/containers/home/styles.scss
Empty file.
21 changes: 20 additions & 1 deletion src/pages/Learn/Learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,26 @@ import KeywordButton from '../Search/components/KeywordButton/KeywordButton';
import styles from './Learn.module.scss';
import { useBackend } from 'src/contexts/backend';
import TitleText from '../Search/components/TitleText/TitleText';
import { learningListConfig } from '../Search/Search';
// import { learningListConfig } from '../Search/Search';

const learningListConfig = [
{
title: 'upgrade',
text: 'your intelligence to superintelligence',
},
{
title: 'spread',
text: 'your content cheaper',
},
{
title: 'upload',
text: (
<>
your brain into eternity, <br /> and more
</>
),
},
];

function Learn() {
const [ask, setAsk] = useState('');
Expand Down
3 changes: 3 additions & 0 deletions src/pages/Search/Search.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ $mobile-breakpoint: 480px;

padding: 0 10px;

// not good, need fix wrapper
margin-bottom: 100px;

@media (width <= $mobile-breakpoint) {
// for graph out screen position
overflow-x: hidden;
Expand Down
32 changes: 0 additions & 32 deletions src/style/home.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,3 @@
.electricity {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.electricity::before {
content: '';
position: absolute;
background: #000;
width: 100%;
height: 100%;
top: 0;
left: 0;
bottom: 0;
opacity: 0.7;
}

.electricity .line {
width: 100%;
}

.electricity-svg {
stroke: #3ab793;
stroke-width: 5;
}

#electricityLineRect {
fill: rgba(0, 0, 0, 0);
}

.btn-home {
height: 42px;
white-space: nowrap;
Expand Down

0 comments on commit eeba2d1

Please sign in to comment.