Skip to content

Commit f9bd9d3

Browse files
committed
Added tailwind
1 parent bee9767 commit f9bd9d3

File tree

15 files changed

+483
-239
lines changed

15 files changed

+483
-239
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ logs
1717
.DS_Store
1818
.fleet
1919
.idea
20-
20+
.vscode
2121
# Local env files
2222
.env
2323
.env.*

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/Portfolio.iml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/jsLibraryMappings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/css/animations.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
*{
2-
transition: all 0.3s ease-in-out;
3-
-webkit-transition: all 0.3s ease-in-out;
4-
-moz-transition: all 0.3s ease-in-out;
5-
-o-transition: all 0.3s ease-in-out;
6-
}
71
@keyframes fadeIn {
82
0% {
93
opacity: 0;

app/assets/css/main.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@import url(colors.css);
2-
@import url(animations.css);
1+
@import "tailwindcss";
32

43
* {
54
box-sizing: border-box;

app/components/HeroSection.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<template>
32
<section class="hero">
43
<BlogBackground
@@ -35,6 +34,3 @@ p {
3534
width: 55ch;
3635
}
3736
</style>
38-
<script setup lang="ts">
39-
import BlogBackground from "~/components/BlogBackground.vue";
40-
</script>

app/components/ProjectCard.vue

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
<script setup lang="ts">
2+
import type ProjectData from '~/lib/ProjectData';
3+
4+
defineProps({
5+
details: {
6+
type: Object as PropType<ProjectData>,
7+
required: true
8+
}
9+
})
10+
</script>
11+
<template>
12+
<div class="project-card-wrapper">
13+
<div class="project-card-details">
14+
<h4>
15+
{{ details.name }}
16+
</h4>
17+
18+
<p>{{ details.about }}</p>
19+
<ul class="features-wrapper">
20+
<li
21+
v-for="skill in details.features"
22+
:key="skill"
23+
class="feature">{{ skill }}
24+
</li>
25+
</ul>
26+
<div class="date">
27+
{{details.date}}
28+
</div>
29+
<div class="links">
30+
<a v-if="details.githubRepo" target="_blank" rel="noopener noreferrer" :href="details.githubRepo">
31+
<Icon name="mdi:github" />
32+
</a>
33+
<a v-if="details.sitelink" target="_blank" rel="noopener noreferrer" :href="details.sitelink">
34+
<Icon name="streamline-plump:web" />
35+
</a>
36+
</div>
37+
</div>
38+
</div>
39+
</template>
40+
<style scoped>
41+
.project-card-wrapper {
42+
position: relative;
43+
overflow: hidden;
44+
45+
flex: 1;
46+
max-width: 55ch;
47+
width: 55ch;
48+
aspect-ratio: 1;
49+
min-width: 35ch;
50+
min-height: 50vh;
51+
padding-top: 0;
52+
53+
background-color: var(--color-surface-container-high);
54+
border-radius: var(--border-radius-sm);
55+
box-shadow: 0 16px 22px 1px var(--color-shadow);
56+
57+
transition: transform 0.2s ease;
58+
align-content: start;
59+
60+
61+
video,
62+
img {
63+
position: absolute;
64+
left: 0%;
65+
top: 50%;
66+
height: 100%;
67+
width: auto;
68+
transform: scale(1.2) translate(0%, -50%);
69+
pointer-events: none;
70+
}
71+
72+
video {
73+
filter: var(--inverse-filter);
74+
}
75+
76+
&:hover {
77+
transform: scale(1.01);
78+
}
79+
}
80+
.project-card-details {
81+
display: flex;
82+
flex-direction: column;
83+
user-select: none;
84+
position: relative;
85+
height: 100%;
86+
padding: var(--padding-md);
87+
88+
font-size: 1.2em;
89+
color: var(--color-on-overlay);
90+
91+
backdrop-filter: blur(20px);
92+
background: linear-gradient(
93+
to top,
94+
var(--color-overlay) 0%,
95+
transparent
96+
);
97+
align-content: space-evenly;
98+
transition: transform 0.25s ease;
99+
//transform: translateY(3em);
100+
}
101+
102+
103+
104+
.links{
105+
position: absolute;
106+
bottom: var(--padding-md);
107+
right: var(--padding-md);
108+
width: fit-content;
109+
display: flex;
110+
flex-wrap: nowrap;
111+
gap: 1em;
112+
a{
113+
display: block;
114+
font-size: 3rem;
115+
color: var(--color-secondary);
116+
&:hover{
117+
transform: scale(1.2);
118+
119+
}
120+
}
121+
}
122+
.date{
123+
position: absolute;
124+
bottom: var(--padding-lg);
125+
left: var(--padding-lg);
126+
width: fit-content;
127+
background-color: var(--color-tertiary);
128+
color: var(--color-on-tertiary);
129+
padding: var(--padding-sm);
130+
border-radius: var(--border-radius-sm);
131+
//opacity: 0;
132+
//filter: blur(10px);
133+
}
134+
.features-wrapper {
135+
padding: var(--padding-md);
136+
list-style: '- ';
137+
.feature {
138+
padding: var(--padding-sm);
139+
140+
}
141+
}
142+
</style>

0 commit comments

Comments
 (0)