styles
This commit is contained in:
@@ -27,5 +27,5 @@
|
||||
|
||||
.AppList.Pill {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
height: 100vh;
|
||||
width: max(25vw, 180px);
|
||||
width: max(22vw, 180px);
|
||||
padding-bottom: 1.5rem;
|
||||
|
||||
backdrop-filter: var(--bg-blur-lg);
|
||||
@@ -22,7 +22,16 @@
|
||||
.MenuWrapper {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 2rem;
|
||||
|
||||
@media (min-width: em(250px)) {
|
||||
margin-top: 0;
|
||||
align-items: center;
|
||||
|
||||
> .Menu {
|
||||
gap: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.Menu {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Tooltip } from '@mantine/core';
|
||||
import { Box, Tooltip } from '@mantine/core';
|
||||
import { IconImageInPicture } from '@tabler/icons-react';
|
||||
import { useSetAtom } from 'jotai';
|
||||
import { useEffect, useState } from 'react';
|
||||
@@ -6,6 +6,7 @@ import { onNextBackgroundAtom } from '~/atoms';
|
||||
import { FavoriteBackground } from '../widgets/favorite-background';
|
||||
import { Settings } from '../widgets/settings';
|
||||
import style from './sidebar.module.css';
|
||||
import { WeatherWidget } from '../widgets/weather-widget';
|
||||
|
||||
type SidebarProps = {
|
||||
categories?: string[];
|
||||
@@ -26,6 +27,9 @@ export function Sidebar({ categories, activeCategory, selectCategory }: SidebarP
|
||||
|
||||
return (
|
||||
<div className={`${style.Sidebar} ${isInitialLoading ? style.Loading : ''}`}>
|
||||
<Box visibleFrom="md">
|
||||
<WeatherWidget />
|
||||
</Box>
|
||||
<div className={style.MenuWrapper}>
|
||||
<ul className={style.Menu}>
|
||||
{categories?.map((category) => (
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
.Weather {
|
||||
flex-grow: 1;
|
||||
max-width: 300px;
|
||||
min-width: 200px;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
padding: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
border-radius: var(--border-radius-default);
|
||||
|
||||
backdrop-filter: var(--bg-blur);
|
||||
background-color: var(--color-bg-dark);
|
||||
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
width: 100%;
|
||||
margin-top: calc(20vh - 240px);
|
||||
margin-top: max(100px, calc(20vh - 240px));
|
||||
}
|
||||
|
||||
.MainWidgets {
|
||||
|
||||
@@ -139,10 +139,7 @@ export function IndexPage() {
|
||||
onReset={() => setSearchTerm('')}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<WeatherWidget />
|
||||
<AppList category="" apps={apps} />
|
||||
</>
|
||||
<AppList category="" apps={apps} />
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user