Skip to content

Commit

Permalink
fix: hot fix of grid
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizdiazever committed Jun 18, 2024
1 parent 6c44066 commit 22ec554
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions site/pkg/portfolio.css
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,10 @@ body {
display: flex;
}

.md\:w-full {
width: 100%;
}

.md\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
Expand Down
Binary file modified site/pkg/portfolio.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/common/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use leptos_icons::*;
#[component]
pub fn Tech(title: String, description: String, uri: String) -> impl IntoView {
view! {
<div class="bg-white rounded-lg hover:bg-gray-50 shadow-md w-40" title={description}>
<div class="bg-white rounded-lg hover:bg-gray-50 shadow-md md:w-40 w-full" title={description}>
<a href={uri} target="_blank">
<div class="group p-3">
<h3 class="flex items-center text-lg font-semibold gap-1 hover:underline hover:decoration-dashed hover:underline-offset-8 hover:decoration-gray-400">
Expand Down
2 changes: 1 addition & 1 deletion src/components/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn Project(
) -> impl IntoView {
view! {
<div class="text-gray-600">
<h1 class="text-3xl text-gray-800 mb-2">{title}</h1>
<h1 class="text-3xl text-gray-800 mb-2">{title}</h1>
<p>{subtitle}</p>
<div class="flex justify-between my-6">
<span class="flex items-center justify-center whitespace-nowrap rounded-lg bg-gray-100 border border-gray-300 h-6 px-2.5 py-1 text-sm text-gray-700">
Expand Down
4 changes: 4 additions & 0 deletions style/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,10 @@ body {
display: flex;
}

.md\:w-full {
width: 100%;
}

.md\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
Expand Down

0 comments on commit 22ec554

Please # to comment.