forked from JIITODC/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Event and Team components with responsive design (JIITODC#8)
- Loading branch information
1 parent
5e90d72
commit 3c58857
Showing
5 changed files
with
175 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<script> | ||
export let title; | ||
export let about; | ||
export let time; | ||
export let location; | ||
</script> | ||
|
||
<div class="event-container"> | ||
<div class="left"> | ||
<img src="Poster.png" alt="event poster"> | ||
</div> | ||
<div class="right"> | ||
<h2 class="title">{title}</h2> | ||
<p class="about">{about}</p> | ||
<p class="time">{time}</p> | ||
<p class="location">{location}</p> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.event-container { | ||
font-family: 'Red Hat Display', sans-serif; | ||
display: flex; | ||
margin-top: 2rem; | ||
padding-bottom: 1rem; | ||
border-bottom: 1px solid white; | ||
} | ||
.right { | ||
padding: 0 0 0 2rem; | ||
font-weight: 100; | ||
} | ||
.title { | ||
font-size: 2rem; | ||
font-weight: bold; | ||
} | ||
@media (max-width:700px) { | ||
.event-container { | ||
flex-direction: column; | ||
/* align-items: center; */ | ||
font-size: 1rem; | ||
} | ||
img { | ||
height: auto; | ||
max-width: 200px; | ||
} | ||
.title { | ||
font-size: 1.5rem; | ||
} | ||
.right { | ||
padding: 1rem 0 0 0; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<script> | ||
export let imgSrc; | ||
export let name; | ||
export let about; | ||
export let gitLink; | ||
export let facebookLink; | ||
export let twitterLink; | ||
</script> | ||
|
||
<div class="team-member"> | ||
<div class="left"> | ||
<img src={imgSrc} alt="event poster"> | ||
</div> | ||
<div class="right"> | ||
<h2 class="name">{name}</h2> | ||
<p class="about">{about}</p> | ||
<div class="socails"> | ||
<a href={gitLink}>GITHUB</a> | ||
<a href={facebookLink}>FACEBOOK</a> | ||
<a href={twitterLink}>TWITTER</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.team-member { | ||
display: flex; | ||
padding-bottom: 1rem; | ||
border-bottom: 1px solid white; | ||
margin-top: 2rem; | ||
} | ||
.right { | ||
padding: 0 0 0 2rem; | ||
} | ||
.name { | ||
font-size: 2rem; | ||
font-weight: bold; | ||
} | ||
@media (max-width:700px) { | ||
.team-member { | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: 1rem; | ||
} | ||
img { | ||
height: auto; | ||
max-width: 200px; | ||
} | ||
.name { | ||
font-size: 1.5rem; | ||
} | ||
.right { | ||
padding: 1rem 0 0 0; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters