Skip to content

Commit

Permalink
remove fullpage.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LynithDev committed Dec 30, 2023
1 parent d6c7fad commit 17d8ba3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 44 deletions.
11 changes: 0 additions & 11 deletions apps/website/public/libs/fullpage.min.css

This file was deleted.

11 changes: 0 additions & 11 deletions apps/website/public/libs/fullpage.min.js

This file was deleted.

15 changes: 0 additions & 15 deletions apps/website/public/scripts/scroll.js

This file was deleted.

4 changes: 1 addition & 3 deletions apps/website/src/components/base/Section.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ interface Props extends HTMLAttributes<'section'> {
wrapperClass?: string
wFull?: boolean
hFull?: boolean
sectionClass?: boolean
}
const {
Expand All @@ -16,7 +15,6 @@ const {
wrapperClass = '',
wFull = true,
hFull = false,
sectionClass = true,
...props
} = Astro.props;
Expand All @@ -28,7 +26,7 @@ const twoColumnClasses = ` ${maxWidth === 'none' ? 'justify-center' : 'justify-c
const className = `max-w-[${maxWidth}] ${hFull ? 'min-h-screen' : 'h-auto'} ${wFull ? 'w-full' : `w-[${maxWidth}]`} px-5 md:p-0 flex gap-x-20 gap-y-4${twoColumn ? twoColumnClasses : ''}${props.class ? ` ${props.class}` : ''}`;
---

<section class={`${sectionClass ? 'section ' : ''}w-full outline-none flex justify-center ${wrapperClass ?? ''}`}>
<section class={`w-full outline-none flex justify-center ${wrapperClass ?? ''}`}>
<div class={className} {...props}>
{twoColumn
? (
Expand Down
2 changes: 0 additions & 2 deletions apps/website/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const {
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap" rel="stylesheet"/>

<title>{title}</title>
<script src="/libs/fullpage.min.js" defer></script>
<script src="/scripts/scroll.js" defer></script>
</head>

<body class="bg-gray-50 overflow-x-hidden">
Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/pages/projects/oneconfig.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import { Code } from 'astro:components';
</Section>

<div class="section bg-blue-75 flex flex-col justify-center items-center min-h-screen">
<Section sectionClass={false} maxWidth="1120px" wFull={false} class="pt-10 md:py-20 max-sm:h-screen">
<Section maxWidth="1120px" wFull={false} class="pt-10 md:py-20 max-sm:h-screen">
<div slot="left">
<!-- TODO: FIX Codeblock overflowing on mobile -->
<div class="max-sm:hidden">
Expand Down Expand Up @@ -95,7 +95,7 @@ import { Code } from 'astro:components';
</div>
</Section>

<Section sectionClass={false} maxWidth="1120px" wFull={false} class="py-10 md:py-20 gap-4 max-sm:h-screen">
<Section maxWidth="1120px" wFull={false} class="py-10 md:py-20 gap-4 max-sm:h-screen">
<div slot="left" class="flex flex-col gap-2 text-left items-start">
<Header size="xl" class="text-blue-500">Designed for users</Header>
<Paragraph class="text-blue-400 max-w-[500px]">
Expand Down

0 comments on commit 17d8ba3

Please sign in to comment.