Skip to content

Commit

Permalink
💄 make header sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenzo-Wada committed Sep 1, 2023
1 parent c848b18 commit e093fa4
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 5 deletions.
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ const nextConfig = {
trailingSlash: true,
};

module.exports = withVanillaExtract(nextConfig);
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})

module.exports = withBundleAnalyzer(withVanillaExtract(nextConfig));
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"analyze": "ANALYZE=true next build",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
Expand All @@ -20,6 +21,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@next/bundle-analyzer": "^13.4.19",
"@storybook/addon-essentials": "^7.4.0-alpha.2",
"@storybook/addon-interactions": "^7.4.0-alpha.2",
"@storybook/addon-links": "^7.4.0-alpha.2",
Expand Down
88 changes: 88 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}
3 changes: 1 addition & 2 deletions src/app/Header/header.css.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { style } from '@vanilla-extract/css';

const wrapper = style({
padding: '12px',
marginBottom: '24px',
backgroundColor: '#FFFFFF',
boxShadow: '0px 5px 15px 0px rgba(0, 0, 0, 0.35)',
borderRadius: '12px',
top: '24px'
});

const FilledButton = style({
Expand Down
2 changes: 1 addition & 1 deletion src/app/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as style from '~/app/Header/header.css';

export const Header: FC = () => {
return (
<Box className={style.wrapper}>
<Box className={style.wrapper} position={'sticky'} p={'3'}>
<Flex display={'flex'} align={'center'} justify={'between'}>
<Text weight={'bold'} size={'6'}>
{"Kenzo's Portfolio"}
Expand Down
1 change: 1 addition & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { NextPage } from 'next';
import { Eyecatch } from '~/app/Eyecatch';
import { Skills } from '~/app/Skill';


const TopPage: NextPage = () => {
return (
<main>
Expand Down
Loading

0 comments on commit e093fa4

Please sign in to comment.