mirror of
https://github.com/tlsnotary/website.git
synced 2026-01-08 22:38:08 -05:00
refactor: create components dir, move svg to images
This commit is contained in:
10
src/App.tsx
10
src/App.tsx
@@ -1,11 +1,9 @@
|
||||
import EthLogo from './EthLogo';
|
||||
import Starter from './Starter';
|
||||
import Projects from './Projects';
|
||||
import Footer from './Footer';
|
||||
import EthLogo from './components/EthLogo';
|
||||
import Starter from './components/Starter';
|
||||
import Projects from './components/Projects';
|
||||
import Footer from './components/Footer';
|
||||
import './App.css';
|
||||
|
||||
|
||||
|
||||
function App() {
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import eth from './images/eth-diamond-color.png';
|
||||
import eth from '../images/eth-diamond-color.png';
|
||||
import './EthLogo.css';
|
||||
|
||||
|
||||
@@ -9,4 +9,4 @@ function EthLogo() {
|
||||
);
|
||||
}
|
||||
|
||||
export default EthLogo;
|
||||
export default EthLogo;
|
||||
@@ -1,8 +1,8 @@
|
||||
import globe from './images/globe.svg';
|
||||
import github from './images/github.svg';
|
||||
import discord from './images/discord.svg';
|
||||
import twitter from './images/twitter.svg';
|
||||
import telegram from './images/telegram.svg';
|
||||
import globe from '../images/globe.svg';
|
||||
import github from '../images/github.svg';
|
||||
import discord from '../images/discord.svg';
|
||||
import twitter from '../images/twitter.svg';
|
||||
import telegram from '../images/telegram.svg';
|
||||
import './ProjectCard.css';
|
||||
import ColorHash from 'color-hash'
|
||||
|
||||
@@ -67,7 +67,7 @@ function ProjectCard(props: ProjectProps) {
|
||||
try {
|
||||
if (props.image) {
|
||||
return (
|
||||
<img className="card-img-top" src={require(`./images/${props.image}`)} alt={props.name} />
|
||||
<img className="card-img-top" src={require(`../images/${props.image}`)} alt={props.name} />
|
||||
);
|
||||
} else {
|
||||
return renderImage(props.short_name || props.name);
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
import logo from './images/pse-logo.svg';
|
||||
import arrow from './images/arrow.svg';
|
||||
import discord from './images/discord.svg';
|
||||
import twitter from './images/twitter.svg';
|
||||
import logo from '../images/pse-logo.svg';
|
||||
import arrow from '../images/arrow.svg';
|
||||
import discord from '../images/discord.svg';
|
||||
import twitter from '../images/twitter.svg';
|
||||
import './Starter.css';
|
||||
|
||||
function Starter() {
|
||||
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Reference in New Issue
Block a user