Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive support for Top #27

Merged
merged 11 commits into from
Oct 9, 2024
1 change: 1 addition & 0 deletions frontend/apps/service-site/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config: StorybookConfig = {
}
return config
},
staticDirs: ["../public"],
}

export default config
7 changes: 6 additions & 1 deletion frontend/apps/service-site/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Metadata } from 'next'
import type { Metadata, Viewport } from 'next'
import '@/styles/globals.css'
import { Footer, Header } from '@/components'
import type { Lang } from '@/features/i18n'
Expand All @@ -9,6 +9,11 @@ export const metadata: Metadata = {
description: 'Liam blog',
}

export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻


export default function RootLayout({
children,
params: { lang },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,32 @@
align-items: flex-end;
}

@media screen and (max-width: 1024px) {
.footer {
padding: var(--spacing-10, 40px);
}
}

@media screen and (max-width: 768px) {
.footer {
padding: var(--spacing-10, 40px) var(--spacing-4, 16px) var(--spacing-8, 32px);
}
}

.logoContainer {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--spacing-4, 16px);
}

@media screen and (max-width: 768px) {
.logoContainer {
padding-bottom: var(--spacing-2, 8px);
}
}


.text {
color: var(--foreground);
font-family: var(--main-font);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,26 @@
height: var(--default-header-height);
padding: 0 var(--default-page-margin);
margin: 0 auto;
background-color: var(--background);
background-color: var(--global-background);
display: flex;
align-items: center;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}

@media screen and (max-width: 1024px) {
.header {
padding: 0 var(--spacing-10, 40px);
}
}

@media screen and (max-width: 768px) {
.header {
padding: 0 var(--spacing-4, 16px);
}
}

.h1 {
Expand Down
Loading