This commit is contained in:
2025-02-09 22:08:07 +02:00
parent 8b353c1da7
commit e02c3f24eb
6 changed files with 20 additions and 15 deletions

View File

@@ -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));
}

View File

@@ -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 {

View File

@@ -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) => (

View File

@@ -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);

View File

@@ -23,7 +23,7 @@
flex-direction: column;
gap: 2rem;
width: 100%;
margin-top: calc(20vh - 240px);
margin-top: max(100px, calc(20vh - 240px));
}
.MainWidgets {

View File

@@ -139,10 +139,7 @@ export function IndexPage() {
onReset={() => setSearchTerm('')}
/>
) : (
<>
<WeatherWidget />
<AppList category="" apps={apps} />
</>
<AppList category="" apps={apps} />
)}
</>
)}