Skip to content

Commit

Permalink
refactor: consolidate into src
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrastopoulos committed Feb 25, 2024
1 parent 4619376 commit 9d85e70
Show file tree
Hide file tree
Showing 49 changed files with 81 additions and 80 deletions.
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import million from "million/compiler";
import million from 'million/compiler';

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand All @@ -12,7 +12,7 @@ const nextConfig = {
};

const millionConfig = {
auto: true,// if you're using RSC: auto: { rsc: true },
auto: true, // if you're using RSC: auto: { rsc: true },
};

export default million.next(nextConfig, millionConfig);
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"build": "next build",
"start": "next start",
"test": "bun test",
"lint": "bunx eslint src pages",
"lint-fix": "bunx eslint --fix src pages",
"format": "prettier --write src pages",
"lint": "bunx eslint src",
"lint-fix": "bunx eslint --fix src",
"format": "prettier --write src",
"coverage": "bun test --coverage"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Event/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.eventContainer {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/components/EventCarousel/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.carouselContainer {
padding: 2em 0 5em 0;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footer/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.footer {
bottom: 0;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Gradient/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.canvas {
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Hero/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

$hero-gradient: linear-gradient(#0003, #000a 30%, #000e 60%, #000f 80%);

Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.navbarContainer {
top: 0;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Project/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.projectContainer {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/components/RoundButton/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.roundButton {
width: fit-content;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Timeline/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.timelineContainer {
border-collapse: collapse;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Typography/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.centered {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/icons/AfterEffectsIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function AfterEffectsIcon({
Expand Down
4 changes: 2 additions & 2 deletions src/icons/BaseIcon/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

%baseSvgIconContainer {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/icons/FacebookIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from 'styles/index.module.scss';
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function FacebookIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/FigmaIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from 'styles/index.module.scss';
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function FigmaIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/FlutterIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function FlutterIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/IllustratorIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function IllustratorIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/InstagramIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function InstagramIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/JavaIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function JavaIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/JavaScriptIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function JavaScriptIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/LinkIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function LinkIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/MattermostIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function MattermostIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/MediumIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function MediumIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/MongoDbIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function MongoDbIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/NextJsIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function NextJsIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/OpenStreetMapIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function OpenStreetMapIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/ProcreateIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function ProcreateIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/ReactIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function ReactIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/SlackIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function SlackIcon({
Expand Down
2 changes: 1 addition & 1 deletion src/icons/TailwindIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseIcon from '../BaseIcon';
import { SvgIconProps } from '../SvgIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';

export default function TailwindIcon({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/icons/TypeScriptIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseIcon from '../BaseIcon';
import styles from '../styles/index.module.scss';
import styles from 'styles/index.module.scss';
import { SvgIconProps } from '../SvgIcon';

export default function TypeScriptIcon({
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/BaseLayout/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/styles/variables.scss';
@import '~/styles/mixins.scss';
@import 'styles/variables.scss';
@import 'styles/mixins.scss';

.pageContainer {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions pages/_app.tsx → src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { library } from '@fortawesome/fontawesome-svg-core';
import { faCircle as faCircleHollow } from '@fortawesome/free-regular-svg-icons';
import { faBars, faCircle } from '@fortawesome/free-solid-svg-icons';
import type { AppProps } from 'next/app';
import '../styles/globals.scss';
import 'styles/globals.scss';

function MyApp({ Component, pageProps }: AppProps) {
library.add(faBars);
library.add(faCircle);
library.add(faCircleHollow);
return <Component {...pageProps} />;
return <Component suppressHydrationWarning {...pageProps} />;
}

export default MyApp;
File renamed without changes.
18 changes: 9 additions & 9 deletions pages/design.tsx → src/pages/design.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Image from 'next/image';
import Project from '../src/components/Project';
import Timeline from '../src/components/Timeline';
import Typography from '../src/components/Typography';
import AfterEffectsIcon from '../src/icons/AfterEffectsIcon';
import FigmaIcon from '../src/icons/FigmaIcon';
import IllustratorIcon from '../src/icons/IllustratorIcon';
import ProcreateIcon from '../src/icons/ProcreateIcon';
import BaseLayout from '../src/layouts/BaseLayout';
import styles from '../styles/Design.module.scss';
import Project from 'components/Project';
import Timeline from 'components/Timeline';
import Typography from 'components/Typography';
import AfterEffectsIcon from 'icons//AfterEffectsIcon';
import FigmaIcon from 'icons//FigmaIcon';
import IllustratorIcon from 'icons//IllustratorIcon';
import ProcreateIcon from 'icons//ProcreateIcon';
import BaseLayout from 'layouts/BaseLayout';
import styles from 'styles/Design.module.scss';

export default function Design() {
return (
Expand Down
10 changes: 5 additions & 5 deletions pages/events.tsx → src/pages/events.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Image from 'next/image';
import Event from '../src/components/Event';
import Timeline from '../src/components/Timeline';
import Typography from '../src/components/Typography';
import BaseLayout from '../src/layouts/BaseLayout';
import styles from '../styles/Events.module.scss';
import Event from 'components/Event';
import Timeline from 'components/Timeline';
import Typography from 'components/Typography';
import BaseLayout from 'layouts/BaseLayout';
import styles from 'styles/Events.module.scss';

export default function Events() {
return (
Expand Down
12 changes: 6 additions & 6 deletions pages/index.tsx → src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Image from 'next/legacy/image';
import EventCarousel from '../src/components/EventCarousel';
import Hero from '../src/components/Hero';
import RoundButton from '../src/components/RoundButton';
import Typography from '../src/components/Typography';
import BaseLayout from '../src/layouts/BaseLayout';
import styles from '../styles/Home.module.scss';
import EventCarousel from 'components/EventCarousel';
import Hero from 'components/Hero';
import RoundButton from 'components/RoundButton';
import Typography from 'components/Typography';
import BaseLayout from 'layouts/BaseLayout';
import styles from 'styles/Home.module.scss';

export default function Home() {
return (
Expand Down
10 changes: 5 additions & 5 deletions pages/tech.tsx → src/pages/tech.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Image from 'next/image';
import Project from '../src/components/Project';
import Timeline from '../src/components/Timeline';
import Typography from '../src/components/Typography';
import BaseLayout from '../src/layouts/BaseLayout';
import styles from '../styles/Tech.module.scss';
import Project from 'components/Project';
import Timeline from 'components/Timeline';
import Typography from 'components/Typography';
import BaseLayout from 'layouts/BaseLayout';
import styles from 'styles/Tech.module.scss';

export default function Tech() {
return (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions styles/variables.scss → src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ $text-size-subtitle-xs: 0.4rem;
$container-padding: 1em 1.5em 1em 1.5em;

$box-shadow:
0 1px 2px rgba(0, 0, 0, 0.07),
0 2px 4px rgba(0, 0, 0, 0.07),
0 4px 8px rgba(0, 0, 0, 0.07),
0 8px 16px rgba(0, 0, 0, 0.07);
0 1px 2px rgba(0, 0, 0, 0.07),
0 2px 4px rgba(0, 0, 0, 0.07),
0 4px 8px rgba(0, 0, 0, 0.07),
0 8px 16px rgba(0, 0, 0, 0.07);
$text-shadow: 1px 1px 10px #0005;

$button-hover: #d9d9d9;
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"baseUrl": "src",
"useDefineForClassFields": true,
"lib": [
"ESNext",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
"include": ["vite.config.ts", "next.config.js"]
}

0 comments on commit 9d85e70

Please sign in to comment.