Skip to content

Commit

Permalink
Merge pull request #368 from uyupun/feat/308_layout
Browse files Browse the repository at this point in the history
背景をグラデーションにする
  • Loading branch information
takashi0602 authored Feb 6, 2024
2 parents 953071b + 957a30d commit 60151ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { cica } from '@/styles/font';
import type { AppProps } from 'next/app';
import type { FC } from 'react';

import '@/styles/layout.css';

const MyApp: FC<AppProps> = ({ Component, pageProps }) => {
return (
<>
Expand Down
11 changes: 11 additions & 0 deletions src/styles/layout.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { globalStyle } from '@vanilla-extract/css';

globalStyle('body', {
minHeight: '100dvh',
background: 'linear-gradient(to bottom, #0078B7 0, #001E43 667px, #001E43 100%)',
'@media': {
'screen and (min-width: 768px)': {
background: 'linear-gradient(to bottom, #0078B7 0, #001E43 1080px, #001E43 100%)',
},
},
});

0 comments on commit 60151ab

Please sign in to comment.