This is a solution to the Space tourism website challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- Challenge Space-Tourism
Users should be able to:
- View the optimal layout for each of the website's pages depending on their device's screen size
- See hover states for all interactive elements on the page
- View each page and be able to toggle between the tabs to see new information
Design | Desktop |
Tablet | Mobile |
- Solution URL : https://github.com/thesohailjafri/fm-space-tourism-website
- Live Site URL : https://thesohailjafri.github.io/fm-space-tourism-website/
- First i did mobile UI
- Then i did desktop and tablet UI
- Then i did the iterative design
- Then i added JS logic for tabs and hover states
- Semantic HTML5 markup
- Tailwind CSS v3
- Flexbox
- CSS Grid
- Mobile-first workflow
I practiced custom configuration for the Tailwind CSS framework. I also learned how to use the extend utility to create custom CSS classes.
module.exports = {
mode: 'jit',
content: ['./src/**/*.{html,js}', './index.html'],
theme: {
fontFamily: {
head: [' "Bellefair", serif'],
subhead: ['"Barlow Condensed", sans-serif'],
sans: ['"Barlow", sans-serif'],
},
extend: {
borderWidth: {
3: '3px',
170: '170px',
},
colors: {
'my-blue': '#D0D6F9',
'my-black': '#0B0D17',
},
boxShadow: {
'explore-none': '0px 0px 0px 0px rgba(255,255,255,.12)',
'explore-sm': '0px 0px 0px 20px rgba(255,255,255,.12)',
'explore-md': '0px 0px 0px 40px rgba(255,255,255,.12)',
'explore-lg': '0px 0px 0px 60px rgba(255,255,255,.12)',
},
transitionProperty: {
height: 'height',
spacing: 'margin, padding',
},
letterSpacing: {
wider: '0.1rem',
widest: '0.2em',
},
},
},
plugins: [require('tailwindcss-filters')],
}
- tailwindcss.com - Tailwind CSS documentation
- Website - TheSohailJafri
- Frontend Mentor - @thesohailjafri
- Twitter - @Sinja97881141