mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
refact: remove unused components
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import React from "react"
|
||||
import * as SC from "./styles"
|
||||
|
||||
export const ContentPage: React.FC = ({ children, ...restProps }) => {
|
||||
return (
|
||||
<SC.ContentPageWrapper {...restProps}>{children}</SC.ContentPageWrapper>
|
||||
)
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
import styled from "styled-components"
|
||||
|
||||
export const ContentPageWrapper = styled.div`
|
||||
width: calc(100% - 305px);
|
||||
margin-right: 305px;
|
||||
|
||||
@media screen and (max-width: 1200px) {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
`
|
||||
@@ -1,18 +0,0 @@
|
||||
import React, { FC } from "react"
|
||||
import * as SC from "./styles"
|
||||
|
||||
export interface IResourcesSidebarSectionProps {
|
||||
readonly title: string
|
||||
}
|
||||
|
||||
export const ResourcesSidebarSection: FC<IResourcesSidebarSectionProps> = ({
|
||||
title,
|
||||
children,
|
||||
}) => {
|
||||
return (
|
||||
<div>
|
||||
<SC.SidebarTitle>{title}</SC.SidebarTitle>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import styled from "styled-components"
|
||||
|
||||
export const SidebarTitle = styled.h3`
|
||||
text-transform: uppercase;
|
||||
`
|
||||
@@ -5,10 +5,6 @@ export const WavesTop: FC = props => {
|
||||
return <SC.StyledWavesTop {...props} />
|
||||
}
|
||||
|
||||
export const WavesTopTwo: FC = props => {
|
||||
return <SC.StyledWavesTopTwo {...props} />
|
||||
}
|
||||
|
||||
export const WavesBottom: FC = props => {
|
||||
return <SC.StyledWavesBottom {...props} />
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import styled, { css } from "styled-components"
|
||||
import WavesBottom from "../../images/waves-bot.svg"
|
||||
import WavesTop from "../../images/waves-top.svg"
|
||||
import WavesTopTwo from "../../images/waves-top2.svg"
|
||||
|
||||
const waves = css`
|
||||
display: block;
|
||||
@@ -18,12 +17,6 @@ export const StyledWavesTop = styled(WavesTop)`
|
||||
height: 87vh;
|
||||
`
|
||||
|
||||
export const StyledWavesTopTwo = styled(WavesTopTwo)`
|
||||
${waves};
|
||||
top: 0;
|
||||
height: 87vh;
|
||||
`
|
||||
|
||||
export const StyledWavesBottom = styled(WavesBottom)`
|
||||
${waves};
|
||||
bottom: 0;
|
||||
|
||||
Reference in New Issue
Block a user