Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified some styles #520

Merged
merged 6 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
415 changes: 401 additions & 14 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@fontsource/montserrat": "^4.5.5",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
"ant-design-vue": "^4.0.0-rc.6",
"dayjs": "^1.10.8",
"pinia": "^2.0.11",
"vue": "^3.2.31",
Expand All @@ -26,9 +27,9 @@
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.2",
"@cypress/vue": "^3.1.1",
"@fortawesome/vue-fontawesome": "^3.0.0-5",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/vue-fontawesome": "^3.0.0-5",
"@heroicons/vue": "^1.0.6",
"@rushstack/eslint-patch": "^1.1.1",
"@types/node": "^16.11.26",
Expand Down
269 changes: 157 additions & 112 deletions src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Countdown from '@/components/Countdown.vue'
import { ref } from 'vue'
import { RouterLink, useRoute, useRouter } from 'vue-router'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { Tooltip } from 'ant-design-vue'

interface Props {
isFullscreen: boolean
Expand Down Expand Up @@ -136,7 +137,7 @@ const isActive = (page: string): boolean => {
size="sm"
style="margin-right: 5px"
/>
Talks</RouterLink
Talks & Workshops</RouterLink
>
</li>
<li :class="{ selected: isActive('/challenges') }">
Expand Down Expand Up @@ -192,117 +193,157 @@ const isActive = (page: string): boolean => {
<header v-if="!isFullscreen" class="header-nav-bar hide-when-small">
<nav>
<ul class="header-nav-bar__list">
<RouterLink
to="/"
class="header-nav-bar__item"
:class="{ selected: isActive('/') }"
>
<li>
<FontAwesomeIcon icon="home" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/schedule"
class="header-nav-bar__item"
:class="{ selected: isActive('/schedule') }"
>
<li>
<FontAwesomeIcon icon="calendar-days" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/map"
class="header-nav-bar__item"
:class="{ selected: isActive('/map') }"
>
<li>
<FontAwesomeIcon icon="map-location-dot" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/mission"
class="header-nav-bar__item"
:class="{ selected: isActive('/mission') }"
>
<li>
<FontAwesomeIcon icon="user-secret" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/mentors"
class="header-nav-bar__item"
:class="{ selected: isActive('/mentors') }"
>
<li>
<FontAwesomeIcon icon="chalkboard-teacher" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/meals"
class="header-nav-bar__item"
:class="{ selected: isActive('/meals') }"
>
<li>
<FontAwesomeIcon icon="utensils" size="lg" />
</li>
</RouterLink>
<li class="header-nav-bar__item header-nav-bar__item--countdown">
<Countdown class="hide-when-small" @click="goToFullscreen" />
</li>
<RouterLink
to="/talks"
class="header-nav-bar__item"
:class="{ selected: isActive('/talks') }"
>
<li>
<FontAwesomeIcon icon="message" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/challenges"
class="header-nav-bar__item"
:class="{ selected: isActive('/challenges') }"
>
<li>
<FontAwesomeIcon icon="code" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/hardware"
class="header-nav-bar__item"
:class="{ selected: isActive('/hardware') }"
>
<li>
<FontAwesomeIcon icon="microchip" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/rules"
class="header-nav-bar__item"
:class="{ selected: isActive('/rules') }"
>
<li>
<FontAwesomeIcon icon="gavel" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/travel"
class="header-nav-bar__item"
:class="{ selected: isActive('/travel') }"
>
<li>
<FontAwesomeIcon icon="plane" size="lg" />
<Tooltip title="Home" class="cursor-is-rocket">
<RouterLink
to="/"
class="header-nav-bar__item"
:class="{ selected: isActive('/') }"
>
<li>
<FontAwesomeIcon icon="home" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Schedule & Live" class="cursor-is-rocket">
<RouterLink
to="/schedule"
class="header-nav-bar__item"
:class="{ selected: isActive('/schedule') }"
>
<li>
<FontAwesomeIcon icon="calendar-days" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Map" class="cursor-is-rocket">
<RouterLink
to="/map"
class="header-nav-bar__item"
:class="{ selected: isActive('/map') }"
>
<li>
<FontAwesomeIcon icon="map-location-dot" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Mission" class="cursor-is-rocket">
<RouterLink
to="/mission"
class="header-nav-bar__item"
:class="{ selected: isActive('/mission') }"
>
<li>
<FontAwesomeIcon icon="user-secret" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Mentors" class="cursor-is-rocket">
<RouterLink
to="/mentors"
class="header-nav-bar__item"
:class="{ selected: isActive('/mentors') }"
>
<li>
<FontAwesomeIcon icon="chalkboard-teacher" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Meals" class="cursor-is-rocket">
<RouterLink
to="/meals"
class="header-nav-bar__item"
:class="{ selected: isActive('/meals') }"
>
<li>
<FontAwesomeIcon icon="utensils" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Live full screen" class="cursor-is-rocket">
<li
class="header-nav-bar__item header-nav-bar__item--countdown cursor-is-rocket"
>
<Countdown class="hide-when-small" @click="goToFullscreen" />
</li>
</RouterLink>
<RouterLink
to="/faq"
class="header-nav-bar__item"
:class="{ selected: isActive('/faq') }"
</Tooltip>

<Tooltip title="Talks & Workshops" class="cursor-is-rocket">
<RouterLink
to="/talks"
class="header-nav-bar__item"
:class="{ selected: isActive('/talks') }"
>
<li>
<FontAwesomeIcon icon="message" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Challenges" class="cursor-is-rocket">
<RouterLink
to="/challenges"
class="header-nav-bar__item"
:class="{ selected: isActive('/challenges') }"
>
<li>
<FontAwesomeIcon icon="code" size="lg" />
</li>
</RouterLink>
</Tooltip>

<Tooltip title="Hardware" class="cursor-is-rocket">
<RouterLink
to="/hardware"
class="header-nav-bar__item"
:class="{ selected: isActive('/hardware') }"
>
<li>
<FontAwesomeIcon icon="microchip" size="lg" />
</li>
</RouterLink>
</Tooltip>
<Tooltip title="Rules" class="cursor-is-rocket">
<RouterLink
to="/rules"
class="header-nav-bar__item"
:class="{ selected: isActive('/rules') }"
>
<li>
<FontAwesomeIcon icon="gavel" size="lg" />
</li>
</RouterLink>
</Tooltip>
<Tooltip
title="Discover BCN & Travel policies"
class="cursor-is-rocket"
>
<li>
<FontAwesomeIcon icon="circle-question" size="lg" />
</li>
</RouterLink>
<RouterLink
to="/travel"
class="header-nav-bar__item"
:class="{ selected: isActive('/travel') }"
>
<li>
<FontAwesomeIcon icon="plane" size="lg" />
</li>
</RouterLink>
</Tooltip>
<Tooltip title="Help" class="cursor-is-rocket">
<RouterLink
to="/faq"
class="header-nav-bar__item"
:class="{ selected: isActive('/faq') }"
>
<li>
<FontAwesomeIcon icon="circle-question" size="lg" />
</li>
</RouterLink>
</Tooltip>
</ul>
</nav>
</header>
Expand All @@ -314,6 +355,10 @@ const isActive = (page: string): boolean => {

$fade-time: 300ms;

.cursor-is-rocket {
cursor: url('../assets/img/rocket-fire.png'), auto !important;
}

.external-link-icon {
width: 16px;
vertical-align: text-top;
Expand Down Expand Up @@ -370,7 +415,7 @@ $fade-time: 300ms;
height: 100%;
align-items: center;
color: #fff;
cursor: pointer;
cursor: url('../assets/img/rocket-fire.png'), auto;
font-size: 20px;
text-align: center;

Expand Down Expand Up @@ -400,7 +445,7 @@ $fade-time: 300ms;
height: 50px;
align-items: center;
color: #fff;
cursor: pointer;
cursor: url('../assets/img/rocket-fire.png'), auto;
text-align: center;

div {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Cookies.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ $ease-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
background-color: transparent;
border-radius: 0.5rem;
color: #fff;
cursor: pointer;
cursor: url('../assets/img/rocket-fire.png'), auto;

&:hover,
&:focus {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Countdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const handleClick = (): void => {
margin-top: -90px;
border-radius: 100%;
box-shadow: 0 -5px 42px rgb(0 0 0 / 40%);
cursor: pointer;
cursor: url('../assets/img/rocket-fire.png'), auto;
transition: transform 200ms $ease-bounce;

&:hover {
Expand Down Expand Up @@ -143,7 +143,7 @@ const handleClick = (): void => {
height: 33.333vw;
border-radius: 50%;
box-shadow: 0 4px 42px 0 rgb(0 0 0 / 30%);
cursor: pointer;
cursor: url('../assets/img/rocket-fire.png'), auto;
text-shadow: 0 0 12px rgb(0 0 0 / 50%);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const getEvent = function (id: string): ScheduleEvent | undefined {
background-color: $primary-color;
border-radius: 5px;
color: $contrast-color;
cursor: pointer;
cursor: url('../assets/img/rocket-fire.png'), auto;
font-weight: bold;
letter-spacing: 1px;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defineProps<Props>()
text-align: left;

&--big {
flex: 1 1 782px;
flex: 1 1 1300px;
}

&__title {
Expand Down
6 changes: 2 additions & 4 deletions src/components/PanelContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ defineProps<Props>()
<style lang="scss" scoped>
.container {
display: flex;
max-width: 1024px;
max-width: 1300px;
flex-wrap: wrap;
justify-content: center;
padding: 16px;
padding-top: 150px;
padding-bottom: 50px;
padding: 150px 16px 50px;
margin: 0 auto;

@media (max-width: 720px) {
Expand Down
Loading
Loading