aboutsummaryrefslogtreecommitdiffstats
path: root/pages/index.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-08-16 21:22:32 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-08-16 21:24:42 +0200
commiteb28244fc8f98e28728c7b3f951e102b9cc56590 (patch)
tree76237e414671730371f87c8e263a18c2d2e8c17f /pages/index.js
parentb43d34c0136552cd2d83258fb5523bb873177908 (diff)
downloadmy_apps-eb28244fc8f98e28728c7b3f951e102b9cc56590.tar.gz
my_apps-eb28244fc8f98e28728c7b3f951e102b9cc56590.tar.bz2
my_apps-eb28244fc8f98e28728c7b3f951e102b9cc56590.zip
styles moved to scss
Diffstat (limited to 'pages/index.js')
-rw-r--r--pages/index.js25
1 files changed, 6 insertions, 19 deletions
diff --git a/pages/index.js b/pages/index.js
index 9df0acf..52421ea 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,3 +1,4 @@
+import styles from 'styles/Main.module.scss'
import React, { useState ,useRef } from 'react'
import useUser from 'lib/useUser'
import {Layout, App} from 'components'
@@ -21,7 +22,11 @@ const Home = () => {
<>
{
Object.keys(appList).map(appName => (
- <div key={`${appName}_icon`} onClick={() => open(appName, apps, setApps)}>
+ <div
+ key={`${appName}_icon`}
+ className={styles.icon}
+ onClick={() => open(appName, apps, setApps)}
+ >
<img src={`./${appName.toLowerCase()}.svg`} alt={`${appName} Icon`} />
<p>{appName}</p>
</div>
@@ -41,24 +46,6 @@ const Home = () => {
</App>
);
})}
- <style jsx>{`
- div {
- text-decoration: none;
- display: inline-block;
- width: 4em;
- cursor: pointer;
- }
-
- img {
- width: 4em;
- }
-
- p {
- padding-top: .5em;
- text-align: center;
- color: #333;
- }
- `}</style>
</>
</Layout>
)