Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Settings App :( #314

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23,204 changes: 19,476 additions & 3,728 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@testing-library/user-event": "^12.1.10",
"@widgetbot/react-embed": "^1.4.0",
"axios": "^0.21.1",
"container-query-polyfill": "^0.1.2",
"node-sass": "^7.0.0",
"react": "^17.0.2",
"react-canvas-draw": "^1.1.1",
Expand Down
Binary file added public/img/icon/settings/Accessibility.webp
Binary file not shown.
Binary file added public/img/icon/settings/Accounts.webp
Binary file not shown.
Binary file added public/img/icon/settings/Apps.webp
Binary file not shown.
Binary file added public/img/icon/settings/Bluetooth & devices.webp
Binary file not shown.
Binary file added public/img/icon/settings/Gaming.webp
Binary file not shown.
Binary file added public/img/icon/settings/Network & internet.webp
Binary file not shown.
Binary file added public/img/icon/settings/Personalisation.webp
Binary file not shown.
Binary file added public/img/icon/settings/Privacy & security.webp
Binary file not shown.
Binary file added public/img/icon/settings/System.webp
Binary file not shown.
Binary file added public/img/icon/settings/Time & language.webp
Binary file not shown.
Binary file added public/img/icon/settings/Windows Update.webp
Binary file not shown.
Binary file added public/img/icon/settings/defAccount.webp
Binary file not shown.
Binary file not shown.
350 changes: 350 additions & 0 deletions src/containers/applications/apps/assets/settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
.settingsApp {
min-width: 720px;
}

.settingsApp .restWindow {
--bg: #eff4f9;
--txt_clr-rgb: 0 0 0;
--clr_prm: #0067c0;
--scroll: rgb(255 255 255 / 80%);

background: var(--bg);
color: rgb(var(--txt_clr-rgb));
font-size: 14px;
height: 100%;

// container: inline-size / appWrapper;

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

nav {
position: absolute;
left: 0;
width: 300px;
height: 100%;
display: flex;
flex-direction: column;

.nav_top {
.account {
border-radius: 4px;
display: flex;
align-items: center;
gap: 16px;
padding: 8px;
margin: 8px;

&:hover {
background: rgb(var(--txt_clr-rgb) / 3.33%);
}

div p {
&:first-child {
font-weight: 500;
}
&:last-child {
font-size: smaller;
}
}
}

.search {
background: white;
height: 32px;
width: calc(300px - 32px);
border: 0;
border-bottom: 1px solid var(--clr_prm);
border-radius: 4px;
padding: 8px;
margin: 8px 16px 20px;

&:hover {
background: rgb(255 255 255 / 33%);
}
&:focus {
border-bottom: 2px solid var(--clr_prm);
}
&:focus-visible {
outline: none;
}

&::placeholder {
color: rgb(var(--txt_clr-rgb) / 66%);
}
}
}

.nav_bottom {
display: flex;
flex-direction: column;
overflow: overlay;
position: relative;

.navLink {
position: relative;
overflow: hidden;
height: 36px;
padding-left: 7px;
margin: 2px 16px;
border-radius: 4px;
display: flex;
align-items: center;
flex-shrink: 0;

&:hover,
&.active {
background: rgb(var(--txt_clr-rgb) / 3.33%);
}

img {
margin: 0 10.5px 0 7px;
}
}

.marker {
position: absolute;
background: var(--clr_prm);
height: 16px;
width: 3px;
border-radius: 3px;
top: 12px;
left: 16px;
transition: top 300ms cubic-bezier(1, 0, 0, 1);
}

@for $i from 1 to 12 {
.navLink:nth-child(#{$i}).active ~ .marker {
top: ((40 * ($i - 1)) + 12) + px;
}
}
}
}

main {
margin-left: 300px;
overflow: hidden;
display: flex;
flex-direction: column;

.sysTop {
width: min(100%, 1000px);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 8px 0 14px;
gap: 8px;

.left {
display: flex;
align-items: center;

.device_img {
height: 70px;
border: 5px solid black;
border-radius: 4px;
}
.column_device {
margin-left: 16px;

.device_name {
font-size: 18px;
font-weight: 500;
}
.device_model {
color: rgb(var(--txt_clr-rgb) / 90%);
}
.device_rename {
color: var(--clr_prm);
}
}
}

.right {
display: flex;

.column {
display: flex;
align-items: center;
border-radius: 4px;
padding: 8px;
&:hover {
background: rgb(var(--txt_clr-rgb) / 5%);
}

p {
font-weight: 500;
padding: 0 12px;

.column_lower {
color: rgb(var(--txt_clr-rgb) / 60%);
font-size: 13px;
font-weight: 400;
}
}
}
}
}

h1 {
padding: 14px 24px;
font-weight: 500;
font-size: 28px;
}

.tilesCont {
padding: 0 24px 44px;
overflow-y: overlay;
display: flex;
flex-direction: column;
gap: 4px;
animation: slideUp 0.2s;

.tile {
width: min(100%, 1000px);
min-height: 67px;
display: flex;
align-items: center;
background: rgb(255 255 255 / 67%);
border-radius: 4px;
padding: 7px 42px 7px 0;
border: 1px solid rgb(0 0 0 / 10%);
position: relative;

&:hover {
background: rgb(255 255 255 / 33%);
}
&::after {
content: ">";
transform: scaleY(2);
position: absolute;
right: 16px;
}
span {
font-size: 20px;
margin: 0 21px 0 17.5px;
font-family: SettingsIcons;
}
.tile_desc {
color: rgb(var(--txt_clr-rgb) / 66%);
font-size: 12.33px;
}

&.square {
width: 220px;
height: 220px;
flex-direction: column;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 0;
font-weight: 500;

span {
font-size: 48px;
}
}

&.thin-blue {
min-height: unset;
height: unset;
color: var(--clr_prm);
justify-content: center;
margin: 4px 0;
}

&.thin-blue::after,
&.square::after {
display: none;
}
}

.subHeading {
font-weight: 500;
height: 45px;
display: flex;
align-items: center;
flex-shrink: 0;
}

.spacer {
padding: 8px;
}
}
}

.navMenuBtn {
display: none;
}

// @container appWrapper size(max-width: 800px) {
// .navMenuBtn {
// display: flex;
// position: absolute;
// top: 8px;
// right: 8px;
// padding: 12px;
// border-radius: 6px;

// &:hover {
// background: rgb(var(--txt_clr-rgb) / 5%);
// }

// svg {
// transition: all 0.1s;
// }
// &:active svg {
// transform: scaleX(0.67);
// }
// }

// main {
// margin-left: 0;
// }
// nav {
// background: var(--bg);
// z-index: 999;
// transform: translateX(-100%);
// transition: all 0.2s cubic-bezier(0, 0, 0, 1);

// &.open {
// transform: translateX(0);
// }
// }
// }
}
body[data-theme="dark"] .settingsApp .restWindow {
--bg: #202020;
--txt_clr-rgb: 255 255 255;
--clr_prm: #4cc2ff;
--scroll: rgb(44 44 44 / 80%);

nav .nav_top .search {
background: rgb(255 255 255 / 3.33%);

&:hover {
background: rgb(255 255 255 / 5%);
}
}

main .tilesCont .tile {
background: rgb(255 255 255 / 5%);

&:hover {
background: rgb(255 255 255 / 10%);
}
}
}

@keyframes slideUp {
from {
transform: translateY(70px);
}
to {
transform: translateY(0);
}
}
Loading