mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Tweaks and such
This commit is contained in:
parent
09c023c729
commit
3e2084636f
9
.editorconfig
Normal file
9
.editorconfig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
|
@ -1,49 +1,34 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2020": true,
|
||||
"node": true
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2020": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 11,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"react",
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"indent": [
|
||||
"error",
|
||||
2
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"react/prop-types": 0,
|
||||
"react/react-in-jsx-scope": 0,
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "latest"
|
||||
}
|
||||
"ecmaVersion": 11,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["react", "@typescript-eslint"],
|
||||
"rules": {
|
||||
"indent": ["error", 2],
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"quotes": ["error", "single"],
|
||||
"react/prop-types": 0,
|
||||
"react/react-in-jsx-scope": 0,
|
||||
"semi": ["error", "always"]
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules": {
|
||||
"declaration-empty-line-before": null
|
||||
}
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules": {
|
||||
"declaration-empty-line-before": null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { FC } from 'react';
|
|||
import BlogIcon from '../assets/svg/blog.svg';
|
||||
|
||||
type PostType = {
|
||||
id: string,
|
||||
id: string;
|
||||
title: string;
|
||||
content: string;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -45,11 +45,7 @@ export const Clock: FC = () => {
|
|||
}, []);
|
||||
|
||||
return (
|
||||
<time
|
||||
className={styles.clock}
|
||||
dateTime={time24}
|
||||
title={date}
|
||||
>
|
||||
<time className={styles.clock} dateTime={time24} title={date}>
|
||||
{time12}
|
||||
</time>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
"dev": "next dev",
|
||||
"export": "next export",
|
||||
"start": "next start",
|
||||
"lint": "eslint **/*.tsx *.ts *.js && stylelint styles/*.*css"
|
||||
"lint": "eslint **/*.tsx *.ts *.js && stylelint styles/*.*css",
|
||||
"prettier": "prettier --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "^9.5.2",
|
||||
|
|
@ -35,7 +36,6 @@
|
|||
"typescript": "^3.9.7"
|
||||
},
|
||||
"prettier": {
|
||||
"printWidth": 65,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
@import 'variables';
|
||||
|
||||
.clock {
|
||||
color:
|
||||
rgba(
|
||||
map-get($textColor, clock),
|
||||
map-get($textOpacity, clock)
|
||||
);
|
||||
color: rgba(map-get($textColor, clock), map-get($textOpacity, clock));
|
||||
font-size: map-get($fontSize, clock);
|
||||
|
||||
height: map-get($height, taskbar);
|
||||
|
|
@ -21,10 +17,9 @@
|
|||
z-index: map-get($zIndex, clock);
|
||||
|
||||
&:hover {
|
||||
background-color:
|
||||
rgba(
|
||||
invert(map-get($backgroundColor, taskbar)),
|
||||
map-get($backgroundColorOpacityOnHover, clock)
|
||||
);
|
||||
background-color: rgba(
|
||||
invert(map-get($backgroundColor, taskbar)),
|
||||
map-get($backgroundColorOpacityOnHover, clock)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
@import 'variables';
|
||||
|
||||
.taskbar {
|
||||
background-color:
|
||||
rgba(
|
||||
map-get($backgroundColor, taskbar),
|
||||
map-get($backgroundColorOpacity, taskbar)
|
||||
);
|
||||
background-color: rgba(
|
||||
map-get($backgroundColor, taskbar),
|
||||
map-get($backgroundColorOpacity, taskbar)
|
||||
);
|
||||
|
||||
height: map-get($height, taskbar);
|
||||
width: 100vw;
|
||||
|
|
|
|||
|
|
@ -22,11 +22,10 @@
|
|||
z-index: map-get($zIndex, taskbar-entry);
|
||||
|
||||
&:hover {
|
||||
background-color:
|
||||
rgba(
|
||||
invert(map-get($backgroundColor, taskbar)),
|
||||
map-get($backgroundColorOpacityOnHover, taskbar-entry)
|
||||
);
|
||||
background-color: rgba(
|
||||
invert(map-get($backgroundColor, taskbar)),
|
||||
map-get($backgroundColorOpacityOnHover, taskbar-entry)
|
||||
);
|
||||
}
|
||||
|
||||
svg {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user