following tutorial
This commit is contained in:
8
src/components/Footer.astro
Normal file
8
src/components/Footer.astro
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
import Social from './Social.astro';
|
||||
---
|
||||
|
||||
<footer class="flex mt-4 gap-4">
|
||||
<Social platform="github" tld="com" username="blboun3"/>
|
||||
<Social platform="git.cyrilsebek" tld="cz" username="blboun3" />
|
||||
</footer>
|
7
src/components/Hamburger.astro
Normal file
7
src/components/Hamburger.astro
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
---
|
||||
<div class="hamburger pr-[20px] cursor-pointer" >
|
||||
<span class="line block w-[40px] h-[5px] mb-10 bg-[#ff9776]"></span>
|
||||
<span class="line block w-[40px] h-[5px] mb-10 bg-[#ff9776]"></span>
|
||||
<span class="line block w-[40px] h-[5px] mb-10 bg-[#ff9776]"></span>
|
||||
</div>
|
10
src/components/Navigation.astro
Normal file
10
src/components/Navigation.astro
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
---
|
||||
<div id="navigation" class="w-full bg-[#ff9776] hidden m-0 left-12 top-20">
|
||||
<a href="/" class="block text-center no-underline text-[1.2rem] font-[bold] uppercase px-0 py-2.5">Home</a>
|
||||
<a href="/blog/" class="block text-center no-underline text-[1.2rem] font-[bold] uppercase px-0 py-2.5">Blog</a>
|
||||
</div>
|
||||
<style>
|
||||
|
||||
</style>
|
4
src/components/Social.astro
Normal file
4
src/components/Social.astro
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
const { platform, tld, username } = Astro.props;
|
||||
---
|
||||
<a href={`https://${platform}.${tld}/${username}`} class="py-2 px-4 text-white bg-[#4c1d95]">{platform}</a>
|
Reference in New Issue
Block a user