Skip to content

Commit

Permalink
update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenzo-Wada committed Nov 5, 2023
1 parent d453d85 commit c017179
Show file tree
Hide file tree
Showing 15 changed files with 16,441 additions and 11,645 deletions.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
28 changes: 0 additions & 28 deletions src/app/Eyecatch/index.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions src/app/Header/index.tsx

This file was deleted.

75 changes: 0 additions & 75 deletions src/app/Skill/index.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/app/Skill/skill.css.ts

This file was deleted.

5 changes: 3 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import '@radix-ui/themes/styles.css';
import '~/styles/globalStyles.css';
import '~/styles/theme-config.css';
import type { Metadata } from 'next';
import dynamic from 'next/dynamic';
import { Caveat } from 'next/font/google';
import type { ReactNode } from 'react';

import { Cursor } from '~/app/Cursor';
import { Header } from '~/app/Header';
import { Cursor } from '~/components/Cursor';
const Header = dynamic(() => import('~/components/Header'));

interface Props {
children: ReactNode;
Expand Down
6 changes: 3 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { NextPage } from 'next';
import dynamic from 'next/dynamic';

import { Eyecatch } from '~/app/Eyecatch';
import { Skills } from '~/app/Skill';

const Eyecatch = dynamic(() => import('~/sections/Eyecatch'));
const Skills = dynamic(() => import('~/sections/Skill'));

const TopPage: NextPage = () => {
return (
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Box, Button, Flex, Text } from '@radix-ui/themes';

import * as style from '~/components/Header/header.css';

const Header = () => {
return (
<section>
<Box className={style.wrapper} position={'sticky'} p={'3'}>
<Flex display={'flex'} align={'center'} justify={'between'}>
<Text weight={'bold'} size={'6'}>
{"Kenzo's Portfolio"}
</Text>
<Button className={style.FilledButton}>🤝 contact me</Button>
</Flex>
</Box>
</section>
);
};

export default Header;
File renamed without changes.
31 changes: 31 additions & 0 deletions src/sections/Eyecatch/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Button, Container, Flex, Text } from '@radix-ui/themes';

import * as style from '~/sections/Eyecatch/eyecatch.css';

const Eyecatch = () => {
return (
<section>
<Flex direction={'column'} gap={'6'} mt={'9'}>
<Container>
<Text weight={'bold'} size={'9'} className={style.text}>
Kenzo Wada.
<br />
Modern, Young and Friendly Frontend Enginner Ever.
</Text>
</Container>
<Container>
<Flex gap={'6'}>
<Button size={'4'} variant="outline" className={style.OutlinedButton}>
❤️ about me
</Button>
<Button size={'4'} className={style.FilledButton}>
🤝 Contact Me!!
</Button>
</Flex>
</Container>
</Flex>
</section>
);
};

export default Eyecatch;
71 changes: 71 additions & 0 deletions src/sections/Skill/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { Box, Container, Flex, Text } from '@radix-ui/themes';

import * as style from '~/sections/Skill/skill.css';

const skillData = [
{
title: 'Language',
levels: {
Skilled: [{ name: 'TypeScript' }, { name: 'JavaScript' }],
Able: [{ name: 'Go' }, { name: 'Python' }],
Interested: [{ name: 'Rust' }, { name: 'Dart' }],
},
},
{
title: 'Frontend Framework',
levels: {
Skilled: [{ name: 'React.js' }, { name: 'Next.js' }],
Able: [{ name: 'Astro.js' }, { name: 'Gatsby' }],
Interested: [{ name: 'Solid.js' }, { name: 'Svelte' }, { name: 'Remix' }, { name: 'qwik' }],
},
},
{
title: 'Runtime',
levels: {
Skilled: [{ name: 'Node.js' }],
Able: [{ name: 'bun' }],
Interested: [{ name: 'Deno' }],
},
},
];

const Skills = () => {
return (
<Flex direction="column" gap="6" mt="9">
<Container id="skills">
<Flex direction="column" gap="6">
<Text weight="bold" size="9">
# Skills.
</Text>
<Flex gap={'9'} justify={'between'} wrap={'wrap'}>
{skillData.map((category, categoryIndex) => (
<Flex direction="column" gap="3" key={categoryIndex}>
<Text weight="bold" size="8">
[{category.title}]
</Text>
{Object.entries(category.levels).map(([level, skills], levelIndex) => (
<Flex direction="column" gap="3" key={levelIndex}>
<Box>
<Text size={'7'} weight={'bold'} className={style.underlinedText}>
- {level}
</Text>
</Box>
<Flex gap="6" wrap="wrap">
{skills.map((skill, skillIndex) => (
<Flex key={skillIndex} align="center" gap="3">
<Text size="6">{skill.name}</Text>
</Flex>
))}
</Flex>
</Flex>
))}
</Flex>
))}
</Flex>
</Flex>
</Container>
</Flex>
);
};

export default Skills;
7 changes: 7 additions & 0 deletions src/sections/Skill/skill.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { style } from '@vanilla-extract/css';

const underlinedText = style({
background: 'linear-gradient(transparent 60%, #fbe32d 40%)',
});

export { underlinedText };
Loading

0 comments on commit c017179

Please sign in to comment.