pager styles jsx to css
This commit is contained in:
1 parent
0ba0d74ea7
commit
4bf3b55557
2 files changed
+13
-14
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import './styles.css'
|
||||
|
||||
import Link from 'next/link'
|
||||
|
||||
const text = ['↑', '↓']
|
||||
@@ -14,20 +16,8 @@ export type PagerProps = {
|
||||
}
|
||||
|
||||
export const Pager: React.FC<PagerProps> = ({ url, position }) => (
|
||||
<div>
|
||||
<style jsx>{`
|
||||
div {
|
||||
text-align: center;
|
||||
margin-top: var(--size-m);
|
||||
margin-bottom: var(--size-m);
|
||||
}
|
||||
|
||||
span {
|
||||
margin: 0 var(--size-s);
|
||||
}
|
||||
`}</style>
|
||||
|
||||
<span>
|
||||
<div className={'pager'}>
|
||||
<span className={'pager icon'}>
|
||||
{text[i(position)]}
|
||||
</span>
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.pager {
|
||||
text-align: center;
|
||||
margin-top: var(--size-m);
|
||||
margin-bottom: var(--size-m);
|
||||
}
|
||||
|
||||
.pager .icon {
|
||||
margin: 0 var(--size-s);
|
||||
}
|
||||
Reference in new issue
Block a user