Skip to content

Commit cfc3b34

Browse files
committed
feat: index page almost completed
1 parent 7339f69 commit cfc3b34

File tree

7 files changed

+86
-5
lines changed

7 files changed

+86
-5
lines changed

‎src/components/BlogHero.astro‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
const {blogTitle,blogDescription} = Astro.props
3+
---
4+
5+
<article class="flex justify-between text-white text-xl font-sans">
6+
<span>{blogTitle}</span>
7+
<span>{blogDescription}</span>
8+
</article>

‎src/components/Container.astro‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
const { projectTitle, projectDescription } = Astro.props
3+
---
4+
5+
<div class="border border-slate-600 rounded-lg relative bg-background h-32 md:w-[13.2rem] my-1 transition-all hover:scale-105 duration-300">
6+
<svg class="absolute inset-0 w-full h-full [mask-image:radial-gradient(400px_circle_at_center,white,transparent)]">
7+
<filter id="n">
8+
<feTurbulence
9+
type="fractalNoise"
10+
baseFrequency="0.9"
11+
stitchTiles="stitch"
12+
/>
13+
</filter>
14+
<rect width="100%" height="100%" filter="url(#n)" opacity="0.40" />
15+
</svg>
16+
</div>

‎src/components/Footer.astro‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
3+
---
4+
5+
<footer class="flex justify-between text-white font-sans">
6+
<span >built with {"<3"} by kakashi </span>
7+
<div>
8+
<div class="i-mdi:github" title="GitHub"></div>
9+
</div>
10+
11+
</footer>

‎src/components/Navbar.astro‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
33
---
4-
<nav class="flex flex-row justify-between items-center py-8">
4+
<nav class="flex flex-row justify-between items-center py-4">
55
<div class="flex flex-row items-center">
66
<img src="/android-chrome-512x512.png" class='rounded-full h-20 w-20' alt="og"/>
77
<div class="flex flex-col ml-3">
8-
<span class='font-sans font-bold text-4xl text-white '> kakashifr </span>
9-
<small class="text-gray-600 dark:text-gray-500">
8+
<h1 class='font-sans font-bold text-4xl text-white '> kakashifr </h1>
9+
<small class="text-gray-600 dark:text-gray-100">
1010
IPA /kɑːˈkɑː.ʃi/ — カカシ
1111
</small>
1212
</div>

‎src/components/Ruler.astro‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
---
3+
<hr class="border-slate-600 my-4"/>

‎src/layouts/Base.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ import Grain from "../lib/grainsbg/Grain.astro"
2525
<slot/>
2626
</div>
2727
<Grain opacity={100}/>
28-
<Plum client:only/>
28+
<!-- <Plum client:only/> -->
2929
</body>
3030
</html>

‎src/pages/index.astro‎

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,54 @@
11
---
22
import Base from './../layouts/Base.astro'
33
import Navbar from '../components/Navbar.astro'
4-
4+
import Ruler from '../components/Ruler.astro'
5+
import Container from '../components/Container.astro'
6+
import BlogHero from '../components/BlogHero.astro'
7+
import Footer from '../components/Footer.astro'
58
const title = "home >> kakashifr "
9+
//const Projects
610
---
711

812
<Base description="" title={title}>
913
<Navbar/>
14+
15+
<Ruler/>
16+
17+
<main>
18+
<p class="text-white w-full font-sans">
19+
Lorem ipsum, dolor sit amet consectetur awaa adipisicing elit. Sed id reiciendis consequuntur labore hic magnam officiis libero incidunt velit illum repudiandae est at ut harum culpa, animi optio, nostrum fuga!
20+
Lorem ipsum, dolor sit amet consectetur awaa adipisicing elit. Sed id reiciendis consequuntur labore hic magnam officiis libero incidunt velit illum repudiandae est at ut harum culpa, animi optio, nostrum fuga!
21+
Lorem ipsum, dolor sit amet consectetur awaa adipisicing elit. Sed id reiciendis consequuntur labore hic magnam officiis libero incidunt velit illum repudiandae est at ut harum culpa, animi optio, nostrum fuga!
22+
</p>
23+
</main>
24+
25+
<Ruler/>
26+
27+
<h2 class="my-4 font-sans font-bold text-3xl text-white ">Projects</h2>
28+
29+
<div class="grid grid-cols-1 md:grid-cols-3">
30+
<Container/>
31+
<Container/>
32+
<Container/>
33+
<Container/>
34+
<Container/>
35+
<Container/>
36+
</div>
37+
38+
<Ruler/>
39+
40+
<h2 class="my-4 font-sans font-bold text-3xl text-white">Latest blogs</h2>
41+
42+
<div>
43+
<BlogHero blogTitle='lorem' blogDescription='lorem ipsum lorem'/>
44+
<BlogHero blogTitle='lorem' blogDescription='lorem ipsum lorem'/>
45+
<BlogHero blogTitle='lorem' blogDescription='lorem ipsum lorem'/>
46+
<BlogHero blogTitle='lorem' blogDescription='lorem ipsum lorem'/>
47+
</div>
48+
49+
<Ruler/>
50+
51+
<Footer/>
52+
1053
</Base>
1154

0 commit comments

Comments
 (0)