Skip to content

Commit

Permalink
Make image on home even brighter on mobiles
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Sep 26, 2024
1 parent dba9813 commit 9b9f8e2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Binary file added src/assets/archive-very-bright.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@
@apply text-gray-700 flex items-center justify-between px-4 py-2 rounded-t border-b
bg-gray-100
}
/* custom classes with breakpoints (responsive classes dependend on width) don't work in component-scoped-styles */
@layer utilities {
.home-img {
background-image: url("@/assets/archive.jpg");
}

.home-img-bright {
background-image: url("@/assets/archive-very-bright.jpg");
}
}
10 changes: 4 additions & 6 deletions src/layout/main/index.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<div
id="search-header"
class="h-96 bg-cover bg-gray-400 bg-center p-12 home-img"
class="h-96 bg-cover bg-gray-400 bg-center p-12 xl:home-img home-img-bright"
>
<h1 class="flex justify-center m-5 text-4xl font-bold text-blue-600">
<h1 class="text-center m-5 text-4xl font-bold text-blue-600">
OLA-HD
</h1>
<h2 class="flex justify-center m-5 text-2xl" >OCR Long-Term Archive</h2>
<h2 class="text-center m-5 text-2xl" >OCR Long-Term Archive</h2>
<div class="mx-auto">
<form @submit.prevent="submit" class="float">
<div class="grid grid-cols-7">
Expand Down Expand Up @@ -86,9 +86,7 @@ export default {
</script>

<style scoped>
.home-img {
background-image: url("@/assets/archive.jpg");
}
:deep(.p-multiselect-label), :deep(.p-icon) {
margin: -4px;
Expand Down

0 comments on commit 9b9f8e2

Please sign in to comment.