Skip to content

Commit

Permalink
✨ feat: 背景をグラデーションにする
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi0602 committed Jan 29, 2024
1 parent b56f0d4 commit 8e5dff0
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 1024px, #001E43 100%)',
},
},
});

0 comments on commit 8e5dff0

Please sign in to comment.