Skip to content

Commit

Permalink
Merge pull request #6 from 1xINTERNET/19-aliases
Browse files Browse the repository at this point in the history
#19: Aliases
  • Loading branch information
john1xi authored Jun 18, 2024
2 parents a6a9bc3 + 8ef6f31 commit 9656ecf
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
import IconTwitter from "../assets/icons/IconTwitter.astro";
import IconYoutube from "../assets/icons/IconYoutube.astro";
import IconInstagram from "../assets/icons/IconInstagram.astro";
import HashtagWhyULoveFootball from "./HashtagWhyULoveFootball.astro";
import IconTwitter from "@icons/IconTwitter.astro";
import IconYoutube from "@icons/IconYoutube.astro";
import IconInstagram from "@icons/IconInstagram.astro";
import HashtagWhyULoveFootball from "@components/HashtagWhyULoveFootball.astro";
---

<footer class="bg-black text-white">
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavigationBar.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import HashtagWhyULoveFootball from "./HashtagWhyULoveFootball.astro";
import HashtagWhyULoveFootball from "@components/HashtagWhyULoveFootball.astro";
---

<nav class="bg-transparent">
Expand Down
4 changes: 1 addition & 3 deletions src/components/PlayVideoButton.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import IconPlayVideo from "../assets/icons/IconPlayVideo.astro";
import IconPlayVideo from "@icons/IconPlayVideo.astro";
---

<button class="bg-[#54F400] text-[#2B00FF] font-bold py-5 px-8 shadow-md transition-all duration-300 hover:bg-[#4FC90E] hover:shadow-lg active:shadow-none active:bg-[#54F400] active:text-[#1C00A8] text-xl cursor-pointer flex items-center justify-center">
Expand Down
6 changes: 3 additions & 3 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import Footer from '../components/Footer.astro';
import NavigationBar from '../components/NavigationBar.astro';
import Section from '../components/Section.astro';
import Footer from '@components/Footer.astro';
import NavigationBar from '@components/NavigationBar.astro';
import Section from '@components/Section.astro';
interface Props {
title: string;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Layout from '../layouts/Layout.astro';
import '../styles/global.css';
import Layout from '@layouts/Layout.astro';
import '@styles/global.css';
---

<Layout title="Welcome to Whyuluvfootball">
Expand Down
14 changes: 12 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "astro/tsconfigs/strict"
}
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@icons/*": ["src/assets/icons/*"],
"@components/*": ["src/components/*"],
"@layouts/*": ["src/layouts/*"],
"@pages/*": ["src/pages/*"],
"@styles/*": ["src/styles/*"]
}
}
}

0 comments on commit 9656ecf

Please sign in to comment.